UserControl - DesignerMode

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a UserControl with several Browsable properties. In some of the
properties "Set", I execute code that calls other procedures in my control.
In the Design Mode when the properties are set in the properties window, is
the UserControl Property "set" called which executes the procedures called in
the set routine of the property?
 
Yes.
You can place a Msgbox in the Set block, and re-compile your project. When
you open a control in the form designer which has the user control added to
it, a message box will pop up.
 
Yes, the entire code in your set is executed at runtime AND at design time.


----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
 
Dennis said:
I have a UserControl with several Browsable properties. In some of the
properties "Set", I execute code that calls other procedures in my
control.
In the Design Mode when the properties are set in the properties window,
is
the UserControl Property "set" called which executes the procedures called
in
the set routine of the property?

Yes. You can use the control's 'DesignMode' property to check if it is
shown in design mode.
 
I put the msgbox in the set of one of my properties and nothing happens when
I reset the proerty in the designer property box.
 
I have three properties: AutoFill, AutoFit, and AutoSize. In each of these
properties "set" block, I set the other two to false if the one being set is
true since only one can be true at one time. When I set one of them to True
in the Designer Property box, the others do not change to false. How do I
get them to change in the Designer property box?
 
Back
Top