Re: sub Main



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










.



Relevant Pages

  • Re: sub Main
    ... making an instance of it in memory and then showing it. ... what is the proper way of opening a form from the sub Main? ... in VB.net without setting the application type to Console application? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: sub Main
    ... What is the main purpose of "Enable application framework" ... what is the proper way of opening a form from the sub Main? ... that in VB.net without setting the application type to Console ...
    (microsoft.public.dotnet.languages.vb)
  • Re: sub Main
    ... what is the proper way of opening a form from the sub Main? ... Brian ... that in VB.net without setting the application type to Console ...
    (microsoft.public.dotnet.languages.vb)
  • Re: sub Main
    ... as long as I don't have "Enable application framework" check. ... what is the proper way of opening a form from the sub Main? ... in VB.net without setting the application type to Console application? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to capitilize automatically?
    ... Sub change_case ... Dim ws As Worksheet ... you still don't get the results you want, then it will be that macro that is ... to proper if that's what you want like it previously described. ...
    (microsoft.public.excel.programming)