472,139 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

What does the Me.DesignMode

Hi,

what does the Me.DesignMode-Property turn back. I tried to set a
MsgBox(Me.DesignMode) in my form's and control's Sub New(), but it allways
turns back 'false', even if the form or control is open in Designmode.

To set correctly the properties when changed in the property-browser while
designing I need to know if the control is in designtime or in runtime-mode.
Is there a way to manage this?

thanks, Alfred M.
Nov 20 '05 #1
2 5839
Hello,

"Malleier Alfred" <Al****@Malleier.cc> schrieb:
what does the Me.DesignMode-Property turn back. I tried to set a
MsgBox(Me.DesignMode) in my form's and control's Sub New(), but it allways
turns back 'false', even if the form or control is open in Designmode.

To set correctly the properties when changed in the property-browser while
designing I need to know if the control is in designtime or in runtime-mode. Is there a way to manage this?


http://msdn.microsoft.com/library/en...nmodetopic.asp

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Hallo Herfried,

vielen Dank für die Hilfe,

but I saw this article in Helpfile and the only description is:

"Gets a value that indicates whether the Component is currently in design
mode."

The DesingMode-Property allways returns False even if the App or form or
control is in designmode. I want to resize my control each time the user
changes a property belonging to the size or placement of the control. But on
runtime I want to do this only once for performance reasons. The statement
in Sub New()

DoResizeMe = Me.DesignMode

or

Dim DoResizeMe as Boolean = Me.DesignMode

outside the Sub New() does not function.

What I am doing false?

Thanks, Alfred M.

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> schrieb im Newsbeitrag
news:et**************@TK2MSFTNGP12.phx.gbl...
Hello,

"Malleier Alfred" <Al****@Malleier.cc> schrieb:
what does the Me.DesignMode-Property turn back. I tried to set a
MsgBox(Me.DesignMode) in my form's and control's Sub New(), but it allways turns back 'false', even if the form or control is open in Designmode.

To set correctly the properties when changed in the property-browser while designing I need to know if the control is in designtime or in runtime-mode.
Is there a way to manage this?


http://msdn.microsoft.com/library/en...nmodetopic.asp
HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Lecture Snoddddgrass | last post: by
1 post views Thread by Tiago Barbutti | last post: by
29 posts views Thread by Charles Law | last post: by
1 post views Thread by Paul W | last post: by
2 posts views Thread by Simon Rigby | last post: by
2 posts views Thread by graeme g | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.