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


ADVERTISEMENT

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

How To Close External Application On Exit From Main Screen

Oct 14, 2009

I have a button in Main screen, which calls A.exe when you pressed on it.
Process.Start("A.exe").
If I exit from Main, how can I make sure A.exe is closed too? Application.Exit in Main doesnt seems to work.

View 2 Replies

Display The Splash Screen Before Going To The Main Form?

Jan 14, 2010

Hello.. I'm using a splash screen for the first time in an exercise. I have it set up to display the splash screen before going to the main form. I made changes to the splash screen title and copyright information. When I execute the program, the splash screen comes up but it's not displaying the information I changed. When I view the splash screen the changes are saved. It displays the project name where the application name should be.

View 18 Replies

Forms :: Add A Login Screen In Main Form

Mar 17, 2011

I've created a windows form application in vb 2010. I've got all my forms complete and now want to add a Login screen. One the login screen, after the username/password is entered and OK is pressed, I try to open the a connection string. Obviously if the connection fails, the user has entered the incorrect credentials. If the credentials are ok, True is returned and I then open up the Main form that shows the correct items for the logged in user.

[Code]...

View 5 Replies

VS 2010 Splash Screen & Main Form?

May 11, 2011

Namespace My
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize(

[code].....

View 5 Replies

Main Form Shows At The Same Time As Splash Screen?

Feb 16, 2012

My main form shows at the same time as my splash screen.

ApplicationEvents.vb:
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize( _[code]....

View 1 Replies

Splash Screen Delay Before Loading Main Form?

Dec 18, 2009

Im trying make my application display my splash screen for 5secs before loading my main form. I have read lots of threads on this and they all seem to point to the following:Add the following code to the New() sub of the splashscreen.

My.Application.MinimumSplashScreenDisplayTime = 5000

I have also seen a suggestion to add the following code to the OnInitilalize event in the ApplicationsEvents file.

Me.MinimumSplashScreenDisplayTime = 5000

I've have tried both ways, and although it successfully makes my splashscreen wait 5 seconds before closing, it doesnt prevent the Main form from waiting for the splashscreen to close before loading. The mainform simply loads over the top of the splashscreen.This thread is exactly what im after but i cant seem to get mine to work.

[URL]

I have application framework enabled. I have my startup form set to my main form, and i have set my splashscreen in the application tab of my project properties. Im using VS2008.I also noticed that when i clicked on the "View Application Events" button in the application tab of my project properties, the file was blank. I have seen that some other people have had problems with this. I just cut and paste the following code into my ApplicationEvents file. Potentially an issue??? Any reason why the code was not auto-generated to begin with?

Namespace My
' The following events are availble for MyApplication:
'
' Startup: Raised when the application starts, before the startup form is created.

[code]....

View 4 Replies

VS 2008 - Bunch Of Errors - Main Login Box And Then Fail To Show The Main Screen

Jul 28, 2009

My app works fine on the development machine and 3 other machines. However, some machines just show the main login box and then fail to show the main screen. There is no error message. I installed VS 2008 express on on of such machines and when i compile the project, the following errors appear:

Type 'Microsoft.Office.Interop.Access.Application' is not defined.
Type 'dao.DBEngine' is not defined.

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

View 3 Replies

Forms :: Question After Splash-screen Shows Main Form Is In The Back?

Sep 24, 2010

I have a splash screen, the default from Visual studio. It loads up, is shown for a few seconds, then, when it disappears, the main form is loaded. Now here is the problem: the main form appears in the back, behind the windows explorer window I load the application from.

The weird thing is that this only happens on some computers, particularly Windows XP machines.I tried a lot of things like BringToFront() or TopMost = true in the on Load event of the form but nothing seems to change this.

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 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

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

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

'abort' (terminate Immediately) A Form Screen In A Windows Form Application Running Under 'local' Environment?

May 30, 2012

FormA calls DialogB where user cancels DialogB which exits via ForceTermination(), see insert.Caller FormA check for DialogResult not = OK, which it isn't, and I can see this in debug as Abort(3).However, the code continues merrily along its way until I get a 'null reference' error which I'm trying to avoid via Force Termination().This is caused by the user cancelling DialogB, a selection process to get a database (SQL) instance.[code]

View 13 Replies

How To Build A Main Menu Screen

Jan 1, 2011

I'm a beginner VB.Net programmer using VS 2008.I'm planning a new winform project whose main form should look more or less like this:

[Code]...

The user can either choose from the Main Menu (by clicking an item) or enter the item number in the textbox. For example, if the user clicks DoSomething3 in the Main Menu (or alternatively enters 3 in the textbox), another form will be opened and hide the main form.What would be the best way to implement it?Specifically, I would like to know how I make so that choosing from the menu and entering a number in the textbox fire the same event.

View 3 Replies

Message Box Go Behind Main Screen When Click Outside The MessageBox

Mar 19, 2012

I 'm running a multithreaded VB.NET program. After running a particular task in the environment I'm displaying a MessageBox to indicate that the task is complete. Everything works fine, sending data, receiving data, displaying the data, etc. When I display the MessageBox and I click outside the MessageBox, the MessageBox goes behind my Main Screen.

[Code]...

View 2 Replies

[02/03] Login Screen Not Appearing Before Main Menu?

Jan 7, 2009

I'm creating a basic window's application where I have a login screen where the user will enter the userid/password etc. Only problem is when I try to run the application, it goes straight to the main menu.What would give the main menu precedance over the login screen?

View 5 Replies

Touch Screen VB Application -Get Log In Form To Allow The Input Of Values From Clicking On Buttons?

Apr 17, 2010

Using Visual Basic 2008 Express Edition.Note: Program is to be used with Touch Screen. (No keyboard or mouse)TODO: Get Log in form to allow the input of values from clicking on Buttons 1 thru 0.*,# '1. So far Buttons on Log in form allow one entry only. Form needs to allow 9 entries. 2. When Clear button is clicked. Password box entry clears, but then, there is no Cursor.Will worry about the rest (authentication) Later its taken two weeks to get this far.NOTE: Not using a User Name Just a Password

[code]...

View 1 Replies

Create A Splash Screen Before InitializeComponent Is Called On Form Load Of Winforms Application?

Jan 25, 2011

To create splash screen before InitializeComponent, the WithEvents statement for the BackgroundWorker component needs to be moved from the Form's Designer.vb file into the constructor as indicated in the first commented lines of the constructor below.

[Code]...

View 19 Replies

Booking Details Arent Being Shown In The Main Menu Screen?

May 26, 2011

im writing a room booking application, and after i've entered all the details for a booking, which looks like this;

'Declare Variables
Dim sUser As String
Dim sRoom As String[code].....

and now the problem is, its not working , its all going through ok and im not getting any run time errors. But the booking details arent being shown in the main menu screen.

View 11 Replies

Swapping User Controls - Closing Main Menu Screen?

Feb 19, 2010

I have a project (Written in Visual Basic, using Visual Studio 2005) which has several user controls. I have had no problem setting it up where you click a button and it load a user control, but I cannot get it to remove the control that is currently open. For example The program opens on a starts screen, which has the choices, Control1, Control2, and exit. When you click Control1 button it should open up a screen to display an inventory. It does this just fine, but it does not close the main menu screen.

Here is the code for the initial startup of the project:
Public Class Form4
Public Sub Form4Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim CtrlMain As New ControlMain()
With CtrlMain
.Location = New Point(0, 0
[Code] .....

View 7 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

VS 2005 Using An Application To Capture Selected Part Of Screen By Resizing The Form And Capturing Area Of It?

Mar 9, 2010

Hi.. Im using an application to capture selected part of screen by resizing the form and capturing area of it!! now i want to reset the form once my work id done!! i mean if i press a "RESET" button the form should be load as first time it was loaded.(the real form size..)

View 1 Replies

[2005] Multi-Screen Application - Control Each Screen Separately?

Jun 23, 2009

im about to develop a small appliacation for a bet system, which needs 6 screens, each screen will be a touch screen for each client... the application will be running in one computer only just with 6 screens. my question is does anyone knows how to control each screen separately?. somethign that would allow me to output each forms in different screens would work fine.

View 2 Replies

Create An Overlay Screen On A Full Screen Application?

Feb 18, 2010

I am making a program that will put a black mask over an application (like a full screened game). This black mask will fade in and out, depending on certain criteria. Is there a way I can do that with VB? It's to help me dim my monitor without having to push anything.

View 3 Replies







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