473,385 Members | 1,769 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,385 software developers and data experts.

How to get if is Runtime or Design Mode??

There is any Function to check if the program is in runtime or design mode,
so i can avoid some of my usercontrols throwing me some errors while i'm on
design mode??

Thanks.
Alex.
Nov 20 '05 #1
1 12581
Hello,

"Ale K." <_N******@AleK.com> schrieb:
There is any Function to check if the program is in runtime
or design mode, so i can avoid some of my usercontrols
throwing me some errors while i'm on design mode??


Inside the usercontrol:

\\\
If Me.DesignMode Then
...
End If
///

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Matt Fielder | last post by:
I have developed a custom control to be used in my application. My application includes a form designer, so the control can be hosted while designmode for the control is either true or false,...
1
by: astroboy | last post by:
How do UserControl know it is in design mode or runtime mode?
5
by: Tom | last post by:
I have a component I'm writing. It appears that the debugger simply doesn't work when in design mode. For example: build the component drop the component on a form break points in the "New" sub...
2
by: Dennis | last post by:
I have a usercontrol that requires I draw some lines on it which depend on the size of the control. In the Design Mode I add the control to a form in my application and change the size of the...
2
by: Doru Roman | last post by:
Hi, In windows applications I use a grid. Can I edit the grid in design mode to allow the appearance of only certain columns? Or it is achievable only through code? Thanks, Doru
8
by: newscorrespondent | last post by:
What is the "if" to tell if my code is running in design mode? Thanks
3
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
3
by: Richard | last post by:
Hello, How do you guys implement 3-tier applications with .NET's design mode controls. For example, on an ASP .NET form, the SQLDataSource and the Gridview belong in 2 different tiers. If they...
0
by: Timje | last post by:
Visual C# 2005 Express Edition crashes the instant I attempt to view any class in design mode, or just switch the program to design mode (shift-F7). I have tried reinstalling, closing all other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.