By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,278 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,278 IT Pros & Developers. It's quick & easy.

UserControl - DesignerMode

P: n/a
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?
--
Dennis in Houston
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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?
--
Dennis in Houston

Nov 21 '05 #2

P: n/a
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" <De****@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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?
--
Dennis in Houston

Nov 21 '05 #3

P: n/a
"Dennis" <De****@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

P: n/a
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.
--
Dennis in Houston
"Kai Zhang" wrote:
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.

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
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?
--
Dennis in Houston


Nov 21 '05 #5

P: n/a
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?
--
Dennis in Houston
"Herfried K. Wagner [MVP]" wrote:
"Dennis" <De****@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.