Solved

How to know if VB.NET user control is running in Design mode or Runtime mode?

Posted on 2011-03-25
1
1,194 Views
Last Modified: 2012-05-11
Dear experts,

How to know if VB.NET user control is running in Design mode or Runtime mode?

previously in VB6 i use the property UserControl.Ambient.UserMode
0
Comment
Question by:hassanajalil
1 Comment
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 35218588
Look at the Designmode property...

If  Me.DesignMode = True Then
   ''Design Time
Else
  ''Runtime

http://msdn.microsoft.com/en-us/library/system.componentmodel.component.designmode(v=VS.80).aspx 
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question