Re: sub Main
- From: "CMM" <cmm@xxxxxxxxxx>
- Date: Tue, 21 Feb 2006 02:48:54 -0500
I've run into problems with that before (in VB2003)... can't remember off
the top of my head what the problem was (some control or overlapping form
behaving funny or something).
I'd recommend using Application.Run(frm) instead. I think that's supposed to
be the "proper" way to do it.
--
-C. Moya
www.cmoya.com
"Scott M." <s-mar@xxxxxxxxxxxxx> wrote in message
news:OWCXqDNNGHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
dim x as new YourFormClass
x.showdialog
"Brian Shafer" <bsgallatin@xxxxxxxxxxxxxxxx> wrote in message
news:edH0KAMNGHA.2604@xxxxxxxxxxxxxxxxxxxxxxx
I do that and then it just shuts down... what is the proper syntax
"Scott M." <s-mar@xxxxxxxxxxxxx> wrote in message
news:%23ws5CGLNGHA.3432@xxxxxxxxxxxxxxxxxxxxxxx
Your form is just a class, you call it as you would any other class, by
making an instance of it in memory and then showing it.
"Brian Shafer" <bsgallatin@xxxxxxxxxxxxxxxx> wrote in message
news:u9nqvpKNGHA.2300@xxxxxxxxxxxxxxxxxxxxxxx
That works, as long as I don't have "Enable application framework"
check. What is the main purpose of "Enable application framework"
Also, what is the proper way of opening a form from the sub Main()?
Brian
"Chris" <no@xxxxxxxx> wrote in message
news:ONZTjnKNGHA.2624@xxxxxxxxxxxxxxxxxxxxxxx
Brian Shafer wrote:
Hi,
In VB Classic I used a sub main() in all my programs. How do I do
that in VB.net without setting the application type to Console
application? Looks like when I set it to console it disable some of
the properites
First week of vb.net.... starting to really like it too.....
Brian
Make a module. Put a sub main in there. Then go to the project
properties and change the startup to your module.
Chris
.
- Follow-Ups:
- Re: sub Main
- From: Cor Ligthert [MVP]
- Re: sub Main
- References:
- sub Main
- From: Brian Shafer
- Re: sub Main
- From: Chris
- Re: sub Main
- From: Brian Shafer
- Re: sub Main
- From: Scott M.
- Re: sub Main
- From: Brian Shafer
- Re: sub Main
- From: Scott M.
- sub Main
- Prev by Date: Re: Startup a winform hidden
- Next by Date: Re: Windows Service stopped working
- Previous by thread: Re: sub Main
- Next by thread: Re: sub Main
- Index(es):
Relevant Pages
|