WinForms Form Hangs On Startup On One Machine

Jan 21, 2010

For my VB.NET application, I'm using the windows installer that came with Visual Studio. I can successfully install and run my program on any computer in our office except for one. On this particular machine, my program will stall for about 30 seconds before being able to load the main form. When I start up the task manager, the CPU is hovering at about 0 to 1%, so its not really doing anything but freezing up. It will eventually load, but it really shouldnt take this long, especially when it loads instantly on other computers. Now this machine is windows xp with serverice pack 3 and .net 3.5 sp1.

View 3 Replies


ADVERTISEMENT

.Net Application Hangs When Added On Startup?

May 5, 2011

I have created a small multithreaded application using VB.NET. There is no problem when the user manually runs this application. A problem exists when I added this application on startup. It hangs after I rebooted the system. The application is still running its thread but I can't see its GUI because its frozen. If I kill it on task manager and started again, the application works fine. What could be the possible reason/s why this application hangs when added on startup?

Imports System.Threading
Public Class USBLock
Public Event Lock()

[Code]....

or just a thought on this subject: the reason why the program hangs on startup is because the application is loaded while the .net framework service has not yet started.

View 1 Replies

VB VS 2010 - Machine Hangs When Run In The Debugger Or The Debug Exe

Sep 26, 2011

I have an app I'm developing using vb/vs2010. It's an x86 app running on a 64 bit machine. It hangs when I run it in the debugger or the debug exe. When I run the Release exe, it runs fine. System memory doesn't seem to be a problem. I show 1.8 gig free after I load the Release version. I show a similar number when the debug is hanging. Just to make it all really mystifying, the debug version works if I step through it a line at a time.

View 1 Replies

VS 2008 Get Machine Startup Folder?

May 31, 2011

how can I get the shared startup folder? My application is set to add a shortcut to the startup folder, but it isnly for that user, and I'd like it to automatically start for any user on the machine.I know you can do this by adding a registry key, but I'm having trouble getting my registry key code to work in this WPF app.

View 1 Replies

Application Not Starting Wit New Startup Form After Deleted The Previous Startup Form?

Nov 11, 2009

i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.

View 3 Replies

Startup Folder Path For Current User And Local Machine

Oct 28, 2010

How do I get the startup folder path for "Current user" and "All user" in VB.net?

View 2 Replies

Hide Form On Startup If App Occurred Because Of Windows Startup?

Jun 20, 2010

I can hide my startup form (or make it appear hidden) on startup. I can start my app on windows startup--through registry values--if the user checks a checkbox.

But if the app starts up on windows startup, I want the form to be hidden, so the program can just keep working without bothering anyone. If it starts up because the user started it, I want the form to be showing, because the user probably wants to change some settings or something.

View 8 Replies

Force Prompt For Windows Login On WinForms Startup?

Dec 9, 2008

Is there a way to force the Windows Login prompt, just like in web applications, in the startup of a WinForms application (see attached image)?I'm creating a WinForms app that is going to use NT Authentication, but some machines in the company are shared, and logged in with a common login account.I don't want my app to run under the Identity of the common login account. Rather,I want to use Impersonation and prompt for the user to enter their actual domain account name and password.Googling for this in the context of a WinForms application has produces curiously useless results so far.

View 1 Replies

Application Form Hangs But It Is Working

Apr 21, 2011

I have win7 pro, on my win form is a traffic light icon(when it starts it is red, when finished it is green), so that I know when job is finished. But when I run application icon isn't changing and form hangs it self, can not do nothing until job is finished. Only in the end, I see that icon is quickly changes to red and then back to green.

View 1 Replies

Form Hangs When Inserting Data

Aug 21, 2010

How to solve a form hangs problem during on inserting data to the database?

[Code]....

View 2 Replies

VS 2008 Form.Invoke() Hangs Up?

Jun 23, 2011

I'm using the following code to close a form (Inherits System.Windows.Forms.Form) but it sometimes hangs up at the Invoke() ...

Private Delegate Sub closeFormDelegate()
Private Sub closeForm()
If myForm.InvokeRequired Then

[code].....

View 4 Replies

Communications :: Windows Form Hangs Or Freezes How Come?

Jan 9, 2011

I put this Code into a module and try to call it to start the Server side of the the applaction there also a Client but the Server side is done in a Console app but when i try to do it in a Windows Form it hangs once called to start listening. [code] i found this code on the internet that i was just playing with. its pretty neat but i cant figure out the program of the Windows form hanging issue.

View 1 Replies

IDE :: VB 2008 Express IDE Hangs On Form Redraw

Jul 8, 2009

The VB2K8 Express IDE is hanging intermittantly when I click on the form's Design tab. The tab's work area goes blank and a wait cursor appears. I can't switch tabs or do anything else within the IDE at this point. I have to go to the Task Manager, end the VB taskk, and restart the IDE. VB is at SP 1 with .NET 3.5. I have no third party add-ins or controls except for the Visual Basic Power Packs which aren't being used. At this point it is annoying and I haven't lost anything yet but it is happening more frequently over time.

View 4 Replies

VS 2008 Form Hangs Under Vista 64 Bits?

Jul 8, 2010

I have detected a problem running my application under Vista 64 bits OS.

My application is developed using VB.NT 2008 and compiled as x86

I have a main form. In this form there is an option to open other form. TThis second form must return a few values to the main form. When the user click on this 2nd form, to return values, this form hangs up (2nd form hangs up)

But for what I could have known, it continues executing the rest of code that exists after to open form. I want to say that the form dialog (2nd form) is not closed (hangs up) but it the code continues being executed, because I have seen that inserts the data in the database.

The application not returns any error and any exception.

frmWaiting (form displayed when call thread)
This forms contains progressbar
main form
Dim ThreadVentas As System.Threading.Thread

[Code].....

View 4 Replies

Change Startup Position And Move A Docked Form With Parent Form?

Mar 23, 2011

well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used

Me.toplevel = false
Me.parent = form1

View 6 Replies

VS 2008 - Mdi Form - Startup Form For My Program - Hide The Treeview

Jul 2, 2009

I am using vb.net 2008 i have been using a mdi form which is the startup form for my prog. and i have a main menu on that form. now i would like to shift to tree view as my client has asked for it. whenever a node is selected i can select the form corresponding for that particular code. everything is fine till here. but when the form is loaded the tree view is coming on top of the form the tree view is docked in a pannel. now i have tried everything treemenu.sendtoback and the say the form to b called is taxtypemaster then taxtypemaster.bringtofront but still the tree view is coming over the form

I have tried the following :

Dim mMenuSelected As String = e.Node.Name
Select Case e.Node.Name

[CODE]...

Even the visible doesnt work as it seems after the .show it makes the tree view visible again. how do i hide the treeview pls. someone guide me at the earliest. i feel it is not the prob. of treeview but something to do with the mdi form am i right ?

View 23 Replies

Close The Startup Form And Open A New Form?

Jan 3, 2010

What I want is -

Dim filename = System.IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString)
Dim openForm As Object

[Code]....

View 4 Replies

Can't Run Startup Form

May 23, 2011

As usual, I change the startup form under Application tab. At this time, it doesn't run my selected Startup form. Whatever I set to any forms or even excluding that form, it still runs the same form.

View 2 Replies

Get The Name Of Startup Form?

Mar 31, 2009

Is there a way to get the name of startup form? I want to access a property of a control that is on startup form.

View 3 Replies

Getting A Form To Startup On Top

Jul 28, 2010

VB2008 application.

Using a splashscreen.

When the spashscreen is done, the main menu for the program appears.

The problem is that the main menu appears UNDER things already open on the desktop.

Always On Top could be the answer BUT if I do that, all sub-menus will be UNDER the main menu rather than stacked on top.

View 4 Replies

IDE :: A Startup Form Has Not Been Specified?

Oct 30, 2010

I continue to get this error when using the code samples from Cengage's book Zak's Programming with Microsoft Visual Basic 2008. I am running Visual Studio 2010.I am attaching the code below:

Option Explicit On
Option Strict On
Option Infer Off

[code].....

View 8 Replies

Startup Form Has Not Been Specified

May 16, 2011

I'm supposed to invoke the click event for the two default radio buttons when the form first appears on the screen and I did that but its giving me the following error message when I run the form.A startup form has not been specified.url..

View 2 Replies

Assign Startup Form In VB

Oct 15, 2011

I have an problem to assign a startup form in vb.net. I have three forms:

1) Registration Form
2) Login Form
3) Main Form

Firstly i have set set startup form as registration in properties =>Application after registration completed or saved i am displaying the Login form by hiding the registration form. and entering username and password it displays the Main form. Now the twist when i exit from application next time i started to run my project where i can check if their is entry in registration form it will directly goto login form.

View 3 Replies

C# - What Is Startup Form Constructor

Feb 16, 2012

I need to put following code in the Constructor of my startup form.
JohnKenedy.BusinessSQLEXPRInstaller _ins = new JohnKenedy.BusinessSQLEXPRInstaller(" _ <Installation Display Name>", "localhost", "<New database instance name>", _
"<new database name>", "<database password>", "<database backup filename>");
if (_ins.IsDone == false) _ins.ShowDialog();
if (_ins.IsRestart == true) {
Application.Exit();
this.Close();
return;
}
But I really do not know what the Constructor is and how to access it?

View 2 Replies

Choose Which Form To Startup?

May 28, 2009

make my application choose which form to startup using an IF statement. Where can I type my IF statement to make it work that way? Please explain in very simple terms.

View 2 Replies

Having A Startup File Instead Of Form?

Jun 1, 2011

I created a VB.Net Windows Forms application and my Form1 is my startup form. I want to have a class be my startup file instead of my form. In c# you have program.cs which does that for you but I cant seem to find something like that in vb.net.

View 1 Replies

Making A Form 3 Startup First

May 25, 2009

How do I do it, I suppose it would be through properties but Im not sure where

View 2 Replies

Name Of Startup Form Instance?

Aug 2, 2010

this might be a really dumb question, but if someone could enlighten me I'm writing a Winforms application in VS2008 vb.net.The application starts with a main form. I've got a status bar at the bottom of the main form, indicating the application status. I've got a 'SetAppStatus' method on the Main form.

I'm writing a class that needs to update this status. So in the class I'm Importing the Main Form. But I don't know how to call this SetAppStatus method because I don't know what the instance of the main form is called Plus am I doing this the right way? I'm still grappling a bit with how .NET all fits together and it can get a bit baffling :)

View 10 Replies

Startup Form Will Not Close?

Sep 13, 2009

I have a startform called start1 this opens a form called oppstart, I added Me .Close avter the showialog codelike this:

[Code]...

View 5 Replies

VS 2005 A Startup Form Has Not Been Specified?

May 12, 2009

I have a VB.net program that originally had a form. I added a module and then deleted the form, but now I get the error...

"A startup form has not been specified"

With VB6 I would change the startup object to sub main, but I can't see how to do this in the properties of the project. I tried changing the application type to console, but then I get the following error...

No accessible 'Main' method with an appropriate signature was found in 'WindowsApplication1'

How can I do this without using the original form?

View 10 Replies







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