473,396 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
2 1823
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Galen Somerville | last post by:
Going from VB6 (RAD) to VB2005 (SAD) The documentation always shows graphics drawing in a paint event like Private Sub Pictcolor_Paint(ByVal sender As Object, ByVal e _ As...
1
by: TyBreaker | last post by:
I notice in VB 2005 that I can set a form to be double-buffered just by setting that option to true in the Form properties. I have a panel on that form but there doesn't appear to be a...
1
by: Rich | last post by:
I have a simple vb2005 app (for testing). It is just a simple winform with one button that brings up a message box. When I invoke the app and click on the button, the message box comes up OK. ...
1
by: Joe | last post by:
I am trying to get information on controls on my multi form Visual Basic 2005 project. Any time I type such things as "? frmMyForm1.visible" in the immediate window after I pause the program, I...
5
by: Ranginald | last post by:
I am learning C# and asp.net and am trying to create a new utility class. The default code you get from vwd express is: /// <summary> /// Summary description for ddlCode /// </summary>...
5
by: Dennis | last post by:
I am thinking of getting VB2005 to replace my VB2003 but don't like the idea of having two files for one form (I have enough files on my computer as it is). Is there any way to have VB2005 act...
9
by: bz | last post by:
the vb.upgrade group is dead. I think I will post this here instead. Hi, I ran the Upgrade Wizard to upgrade my VB6 project to VB2005 Express Edition. I got 140 errors and 170 warnings. ...
15
by: Galen Somerville | last post by:
I have an app using a VB6 ActiveX.dll which I also have made as an exe. Both the dll and exe have exactly the same code and start in Sub Main. There is no form involved. I start this activex as...
1
by: Vae07 | last post by:
Ok so here is a brief summary of my problem. I need a pop up form that submits input text box information to a pocket excel workbook upon a command botton click. Text box inputs are checked for...
2
by: SePp | last post by:
Hi there, I have a WindowsForm which includes a label. I want to add a date to this label which a user can select. I thought it is probably the best to open another WindowsForm and to add on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.