how to disable user interface in IDE

seco

Well-known member
Joined
Mar 4, 2007
Messages
66
Programming Experience
Beginner
hi
how can i disable interface when somebody take my sourcecode he just see the lines of code and can't see the form and all visual elements and when he try to open the form visually red cross appear onto the form (like form courruption)

thanks in advance.
 
Well, this isn't easy but there are a couple of things you can try...

1. Put a MustInherit statement at the top of your class. However this is easily removed.

2. Add the following attribute to the top of your class.
<DesignTimeVisible(False)>

3. Override the 'OnHandleCreated' event but don't pass the event on to the base class. (Again easy to remove, if someone knows what they are doing.)

You can give them a try but they are easy to get around if anyone knows a bit about programming.
 
Back
Top