• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1429
  • Last Modified:

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

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
hassanajalil
Asked:
hassanajalil
1 Solution
 
Erick37Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now