473,394 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 5928
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Thomas | last post by:
Hy dudes, I have a strange problem. I dynamically create an IFrame with JavaScript and then fill in some content. Afterwards I want to switch to designMode. There the trouble starts. In Mozilla...
2
by: Lecture Snoddddgrass | last post by:
Hi, When I create a UserControl-derived object, I often expose various public properties. One of the things that I hate about the WinForms designer is that if I decide to embed one of these...
1
by: Tiago Barbutti | last post by:
I have a UserControl that execute methods in Load event, but it hapens in designMode and generate an error and the control disappear from the form. I read that i can use the DesignMode to kwnow...
0
by: Steffen | last post by:
I inserted a WebBrowser-Control in my c# program. Moreover I activated the designMode. My prorgam worked fine. I was able to edit the site. I want to add my own context menu that is showed when the...
29
by: Charles Law | last post by:
Further to my issue about user controls, I have a problem with DesignMode. Here is the project hierarchy: MainApp |_ Project1 |_ SubProject (UserControl) SubProject has a default constructor...
1
by: Paul W | last post by:
I'm having trouble detecting whether my Control is in DesignMode. I'm deriving a class from TreeView; Public Class ExplorerView Inherits TreeView ... End Class
2
by: Simon Rigby | last post by:
Hi folks, I'm trying to switch an iFrame in and out of design mode by way of a script. As you can see from the method it is intended to be cross browser compatible (or FF and IE at least). The...
2
by: graeme g | last post by:
ii i've been developing some usercontrols... and sudden the property designmode no longer works.. if i test it value at designtime it always comes back false... i've made a work around if...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.