|
I have found that finding the max amount of characters the screen can display at a time is the easiest way to format for a specific device. What I do is send an email like so:
1
22
333
4444
55555
666666
7777777
88888888
999999999
1011111111
11000000000
120000000000
1300000000000
ect...
then find the line that does not fit and you'll see how many characters it can display. Keep in mind that the amound of characters can change if you don't have a truetype font or if the characters change in size.
Hope that helps.
(You will need to see one of the managers phones for that to work.)
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
ExpertComing wrote: (You will need to see one of the managers phones for that to work.)
Have you ever tried to wrestle a crackberry from a manager?
I was afraid I might have to do that. I might also be able to get someone to forward something that is formatted well on a blackberry and see how the page is put together
Thanks for the suggestions
Russell
|
|
|
|
|
Hi,
Basically what i want to do is to prevent the webBrowser control to stroe the page information in the internet explorer history.. is there any way to do this?
regards
Q@!$3r
|
|
|
|
|
use it...
<%@ OutputCache Duration="0" Location="None" VaryByParam="none" %>
or
VB.NET
Response.Cache.SetCacheability(HttpCacheability.NoCache)
C#
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
well i am using windows form and I think this is for web,,,, sorry if I am wrong..
Q@!$3r
|
|
|
|
|
|
I use response.write() function to send "window.location.hash='anchor'" command to client-end page in .cs file.
It could work good in IE, but not in firefox 2.0. why? how to resolve it? thanks.
|
|
|
|
|
I assume you are referring to javascript? Use DOM methods rather than response.write on the client-side.
Also, IE and FF render and behave differently. For best results, design and test in FF and then port to IE. You will save months!
File Not Found
|
|
|
|
|
could you mind give me some small samples about how to use DOM? Thank you very very much.
|
|
|
|
|
if you have a div whose id attribute is testDiv
function doStuff(){
document.getElementById("testDiv").innerHTML = "I did something";
}
Unfortunately, it is buggy in IE. But IE does support innerText.
File Not Found
|
|
|
|
|
i use window.location.hash just for scroll the page to <anchor>. how should i use DOM to do?
|
|
|
|
|
If you want to scroll the page maybe use anchors? (don't know if it will work here)
Try this
Here
Didn't work so I removed the long breaks
File Not Found
|
|
|
|
|
I defined the anchors.
Could you let me see the sample's source code? Thanks.
By the way, how to use anchors to control the scroll?
|
|
|
|
|
When someone clicks on an anchor the user agent is supposed to direct to it. And in the case of a page anchor, scroll. See the link for more information. Also, I think there is a DOM method to fire the click event? but I do not know.
http://www.w3schools.com/html/html_links.asp
File Not Found
|
|
|
|
|
Thanks a lot.
I want to use c# to control the page scroll. So, the client event maybe doesn't fit this scene.
|
|
|
|
|
I have 2 comboboxes :- DataType & DataFormat
In DataType if i select any type say Time/Date/IPAddress/ID i should be able to load dynamic values to DataFormat based on selected DataType.
Ex:1)DataType ->Date
DataFormat->(A)hh/mm ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy .
2)DataType ->IPAddress
DataFormat ->127.000.000.000, 127.0.0.0
For DataFormat i am using a single StringConverter class.The problem here is am able to load values but always the 1st value gets replaced with selected value.What could be the reason?...
Say,i have date- hh/mm/yyyy format selected.then i change datatype as IPAddress- 127.0.0.0 .Next i come back and select date again ,at that time 1st value displayed in combobox is the selected value- hh/mm/yyyy instead of hh/mm.Now the DataFormat combobox displays duplicate values as :-
(A)hh/mm/yyyy ,(B)hh/mm/yyyy ,(C)mm/dd/yyyy .
Please help me...
|
|
|
|
|
I found a c# example that contained a for loop without any data in it but I don't understand what it means:
"for ( ; ; )"
I was always under the impression that some data needed to be included in a for loop. What does this dataless for loop achieve?
Thanks.
-Goalie35
|
|
|
|
|
It's an infinite loop. Without a break or return in the loop body, this will just loop forever. Alternative ways of doing this include while (true) or while (1 == 1).
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
This is an infinite loop construct. Some people prefer this method for certain activities over while(true) { }. In either case these are infinite loops which can cause problems. If you don't have to use them, don't. Graceful exits to loops are always preferred.
Phil
|
|
|
|
|
It's an endless loop like while (true) .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
An endless loop. while ( true ) does the same thing, a little more clearly in my opinion. Come to think of it, maybe for ( ; true ; ) should be used.
--| "Every tool is a hammer." |--
|
|
|
|
|
Everyone is right that previously replied except for the notion that it is not infinite.
This is infinite
for(;; );
a loop with a body may or may not be infinite depending on the existence of breaks and break conditions.
for(;; ){
...
}
Also, if you are threading a Thread Abort Exception will break any infinite loop; maybe
The only reason I mention this is because there are important points to consider when writing or interpreting those kinds of structures.
File Not Found
|
|
|
|
|
Hi,
I'm one of those programmers who use for(;;) to create what some call an
"infinite loop". I have several comments on the previous entries:
1. As a long time C programmer and having used many different compilers, I dont
write code such as if (true) ... or while(true)... simply because there are compilers
that insist on generating some silly warning ("logic expression is constant" or
something similar); I expect the same for "for(;true;)" which I never tried;
I never got warnings on for(;;) so that is the only form I use; and whoever has seen
it once, knows immediately what the intentions are.
2. I dont use a semi-colon when I want an empty code block; when I need an empty code block, I write one, that is {}.
reason: those two brackets are clearly intentional and adding/deleting one of them
would result in a compilation error, whereas a single semi-colon is easily overlooked
(so it makes it harder to read and understand the code), and adding/removing one
may yield a new source that compiles, but behaves quite differently.
3. although we all know what is meant by "infinite loop", there actually is no
such thing; everything will come to an end: either energy will run out, or
someone will stop your system, or your hardware will fail, or your software
(app or OS) will crash. Guess which one it will be ?
If you are in pursuit of an infinite loop, my first recommendation would be not
to use software in it.
for(;;) Console.WriteLine("I like C#");
Luc Pattyn
[My Articles]
|
|
|
|
|
i had see the ability to do drag and drop in list view but it only for string. Can we drag and drop other than string?
|
|
|
|
|
Hi all
I am having a list<objects> (business ojects) which i need to bind to a datagridview. But the problem is it displays all the properties even if it is not set.
I way to display only specific properties is to hide those columns where the value is null.
I just want to know if there is a another way to bind specific properties only and not all the properties.
Thanx
Farhan
thanx for the support
|
|
|
|