473,770 Members | 4,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1896
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************* ********@q2g200 0c...legrou ps.com...
>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 "applicatio n
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************* ********@q2g200 0c...legrou ps.com...
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************* ********@l53g20 00...legro ups.com...
why microsoft drive me to yield one feature!? I need "applicatio n
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************* ********@q2g200 0c...legrou ps.com...
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 "applicatio n
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.Ena bleVisualStyles ()

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************* ********@q2g200 0c...legrou ps.com...
>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
1945
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 functions. All of Leo's source files start with: from leoGlobals import * I don't want to discuss whether this is good style: it is simple and it works well for me :-)
7
6899
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 datasheets (for subforms). I would like to do this on startup of the application. To be clear:
4
7852
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 problem is that the login form stays open. I put a me.close (in the login form) after opening the main form but that seems to close everything and the main form is not displayed. I thought I could call a Sub Main() that calls the login form, closes...
10
3003
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. Dim myForm as HardwareStore myForm = New HardwareStore myForm.Show() I understand that my form2 can be referenced by
3
1587
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 batch. Such programs are started from a scheduler and run on a server, cycling through a mass of data, without human intervention. No form should show on the server monitor, although an invisible one may be needed to support the Winsock or...
8
3566
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 nothing is selected as the startup object. It appears to function but should I set it to Sub Main?
8
1129
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
1265
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 property equal to "Program Name and Version" In a public class I tried.... Public Class SomeVariables
0
1649
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.. actually when i build it, it creates a jar file which is totally fine (i can confirm that because i use that jar file in another project) any idea on how to get around this? maybe i could try to run it from the command line, but dont know how to run...
0
9602
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
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10237
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
10071
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...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
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
6690
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();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.