473,387 Members | 1,590 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,387 software developers and data experts.

Where is the rest of my Form Class? Where is main?

How does the partial class feature work with Visual Studio (VS) and VB.NET?
Does VB have the keyword partial like C# does? I don't see it in my wizard
generated WinForm application.

In C#, I see that VS inserts the keyword partial and puts the main program
in a different source code file. I think it does this with VB too but I
cannot find it.

I want to edit the constructor for the form class that the wizard
generated -- but I don't see that in VS 2005. Where is that source code
file?

One of the things I want to do is add a tool tip. I was suprised I did not
find that in the properties window.

Thanks,
Siegfried
Oct 25 '07 #1
7 1286
With your project selected in the solution explorer, click the "Show All
Files" icon at the top. Hit the '+' sign next to the form and open the
<formname>.designer.vb file.
BUT - you don't want to make any changes in here!
There is no 'constructor' defined in here, so just put it in the normal
place. Just be sure to call:
MyBase.New()
InitializeComponent()

You want to add a tool tip to what? No ToolTipText Property?
--
Terry
"Siegfried Heintze" wrote:
How does the partial class feature work with Visual Studio (VS) and VB.NET?
Does VB have the keyword partial like C# does? I don't see it in my wizard
generated WinForm application.

In C#, I see that VS inserts the keyword partial and puts the main program
in a different source code file. I think it does this with VB too but I
cannot find it.

I want to edit the constructor for the form class that the wizard
generated -- but I don't see that in VS 2005. Where is that source code
file?

One of the things I want to do is add a tool tip. I was suprised I did not
find that in the properties window.

Thanks,
Siegfried
Oct 25 '07 #2
"Siegfried Heintze" <si*******@heintze.comschrieb
How does the partial class feature work with Visual Studio (VS) and
VB.NET? Does VB have the keyword partial like C# does? I don't see
it in my wizard generated WinForm application.

In C#, I see that VS inserts the keyword partial and puts the main
program in a different source code file. I think it does this with
VB too but I cannot find it.
At the top in the solution explorer click the icon "show all file". Click
the "+" next to FormX.vb. Open FormX.Designer.vb.
I want to edit the constructor for the form class that the wizard
generated -- but I don't see that in VS 2005. Where is that source
code file?
The constructor is still invisible, but if you type "Sub New <enter>", a
call to Initializecomponent is inserted and you can add additional code (all
in FormX.vb)
One of the things I want to do is add a tool tip. I was suprised I
did not find that in the properties window.
I don't know.
Armin

Oct 25 '07 #3

"Armin Zingler" <az*******@freenet.dewrote in message
news:ue****************@TK2MSFTNGP05.phx.gbl...
"Siegfried Heintze" <si*******@heintze.comschrieb
>How does the partial class feature work with Visual Studio (VS) and
VB.NET? Does VB have the keyword partial like C# does? I don't see
it in my wizard generated WinForm application.

In C#, I see that VS inserts the keyword partial and puts the main
program in a different source code file. I think it does this with
VB too but I cannot find it.

At the top in the solution explorer click the icon "show all file". Click
the "+" next to FormX.vb. Open FormX.Designer.vb.
>I want to edit the constructor for the form class that the wizard
generated -- but I don't see that in VS 2005. Where is that source
code file?

The constructor is still invisible, but if you type "Sub New <enter>", a
call to Initializecomponent is inserted and you can add additional code
(all in FormX.vb)
>One of the things I want to do is add a tool tip. I was suprised I
did not find that in the properties window.

I don't know.
Armin
Add a tooltip control to your form. This will cause a new property to show
for all controls that would support tooltips. Not very intuitive but this
is the dot.net way of extending existing controls.

Hope this helps
Lloyd Sheen

Oct 25 '07 #4
"Lloyd Sheen" <a@b.cschrieb
One of the things I want to do is add a tool tip. I was suprised
I did not find that in the properties window.
I don't know.

Add a tooltip control to your form. This will cause a new property
to show for all controls that would support tooltips. Not very
intuitive but this is the dot.net way of extending existing
controls.
But I don't need a tooltip. :-)
Armin
Oct 25 '07 #5

"Armin Zingler" <az*******@freenet.dewrote in message
news:uH**************@TK2MSFTNGP06.phx.gbl...
"Lloyd Sheen" <a@b.cschrieb
One of the things I want to do is add a tool tip. I was suprised
I did not find that in the properties window.

I don't know.

Add a tooltip control to your form. This will cause a new property
to show for all controls that would support tooltips. Not very
intuitive but this is the dot.net way of extending existing
controls.

But I don't need a tooltip. :-)
Armin
As an aside Armin, are you familiar with a product called SQL-Programmer?

LS

Oct 25 '07 #6
"Lloyd Sheen" <a@b.cschrieb
As an aside Armin, are you familiar with a product called
SQL-Programmer?
Umm...no... why?
Armin
Oct 26 '07 #7

"Armin Zingler" <az*******@freenet.dewrote in message
news:ek**************@TK2MSFTNGP04.phx.gbl...
"Lloyd Sheen" <a@b.cschrieb
>As an aside Armin, are you familiar with a product called
SQL-Programmer?

Umm...no... why?
Armin
Sorry thought your name was familiar from my days as product manager of the
product.

LS

Oct 26 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Newbie | last post by:
I have an app that consists only of a windows form. I used the designer to create the form, then added some code. But... I don't understand where to put the code. Where do I put main so that the...
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
9
by: thomson | last post by:
Hi all, Would you please explain me where will be the heap stored if it is declared inside the Class, As class is a reference type, so it gets stored on the heap, but struct is a value...
2
by: Legendary Pansy | last post by:
Hello, I'm trying to accomplish the impossible by trying to do something equivalent of this example found here http://www.c-sharpcorner.com/Code/2003/Dec/DialogTutorial.as Starting with "Listing...
7
by: Microsoft | last post by:
I'm not sure where to physically place my subroutines in vb.net I get namespace and not declared errors... Imports System Imports System.Management Public Class Form1
10
by: active | last post by:
I have a couple of projects in the VS2005 format using Partial Class. I can't find where the code for sub New is stored. Can you tell me where it is? thanks
24
by: Paul | last post by:
I am taking over an existing app and having trouble understanding their references. They have encapsulated Pear packages in the directory structure like: /site /site/html/Pear.php...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
37
by: Phlip | last post by:
1230987za wrote: Kanze is a classically-trained "unit tester". In some circles "unit" is a QA concept - specifically, if a test fails, you only need to inspect one unit. So "units" are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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...

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.