I checked that twice and still missed that (Doh)
Tony Hill
Posts
-
I need to convert a the string of a Text box to a Value -
I need to convert a the string of a Text box to a ValueDon't use Convert as any error in the format of the input string will cause an exception. Instead use int.Parse because you can check the result of the parse operation to see if you have entered a valid or invalid string. From memory you should do the following
if (int.Parse(textBox1.Text, out int result))
{
// if parsed ok then the result will be filled with the converted value
}
else
{
// display your error message here
} -
Spam article (low interest home loan) -
Spam article Digital Marketing Course In Hyderabad -
Spam article 'Download Quickbooks Tool Hub Now' -
Spam article - A Strategic Guide to Wired vs. Wireless Networking Security - GoneA Strategic Guide to Wired vs. Wireless Networking Security[^] Link in the second paragraph. steve smith Apr2024 - Professional Profile[^]
-
Anyone here had cataract surgery?I had mine done December 2020. I kept thinking that my glasses were just a bit dirty so I was always cleaning them until I started to struggle with driving at night which was especially bad on a dark road at night due to the headlights of the oncoming cars. I went to the optician and they organised an appointment at the local hospital where they confirmed they were getting pretty bad, so a few weeks later I went under the knife to get them done. Obviously they use anaesthetic so you don't feel anything, the only thing that was a little bit uncomfortable was the light used by the surgeon to see what he was doing especially as they use some kind of tool to keep your eyelids wide open so you can't blink so for about 10 minutes on each eye staring into a bright light. When the op was finished they taped some plastic shields over both eyes to protect them while the incisions healed (a couple of days) and I had to add special eye drops several times a day for a about a month. That having been said I was really amazed at how much brighter colours were and also how much sharper things were in focus. The only thing I very occasionally notice is you can see the edge of the lens, a bit like seeing the frames of the lenses when wearing glasses, and to be honest you don't really notice them. I am really glad they were done especially as they added lenses that were close to my glasses prescription (required for reading and computers), I still have a my last pair of glasses which I occasionally use when using the mobile phone because the writing can be a bit on the small size. I certainly have no regrets about having them done.
-
Spammer in Q & APosted and answered the question about GarbageCollection using a dubious account name sensualpleasure4you - Professional Profile[^]
-
Inappropriate language in Quick answersHe is at it again with a solution 3 which is just a repeat of his previous suggestion with a random code fragment.
-
I think perhaps this this user ...Not very well educated or informed either since the Soviet Union was dissolved in December 91 so it has not existed for a bit over 30 years.
-
Edge will soon receive a built-in calculator, speed tester, and unit converterI am reminded of a phrase I once heard. Just because you can do a thing doesn't mean should do a thing.
-
Well, that just doesn't happen.I thought that at the time but I guess that the insurance companies thought they might be pushing their luck to do that. The last thing they need is an investigation into their sharp practices.
-
Well, that just doesn't happen.If I remember correctly I think it is because of a law change that says that loyal customers should not pay more than new customers for the same insurance criteria which means that new customers are not subsidized by long standing customers.
-
A bigger piece of the pi: Finding the 100-trillionth digitIn college I was taught 355/113 as it is correct to accurate to 6 decimal places. However I can actually remember it to 10 places now. :omg:
-
In defense of coding interviewsThey are round so you can't drop them down the hole.
-
Top 10 reasons NOT to use Project ManagementI prefer the quote by Sir John Harvey-Jones. Planning is an unnatural process; it is much more fun to do something. The nicest thing about not planning is that failure comes as a complete surprise, rather than being preceded by a period of worry and depression.
-
Probably false positive on article download.Checked this again on another machine using Avast AV and it reckons its OK.
-
Probably false positive on article download.Sophos is also flagging it as infected.
-
Accessing one of many possible objects passed to a functionYou could use the 'as' operator to try and cast it to a known type, if the cast works then you know the object type.
private static void TestFunction(object unknownClass) { ClassOne c1 = unknownClass as ClassOne; if (c1 != null) { Console.WriteLine("Object is a ClassOne object"); } else { Console.WriteLine("Object is not a ClassOne object"); } ClassTwo c2 = unknownClass as ClassTwo; if (c2 != null) { Console.WriteLine("Object is a ClassTwo object"); } else { Console.WriteLine("Object is not a ClassTwo object"); } }
-
Happy Birthday, Griff!My God that is an ugly looking chair, with decent upholstery it would look quite good. I am never surprised by the lack of good taste that people have.