Results 1 to 20 of 20

Thread: How to (best) detect siting of a control?

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How to (best) detect siting of a control?

    Since OP wants to detect the presence/absence of controls at design time then there is no code involved so things like WM_CONTROL_ADDED, WM_CONTROL_REMOVED or WM_CONTROL_CHANGED, "....what I need is to detect a change in the forms controls collection.", etc are meaningless since your program is not running if I understand OP


    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

    Thread Starter
    Addicted Member
    Join Date
    Jun 2010
    Posts
    208

    Re: How to (best) detect siting of a control?

    Quote Originally Posted by jmsrickland View Post
    Since OP wants to detect the presence/absence of controls at design time then there is no code involved so things like WM_CONTROL_ADDED, WM_CONTROL_REMOVED or WM_CONTROL_CHANGED, "....what I need is to detect a change in the forms controls collection.", etc are meaningless since your program is not running if I understand OP
    Not entirely correct, UserControl code executes both at run-time and design-time, but I wasn't clear of that either before I started to dive in to this.
    M$ vs. VB6 = The biggest betrayal and strategic mistake of the century!?

Tags for this Thread

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