CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TechnoGilles

Search: Search took 0.02 seconds.

  1. Re: Disable specific button from set of programatically created buttons?

    No mystery ? Obviously !! ... All I'm saying is that the day you need to add a LinkButton in that page for whatever reason, in your case, you'll have to refactor the code somehow. In my case you...
  2. Replies
    8
    Views
    1,015

    Re: Events and Delegates

    Ok. That rules out that potential problem.

    So once you are in the handler, you try to change some control properties, right ? What happens exactly ?

    Perhaps you should post some code we can...
  3. Re: Disable specific button from set of programatically created buttons?

    Hum... Parsing through the Controls is somewhat dangerous. You never know what you'll find... What if other LinkButtons are also present in the page ? You'll be shooting at flies with the intent of...
  4. Replies
    6
    Views
    1,494

    Re: Ticks after Stop ?

    Well, the premice is simple : in a user event (a key down in my case), I stop a timer, and put back some members to null. From this point, I expect that no more tick events will occur (cause members...
  5. Re: Disable specific button from set of programatically created buttons?

    And if you don't want to do the parsing of the Controls, a simple member variable that keeps a reference on the currently selected button would do the job. On a click, just disable the old button and...
  6. Replies
    8
    Views
    1,015

    Re: Events and Delegates

    After re-reading your posts, and just to be sure we're talking the same way, here's a recap of events :

    class A
    {
    public delegate void MyHandler(object data); // Or whatever prototype you...
  7. Replies
    8
    Views
    1,015

    Re: Events and Delegates

    Who exactly is invoking "the upd port" event you are talking about ? How can you be sure it is not coming from another thread ? As a quick test, in your handler, simply call the InvokeRequired...
  8. Replies
    8
    Views
    1,015

    Re: Events and Delegates

    It looks like your handler is invoked from a thread that is NOT the thread on which the controls you are trying to modify were created.

    Controls can only be accessed from within the tread that was...
  9. Replies
    6
    Views
    1,494

    Ticks after Stop ?

    Hi,
    Does anyone know if pending Timer.Tick events (already in the message queue) are removed upon a Timer.Enabled = false or if they might still arrive after ?

    (talking about...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured