Application Start And Main Form?

Oct 2, 2009

I am developing a commercial application that needs to do some environment checking upon start up. I need to check things like the following. 1. Is there a registry entry on this machine that has various keys for paths to SQL Server 2. If it does not I need to create them. 3. Prompt user for the path to the SQL Server 4.Check the SQL Server to see if the database I need exists. 5. Create the DB if not. 6. Populate the DB with the tables I need 7. Create stored procs in the DB 8. Write the registry. I could do all this in the form load of the main form. However is there a better way? Like doing all these checks as part of a splash screen for example.

View 2 Replies


ADVERTISEMENT

Load The Sub Main At The Start Rather Than Loading A Form On Start Up?

Feb 24, 2012

How can I get my application to load the Sub Main at the start rather than loading a form on start up.

I have tried declaring 'Public Sub Main' on my forms and in some modules, yet in my project properties, it is not one of the options.

View 12 Replies

Start Project With A Sub Main By Disabling The Application Framework?

May 14, 2009

I want to start my project with a sub main by disabling the application framework. The problem is that if i do this then the application starts and then exits in a few moments. Is there a way which could hold it until the last form is closed.

View 7 Replies

Start Main Form As Invisible?

Jan 10, 2010

I'm using the command line parameters to start my applicaton. To do that, I'm using the Application Startup event:

Friend Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
If e.CommandLine.Count = 1 AndAlso e.CommandLine(0) = "-startintray" Then

[code]....

Code works but I can't set my startup form as invisible. It always shows itself as usual. I want to put it to system tray.

View 2 Replies

Show Main Form Before Start Loading?

Feb 9, 2011

In this code the program did not show me the screen and start loading.I see the Form when they has finished with the load of the file

Private Sub Main_Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TotalRecords = 0
Call Find_Total_Records()

[code]....

I want the program FIRST show me the screen and after i see the form to start load the file I have try with the 'Application.DoEvents() and System.Threading.Thread.Sleep(200) without any effect?

View 3 Replies

Forms :: VB - MDI - Application That Consists Of Mainly One Main Form - Ranging Form Graphs, Tables, Dropdown Boxes, Print Preview

Apr 7, 2010

I have to write an application that consists of mainly one main form, but several different things I wanna display. Pretty standard I guess. So there is a menu, some controls, and the main stuff below (ranging form graphs, tables, dropdown boxes, print preview, etc). I would like to use it like one would use frames in html, design an object that is limited to a box or panel that I define. The literature I have does not give me a clear idea of how to do this (yet). The most obvious seem to be the use of MDI, open a predefined form with no borders, maximize it before showing and remove all minimize/maximize options. But that does not work so well. The form inside the MDI parent does not fit the size that is given for it when it is loaded. e.g.

[CODE]:......................

So my main question is: Is MDI the way to go here at all or are there better/easyer ways to achieve this? If MDI is the way to go, how do I sucessfully restrict a child form inside another object, without giving the user any opportunity to resize (i noticed that I have minnimize/maximize/close buttons, even if I disable them on the child forms themselves)

View 6 Replies

Use Main Form Like MDI Parent Form In Window Application?

Sep 10, 2010

how can I use main form like MDI parent form in window application?

View 1 Replies

Application That Contains A MDI Form As Main Screen

Feb 25, 2009

I have an application that contains a MDI Form as the main screen. In the text field of the form, I am trying to display the version of the application using the following syntax:[code]Using the above code, it always looks like 1.0.0.0 when in reality I'm on version 1.0.0.6. What am I doing wrong?

View 11 Replies

Reload The Main Form Without Closing An Application?

Jun 12, 2009

I need to reload the form of my application. The application has only one form vb.net 2005. I need a button that will call the page_load event so I can restart and reload all my settings. basically I need to call the Sub private Page_load event().I just need to force the reloading of the form without having to close it and reopen it.This is the code which I need to reload:

Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each URLname As String In My.Settings.URLtoTrackCollection
URLtoTrack.Add(URLname)

[code]....

View 8 Replies

C# - Detect If Application Start Using A Manual Handling (Pressing An Icon) Or Start When Windows Start?

Feb 28, 2011

I have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?

View 2 Replies

Close Only The Main Form In 2010 Without Terminating The Application?

May 7, 2011

I have a login form which I need to close without the entire application being terminated. I tried using Me.Close() , Me.Hide() as well. The login form is used as the main form as well.

View 2 Replies

Display Application Name In The Text Property Of Main Form?

Feb 25, 2012

I am wanting to display my Application name in the text property of my main form. This is the code I a using:
Me.text = My.Application.Info.Title & " " & My.Application.Info.Version.ToString I am wanting to change the name of my project from when I first created it and for this new name to be displayed via the above code.

I have changed the name under the properties setting, yet it is not updating.

View 2 Replies

Pass Constructor Arguments To Application Main Form?

Oct 23, 2010

I've constructed a custom System.Windows.Forms.Form that requires arguments to New. I want to use one of these as the MainForm in a Windows Forms Application. How do I get the Application Framework to pass those arguments as needed?

View 1 Replies

Minimizing A Modal Form Minimizes Parent Or Main Application?

Jun 2, 2009

Is it possible to have an application where form1 opens a second modal form (form2) and then allows the user to minimized form2 causing the entire application to minimize to the taskbar.(form2 is never shown in the taskbar) A simple example of this is winzip where a second modal progress window is opened which can be minimized?

View 10 Replies

Using 'Application.Designer.vb' To Set One Of Two Forms As Main-form For Splash Screen

May 25, 2009

I am using the following code in the 'Application.Designer.vb' to set one of the two forms as the the mainform for my splash screen.The global string array gSetupStr(0,1) only produces a correct result when any Msgbox is inserted before the 'If' statement.However,I do not want the Msgbox during a splash screen, but do want to control the mainform. [code]

View 1 Replies

Add Command Line Switching - Start The Application In XX Mode - Start Application With 30 Second Delay?

Mar 27, 2009

My intentions are to add command line switching. I am trying to see if i could run my application in varoius ways i.e.

App.exe -S - Start the application in XX Mode

app.exe -T30 - Start application with 30 second delay

and that kinda switching.

View 7 Replies

Start Up With Sub Main?

May 2, 2005

How do I start up with sub Main? I created a sub Main in a class. I clicked properties on my project. It provided a combobox of possible startup forms, but nowhere could I find an option to choose sub Main.

View 2 Replies

Start A Vb Express Application Without Opening Its Form?

Jul 28, 2010

I've been in VB express for about tree weeks, formerly of VB 5 for about 10 years.

I need to open a form on top of the form of another application, that is, making the other applications form its parent. The title on the applications form can change, so searching for the form by name won't work.

I'm also curious, can you start a vb express application without opening its form? Like in Vb5/6 you could start in Sub_Main?

View 14 Replies

Start Project With Sub Main()?

Mar 7, 2012

I have created one Windows form based VB.Net project in which I want to start my project with Sub Main()

I have added one module and created one Public Sub Main() method but when I am trying select Sub Main from Startup form, I am not getting the method there. I am using VS 2010

View 4 Replies

Start Your Program From Sub Main?

Mar 11, 2010

Is there a way to start your program from the sub main() like you could with vb.net

View 4 Replies

Form To Start Up Hidden - Small Taskbar Application

Jun 24, 2011

I want to know how to start a forum hidden. I know I can just add Me.Hide() to the Window_Loaded event, But it's ugly. The user sees the form for a split second then it dissapears. I want to form to start up hidden. Little background on my program, it is a small taskbar application, Has a small notify icon. When the app is loaded. I only want the notify icon to be visible. I have done this by creating my own Main subroutine in a Module that I created. and I am laucnhing the application like so

Imports System.Windows.Application

Module MainModule

Sub Main()
Dim mainWin As New MainWindow

[CODE]...

View 5 Replies

Start Windows Forms App With A Sub Main?

Mar 11, 2010

I am trying to make a windows forms application that starts using Sub Main instead of the Form1_Load event.I have tried putting this in Public Class Form1

[Code]...

View 2 Replies

Set Attributes Of Entry Point Thread Of A Form Based Application Before It Start?

Mar 13, 2010

I do not want to disable Application Framework feature and turn to main function technique

View 1 Replies

VS 2008 Start Load File After Main Screen Showed?

Nov 24, 2010

I have a startup form with one list view and one combo box. When combo box SelectedIndexChanged a make call a subroutine that perform read of a file. In Main_Form_Activated i give a default value in my Combo box. The problem is: The program didn't show me the main screen and after call the subroutine to load the file but without show me any screen starting to load the file and they show me the screen AFTER the load of the file.

View 6 Replies

Process.Start To Start An External Command Line Application

Aug 4, 2009

I'm using Process.Start to start an external command line application and using the StartInfo.Arguments method to send parameters to the application. I imagine I'll need to use a loop... but I can't figure out exactly how yet.I need to send anywhere from 1 - an infinite number of files names to this application. Each file has to be sent one after the other. So once the first one is done, I need to loop back around and past the second one.I can probably use the Directory.GetFiles method to get all of the files, but I don't know how to assign them.

View 7 Replies

Use Process.Start To Start An Application Without Administrator Privileges On Windows 7

Feb 24, 2012

Visual Basic 2010 - Net Framework 4.0 Client

I have an application (application #1) running with Administrator privileges on Windows 7.

I want application # 1 to start another application (application #2) without Administrator privileges so application #2 is running as a standard user.

Is there a way to do this? I have been using Process.Start.

View 5 Replies

Make An External Application 'child' Of Main .Net Application

Jan 23, 2010

I use SetParent to make an external application a "child" of my Main .Net application. This works fine.What I need to know is why can't I use Me.MDIChildren(0)I thought that using SetParent would increase the number of children by 1, thus allowing me to reference it with the above code, but it shows there are no children in the array.I have been trying, without luck, for 2 days to try to maximize an external app being displayed in my app. I can get it to display, but I would love it if it could Dock to the same size as its container (a panel)

View 3 Replies

Mdi Child Form Order - Move The New Form Behind The Main Form While It Loads

Aug 5, 2010

i have my main child form open. then i show the new form:

[Code]...

but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?

View 12 Replies

Process.start() Freezes Main Program Until Process Finishes?

Feb 21, 2011

I have a program that starts another program after setting the regkeys basically the program continually syncs the calandar of outlook and another application.I set the regkeys than launch the c:sync.exe app. I have tried a simple process.start and launching the process as a thread and they both do the same thing: The other process starts and works as it should but my main program goes "White screen" or "not responding" until the process.start has exited.

I want the process.start to run in the background so if users click in my main app it responds and truly that they can access the context menu of my main app from the taskbar while the process.start is running.

View 5 Replies

TopMost Form - Messages Form Would Be Hidden By The Main Form

Nov 20, 2009

I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.

What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved