I have a simple app that displays images and allows he user to enter keywords. I build the form dynamically in the Page_Init method (for several reasons).
If the user does not want to work on the image, they can click the Skip button. In the Skip_Click method, I mark the item as skipped and...
My installation of InterDev recently went psycho and would crash every time I ran it. I uninstalled and reinstalled, but now I get the following message immediately after starting:
"Your trial version has expired, please uninstall this trial version of 'Visual InterDev 6.0' and install the...
==" checks for reference equality, but ".Equals(obj)" can be overridden to check for attribute equality.
My guess is that you want to override .Equals.
Andrew
InsideEdge,
My advice is to write down the algorithm in english. Then translate it to your language of choice. This should help you understand the coding required.
I'll also suggest making a bunch of classes to help with your task. I know it seems like overkill, but in the end it will be...
Toppy-T,
My research shows that MS does not provide the functionality you need.
I did find this: http://www.timezonesource.com/. For $199, they have a component that seems to do just what you need. I've never heard of the company and am not affiliated with them in any way.
Andrew
Could the "while((sr.Read ())!=-1)" be eating the first character?
Try this instead:
// NOT TESTED/COMPILED!!!
string RL = sr.ReadLine();
while(RL != null)
{
listBox1.Items.Add(RL);
RL = sr.ReadLine();
}
Andrew
Toptomato,
I don't understand the problem. Is "9:00 AM EST" time being displayed as "6:00 AM PST"? This seems correct to me since DateTimes use UTC time format.
If you want to change the displayed time zone these links looked promising:
http://radio.weblogs.com/0126569/2004/09/01.html...
MeonR,
I think your problem is the structure of your loop.
Here's what you coded:
do
{
try to read something
use what was read
}
while (I actually read something)
The ReadLine call will eventually return null which you then try to add to the listbox. That's the error.
You...
Tom,
I think you are encountering an interesting phenomena related to how computers store fractional numbers. To you an me, 35.71 seems like an easy number - 35 units plus 71 hundreths. For a computer, it has to convert that to binary. The 35 part is easy, 100011, but it's hard to make .71 out...
I second the suggestion of using GUIDs for unique identifiers.
Identity columns are OK if you will NEVER need to merge data from two instances of the same database, but since "never" never holds true (heh, heh) I now always use GUIDs. Using GUIDs means two records will never have the same ID no...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.