473,320 Members | 2,080 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,320 software developers and data experts.

Startup from Module instead from form? (VS2005)

I not see on project property way to config my project to start from
module or class instead from Form on Win App?

Jan 17 '07 #1
4 1871
This is likely because you have the application framewoerk enabled. If you
don't need just disable the applciation framework and those options should
be back again...

Patrice

<mt******@yahoo.coma écrit dans le message de news:
11*********************@q2g2000cwa.googlegroups.co m...
>I not see on project property way to config my project to start from
module or class instead from Form on Win App?

Jan 17 '07 #2
why microsoft drive me to yield one feature!? I need "application
framework enabled" and use with Module as StartUp???

Patrice wrote:
This is likely because you have the application framewoerk enabled. If you
don't need just disable the applciation framework and those options should
be back again...

Patrice

<mt******@yahoo.coma écrit dans le message de news:
11*********************@q2g2000cwa.googlegroups.co m...
I not see on project property way to config my project to start from
module or class instead from Form on Win App?
Jan 17 '07 #3
My guess is that they need to know what is the main form for the
application.

You could perhaps have a look at the code created for you by VS.NET to repro
yourself all or part of its features (if I remember they hook up some events
and doing some calls into the .NET framework) while still starting a
module...( or perhaps use a "dummy" hidden window).

---
Patrice
<mt******@yahoo.coma écrit dans le message de news:
11*********************@l53g2000cwa.googlegroups.c om...
why microsoft drive me to yield one feature!? I need "application
framework enabled" and use with Module as StartUp???

Patrice wrote:
This is likely because you have the application framewoerk enabled. If you
don't need just disable the applciation framework and those options should
be back again...

Patrice

<mt******@yahoo.coma écrit dans le message de news:
11*********************@q2g2000cwa.googlegroups.co m...
I not see on project property way to config my project to start from
module or class instead from Form on Win App?

Jan 17 '07 #4

mt******@yahoo.com wrote:
why microsoft drive me to yield one feature!? I need "application
framework enabled" and use with Module as StartUp???
You don't need to yield anything. Just create a module with a function
called Main (or anything you want to call it). Then in the Project
Application property pane, turn off the "enable application framework"
check box, and select the Main function in the Startup object drop
down. Then, first thing in the Main function do the call:

Application.EnableVisualStyles()

You will probably want to open a main form eventually in Main, and the
best way to do that is to instantiate an instance of the form's class,
and call it with:

Application.Run(FormName)

This is the standard format I use for all VB.NET Windows applications.
>
Patrice wrote:
This is likely because you have the application framewoerk enabled. If you
don't need just disable the applciation framework and those options should
be back again...

Patrice

<mt******@yahoo.coma écrit dans le message de news:
11*********************@q2g2000cwa.googlegroups.co m...
>I not see on project property way to config my project to start from
module or class instead from Form on Win App?
>
Jan 17 '07 #5

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

Similar topics

23
by: Edward K. Ream | last post by:
I've just about convinced myself there is no good, clean solution to the following puzzle. I wonder if you agree. 1. My app has a module called leoGlobals that contains often-used global...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
4
by: Johnnie Miami | last post by:
I'm using VB.Net 2005 beta 2 and have my login form (login.vb) specified as the startup form. If the user is successful logging in, I call my main form (main.vb). This all works fine but the...
10
by: Bernie Hunt | last post by:
This is probably a silly question, but I've gotten myself confused. My app has two forms, form1 and form2. form1 is the start up object in the propers. An event in form1 instantiates form2. ...
3
by: steveeisen | last post by:
I'm a long-time VB6 programmer in a shop that is mostly moving to VB ..NET 2005. And I'm confused about coding the start of solutions for unattended operations. Much of what I write is old-time...
8
by: cj | last post by:
In 2003 I sometimes changed the startup object of a project to Sub Main which was found in Module1.vb. I upgraded one such project to 2005 and I notice in the properties page for the project that...
8
by: Rob | last post by:
In VS2003 you had the option to select "Sub Main" as the Startup Object It appears this option is not present in VS2005... Is this the case ? Thanks !
13
by: Rob | last post by:
Can you store "public" variables that may be accessed from anywhere and still have a Form (not SubMain) as the designated startup object ? For example.... let's say I want all the form's Text...
0
by: ycinar | last post by:
hey all, i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict.. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.