473,756 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1845
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.designe r 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
1943
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 System.Windows.Forms.PaintEventArgs) Handles PictColor.Paint End Sub But my VB6 program draws to the picturebox PictColor from many different
1
1831
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 double-buffered property for the panel control. My first question: is the double buffering set on the form inherited by the panel control or do I have to do the old fashioned manual double-buffering with the panel? I've noticed that animation I render...
1
2108
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. When I click a button on the message box, the form and message box drop behind the IDE to the background. The exe does the same thing. What can I do to keep the app from dropping/falling to the background like that? Here is the code behind the...
1
1100
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 get the error "Unable to evaluate expression.". This happens with any of the other controls on any of the forms. What am I doing wrong, and how do I go about correcting the problem. In VB6 I used to be able to get information on any control on any...
5
3322
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> public class someClass {
5
1545
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 like VB2003 and keep the form in one .vb file? -- Dennis in Houston
9
1239
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. One of the error was that it wouldn't load a VB6 control.
15
1973
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 a Process like so: Dim NewProcess As Process = New Process Then I use one of these:
1
2249
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 validity upon individual text box exit (don't have a problem with this part). All this could be done with Excel VBA easily, but pocket excel doesn't have VBA/Macro support. In as much, I have been trying to create a VB2005 application that I can load...
2
2732
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 this one a monthcalendar. My prolbem is: How can I use this MonthcalendarForm to edit / add the date of the label on other forms.
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10046
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9886
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9857
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9722
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.