Results 1 to 4 of 4

Thread: Code Process conflicts with Mouse -- TOUGHY!!!!

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Code Process conflicts with Mouse -- TOUGHY!!!!

    The Mouse_Down, Up and Move Events are tied to a specific window.

    WHen drawing in that window(eg PicBox) in code (eg. MoveTo, LineTo) and at the same time using the mouse (User Inferface not code interface) to draw in the same window a conflict occurs.

    Simple flag does not work. VB doesn't support threads.

    Any Solutions???

  2. #2
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    VB does support multithreading. Its not as good as in c++, but its stable. There is a contest winner at www.planetsourcecode.com/vb
    retired member. Thanks for everything

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    No multithreading - at least for now, supportly net has it.
    Was looking for some constructive feedback -- but thanks
    for responding.

    Looking for a workaround it there is one -- that's why a TOUGHY!!!

    THERE HAS TO BE A WAY???

    FYI - Using a waitable timer in the mouse events also doesn't work -- locks up mouse.

  4. #4
    Megatron
    Guest
    You want a work around? Use C++ It's the only safe was to do it in VB5, and VB6 doesn't even support it. If doing the whole thing in C++ doesn't sound pleasent, you could simply create a DLL to just the multithreading part for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width