Results 1 to 2 of 2

Thread: [RESOLVED] UserControl enter Property event

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Resolved [RESOLVED] UserControl enter Property event

    How to tell if an entry into a UC Property event is entered during design time or run-time?


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  2. #2
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: UserControl enter Property event

    Check Ambient.UserMode

    vb Code:
    1. If Ambient.UserMode = True Then
    2.         MsgBox "It is run time"
    3.     Else
    4.         MsgBox "It is design time"
    5.     End If



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