Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Tony Hill

@Tony Hill
About
Posts
88
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I need to convert a the string of a Text box to a Value
    T Tony Hill

    I checked that twice and still missed that (Doh)

    C# question help

  • I need to convert a the string of a Text box to a Value
    T Tony Hill

    Don'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
    }

    C# question help

  • Spam article (low interest home loan)
    T Tony Hill

    low interest home loan[^] securefinance - Professional Profile[^]

    Spam and Abuse Watch com tools question

  • Spam article Digital Marketing Course In Hyderabad
    T Tony Hill

    Digital Marketing Course In Hyderabad[^] pavan kuamr from Unknown - Professional Profile[^]

    Spam and Abuse Watch com sales tools question learning

  • Spam article 'Download Quickbooks Tool Hub Now'
    T Tony Hill

    Download Quickbooks Tool Hub Now[^] pavan kuamr from Unknown - Professional Profile[^]

    Spam and Abuse Watch com tools question

  • Spam article - A Strategic Guide to Wired vs. Wireless Networking Security - Gone
    T Tony Hill

    A Strategic Guide to Wired vs. Wireless Networking Security[^] Link in the second paragraph. steve smith Apr2024 - Professional Profile[^]

    Spam and Abuse Watch visual-studio com security tools tutorial

  • Anyone here had cataract surgery?
    T Tony Hill

    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.

    The Lounge css question

  • Spammer in Q & A
    T Tony Hill

    Posted and answered the question about GarbageCollection using a dubious account name sensualpleasure4you - Professional Profile[^]

    Spam and Abuse Watch question com tools

  • Inappropriate language in Quick answers
    T Tony Hill

    He is at it again with a solution 3 which is just a repeat of his previous suggestion with a random code fragment.

    Spam and Abuse Watch csharp wpf com design

  • I think perhaps this this user ...
    T Tony Hill

    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.

    Site Bugs / Suggestions com tools question

  • Edge will soon receive a built-in calculator, speed tester, and unit converter
    T Tony Hill

    I am reminded of a phrase I once heard. Just because you can do a thing doesn't mean should do a thing.

    The Insider News csharp performance announcement

  • Well, that just doesn't happen.
    T Tony Hill

    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.

    The Lounge css com lounge

  • Well, that just doesn't happen.
    T Tony Hill

    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.

    The Lounge css com lounge

  • A bigger piece of the pi: Finding the 100-trillionth digit
    T Tony Hill

    In 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:

    The Insider News hosting cloud

  • In defense of coding interviews
    T Tony Hill

    They are round so you can't drop them down the hole.

    The Insider News data-structures com question career

  • Top 10 reasons NOT to use Project Management
    T Tony Hill

    I 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.

    The Lounge business com algorithms help

  • Probably false positive on article download.
    T Tony Hill

    Checked this again on another machine using Avast AV and it reckons its OK.

    Site Bugs / Suggestions c++ com question lounge

  • Probably false positive on article download.
    T Tony Hill

    Sophos is also flagging it as infected.

    Site Bugs / Suggestions c++ com question lounge

  • Accessing one of many possible objects passed to a function
    T Tony Hill

    You 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");
        }
    }
    
    C# question

  • Happy Birthday, Griff!
    T Tony Hill

    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.

    The Lounge question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups