• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1363
  • 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

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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