IDE and user controls

mpdeglau

New member
Joined
Jul 20, 2005
Messages
2
Programming Experience
1-3
Is there a way to stop the ide from handling events from a user control that I created in design mode? The issue is I am working with live video. The card that I am using only allows the video to show in one app at a time, so when I build my application it doesn't show, because it's running in the ide.

What I would like to de is be able to see the video in the IDE, but when the app is built have the ide shut the video off, and allow the app to display the video

Thanks
 
Last edited:

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,547
Location
Sydney, Australia
Programming Experience
10+
You may have already discovered this but the Component class, which UserControl indirectly inherits from, has a DesignMode property that indicates whether the component is in design mode or not. The property is Protected, so it can only be used internally, so you would have to place code inside your UserControl to supress the desired events.
 
Top Bottom