By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,457 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,457 IT Pros & Developers. It's quick & easy.

vb2005 - how to rehide Form constructor after exposing it? -not co

P: n/a
Greetings,

I observed that in VB2005 the designer generated code is hidden. The
initialize code appears to be stored in a different module than the Form's
class module. But the form's class module constructor is in the same module
as the Form class (obviously). Well, I exposed the constructor, which was
originally unexposed. Is there a way to hide it again after exposing it? I
don't mean collapse, I mean hide it the way it was originally?

Thanks,
Rich
Jun 23 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I figured it out. You can just delete it - it doesn't really get deleted,
just hidden.

"Rich" wrote:
Greetings,

I observed that in VB2005 the designer generated code is hidden. The
initialize code appears to be stored in a different module than the Form's
class module. But the form's class module constructor is in the same module
as the Form class (obviously). Well, I exposed the constructor, which was
originally unexposed. Is there a way to hide it again after exposing it? I
don't mean collapse, I mean hide it the way it was originally?

Thanks,
Rich

Jun 23 '06 #2

P: n/a
The form's constructor is scoped as Public Overridable by default. That means,
you can add a local one or just use the base classes version. IF you decide
to include a specialized constructor in your form, you can either do it in
the form.vb code behind file or in the form.vb.designer file which includes
the "don't touch this" region present in vs2002-2003. To see the .designer
file in VS 2005, click the "show all files" button in the solution explorer.
Then click the plus in front of the form file you wish to see and the .designer
file will be exposed.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
I figured it out. You can just delete it - it doesn't really get
deleted, just hidden.

"Rich" wrote:
Greetings,

I observed that in VB2005 the designer generated code is hidden. The
initialize code appears to be stored in a different module than the
Form's class module. But the form's class module constructor is in
the same module as the Form class (obviously). Well, I exposed the
constructor, which was originally unexposed. Is there a way to hide
it again after exposing it? I don't mean collapse, I mean hide it
the way it was originally?

Thanks,
Rich

Jun 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.