Call customize Main method in Vb.net

July 20, 2010 at 1:49 pm Leave a comment

If you have tried to find main method in vb.net, you would not able to find it because vb.net automatically generates that method at runtime. We don’t require writing it.  Developer who have worked with C# may find this problem most.

You can write your own main method that can be used at runtime. You can write your main method in a class or a module like below.

But you need be aware of one thing on your project properties

Application->uncheck Enable application framework. In this case, your main method will be invoked instead of automatic generated one.

Entry filed under: .net, query on .net, Stuffs.

To Fix Label’s and other controls text are wrapping though it looks Okay in Designer Hide Tab Pages from Tab Control in Win forms

Leave a comment

Trackback this post  |  Subscribe to the comments via RSS Feed


Archives

Categories

July 2010
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  

Blog Stats

  • 8,361