wouldnt it be nice...

G

Guest

Am I the only lazy b****r who would appreciate it if when picking the form
load event the ide autoamtically dropped an if statement in...

if DesignMode = false then

end if

I know i am lazy but ...
 
C

Cor Ligthert

Guy

And what is the reason for that statement.
(When you want it you can forever make your own base form by the way)

Cor
 
H

Herfried K. Wagner [MVP]

guy said:
Am I the only lazy b****r who would appreciate it if when picking the form
load event the ide autoamtically dropped an if statement in...

if DesignMode = false then

end if

I am curious why you need this code...
 
C

Carlos J. Quintero [.NET MVP]

Yes, you are the only one ;-) Which is the purpose of that statement?
Anyway, if you really want it, you can customize the Form.vb file located
at:

C:\Program Files\Microsoft Visual Studio .NET
2003\Vb7\VBWizards\WinForm\Templates\1033

See this article of mine:

HOWTO: Changing the source code of templates used by Visual Studio .NET
wizards
http://support.microsoft.com/default.aspx?scid=kb;en-us;555160

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
J

Jay B. Harlow [MVP - Outlook]

Guy,
I know i am lazy but ...
I suspect I am probably equally lazy! So I really don't want that code
automatically added as I would need to delete it on almost all forms I
design!

BTW: As the others are asking, why do you feel you need that statement
there?

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top