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


ADVERTISEMENT

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

[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

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

[2008] Show Image While Main Form Loads?

Feb 10, 2009

I have an app that connects to a remote database.The connection to the database is triggered by the form load event of the main start up form which prompts the user for user name and a password.Here is my problem:Sometimes it takes a number of seconds for the database connection to be established after the user has double clicked the desktop icon. this means that during this period it appears that no action is taking place until the startup form becomes visible.Some impatient users assume that nothing is happening and double click the icon again.What I want to do is to have a graphic image or something pop up on the screen immediately when the program starts that displays something like 'Connecting To Database, please be patient"

View 1 Replies

VS 2008 - Show As A Drop Down Does Not Appear To Take The Focus Off The Main Form That Is Calling It?

Nov 3, 2009

Q1: How can i make it so that my window that i want to show as a drop down does not appear to take the focus off the main form that is calling it?

Q2: The form that is dropping down has the FormBorderStyle Property set to None - thus the window does not have a drop down shadow - how can I make the popup window have a shadow?

View 1 Replies

How To Display Only Main Form After Login

May 18, 2009

sConn.Open()
lDA.SelectCommand = New SqlClient.SqlCommand("SELECT * FROM login WHERE username='" & TextBox1.Text.ToString & "' and userpassword='" & TextBox2.Text & "'", sConn)
lDS.Clear()
lDA.Fill(lDS)
If lDS.Tables(0).Rows.Count > 0 Then
[Code] .....
This is my code to enter login form and after that main form is opened. Still loginform is there. How to close the login form and display only main form after login successes.

View 14 Replies

Main Form Closing After Login?

Apr 3, 2009

Ok i have a login window which connects to a MySQL database and authenticates the user. Works perfect, BUT

If rowsEffected > 0 Then
cnMySQL.Close()
LoginForm1.Close()
MainForm.Show()
Else
cnMySQL.Close()
MsgBox("Login Failed!")
End If

That's supposed to close the login form and open the main form if the query returned a positive match of the login information. The login works, closes the login form, opens the main form, than mysteriously exits the application. I'm guessing its something simple but i don't see it .. the main form has nothing in it besides some inputs and labels no subs at all and if i change the form which the program starts to to the main form it runs as designed.

I know usually if you start your program from a module and use Application.Run() you can keep the thread open, but this is all forms no background work so i didn't want to go that direction.P.S. i just removed LoginForm1.Close() and it logs me in fine and opens the main form fine and keeps the app running but the login form is still open.

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

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

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

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

VS 2010 Splash Screen & Main Form?

May 11, 2011

Namespace My
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize(

[code].....

View 5 Replies

Close Login And Open Main Window Form?

Feb 15, 2012

I am having a difficulty in this login form that I have made. The same as the premade template login in VB 2008 which I am using right now.Here's what happens when I run the program Log in form open > Log in successful > Main window appears *The login form still does not disappear.

I tried hiding it via me.hide() Log in form open > log in successful > Main window appears > log in form disappear.*Now the problem is that I cant close the whole application because the login form is still there only hidden. Again I tried putting in the "EXIT" button the code me.close() login.close()Log in form open > log in successful > Main window appears > log in form disappears > Exit application *Now everything seems to be ok now and then I found another problem.Instead of clicking the exit button I tried clicking the X button on the main window. There I found out that it only closes the main window. Therefore not closing the whole application because the login form is still hidden.

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

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

Do Not Show Tab On Main Navigation Pane

Sep 29, 2010

I have an app, that when they start it, I dont want it to show up on the main navigation pane, I only want it to show in the area where the clock is etc.

View 8 Replies

IE Show Up On Top Of ParentForm (Main Application)?

Apr 20, 2010

When internet explorer open and have it maximized on the screen, and if then goback to my application and then click on menuitem. Which popups a child form. Upon closing child form, parent form loosing its focus and IE show uop on Top of my application. How i can i activate my Application when any child form closed.

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

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

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

Show A SplashScreen While The Main Form Loads In The Background?

Aug 14, 2011

I have created a project that shows a splash screen first and then shows the main form once the main form has been fully loaded. I only want to show my splash screen once the main form has completely loaded in the background. My main form by itself takes like 3 seconds to load, so I would like to display the splash screen for about 3 seconds and then show the main form because the main form will then be fully loaded, but instead it shows the splash screen for 3 seconds and then the main form still has to load anyway.How can I load the main form in the background and then show it when it is fully loaded?

View 8 Replies

User Controls Hide And Show In Main Form

Feb 8, 2012

I have a couple of user controls, which I show in my main form.

So let's say here's what i want:
Sub Show_Control1()
UserControl1.Show
'CODE TO HIDE EVERY OTHER DISPLAYED USER CONTROL ON THE MAIN FORM
End sub

Right now I have to hide them one by one with hide, because I don't know what's the current displayed form.

View 2 Replies

Error 3 'Sub Main' Is Declared More Than Once In 'SystemInformation': SystemInformation.Program.Main()

Jun 14, 2010

I have a solution with more than one project and the main project contains buttons to open forms from different projects that are in the same solution. Say Project1 is the main project and Project2 is the different project that gives the following error when i compile it:

Error 3 'Sub Main' is declared more than once in 'SystemInformation': SystemInformation.Program.Main(), SystemInformation.My.MyApplication.Main(Args() As String) System Information II

I have already seen other threads with this question but it does not work for me because i have more than one project.For Project2: Application Framework is disabled and the startup object is "SubMain".

View 2 Replies

Login Facility Reading In User Info From A Main User File?

Nov 9, 2011

I have been trying to solve this for 2 days now, every text book I own and google have been well and truely exhausted and I am still no closer to solving my problems.I have a login facility reading in user info from a main user file. This takes all info into a temp array and then splits usernames into a username file, passwords into a password file and a current score in a score file.

I have the login working fine and everything else in my program works as intended but touching up cosmetic aspects I want to add a Message box after login to say hello and display current score. This works great for the first name in the user file i.e - after login User1 welcome to the game. Your current score is 45 As intended.But the problem arises with any other users, my message comes out as

User2 welcome to the game. Your current score is 55 I do not understand where the random new lines are coming from. I have tried assigning the message as a variable and removing new line using

[Code]...

View 9 Replies

IDE :: Main Form Is A Login Form If The USer And Password Matches

Mar 25, 2010

im trying to do where the main form is a login form if the USer and password matches that in the code it goes to the main screen if it doesent it launches a form saying this user and or password is incorrect and when you click ok it closes that message window as well as the login form stop the program from launching is has to match the user and password from the text on text box one and masked textbox 1.

View 3 Replies

Added A Full Main Menu To Game And A Full Splash Screen

Apr 29, 2011

I have made quite a nice and tidy little game. Its based around space invaders and works quite well. however because i have finished my college project almost 2 weeks ahead of the assignments release date, my tutor has asked me to tweak my project and make it better.So far i have added a full main menu to the game and a full splash screen. I would like to add in a section for recorded high scores but have no idea how to attempt this at all.

View 3 Replies







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