Solved

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

Posted on 2011-03-25
1
1,185 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

932 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now