Results 1 to 3 of 3

Thread: How Can I tell if a user Control is running at design Time

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089

    Post

    I want to Subclass a user control so that it changes the window bitmap when the mouse goes up and down (Before the window is redrawn so I can't use the mouseup and mouseDown events), but I'm very cautios about messing about with wndow Procedures at design time and then expecting it to work at run time. Is there a way of telling if the program is running at runtime or design time, ie when do I swap the windowprocs.

    It's probably a lot easier than i've made out but I'm not very good at explaining things.

    Thanks

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207

    Post

    I think (not positive) that UserControl.AmbientProperties.UserMode and = False for design time and true for run time.
    Micah Carrick
    Visual Basic 6 SP5
    Visual Basic.NET
    Quixotix Software
    [email protected]
    Download QCM 1.0 - Intelligent ActiveX Control Management

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089

    Post

    Cool It works Thanks

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