Form Freezes When Running

Jul 24, 2009

Firstly I want to state this doesn't affect the usability of my program. I made a GUI for an old cmd line program and when running the GUI's form will freeze up and be completely unresponsive. This is annoying since you can't move the form and if you open something over the form then move/close it you get the affect in the attached pic. Attached pic is the program running and the windows calculator being moved around over it.

Is there a way I can have the form stay responsive while the program is running? I don't need for any of the buttons, text boxes, etc to be editable while the program is running.

View 6 Replies


ADVERTISEMENT

UI Freezes Though I'm Running My Sub On A Separate Thread

Aug 11, 2011

I'm working on a checksum tool, which loads all the files in a specific folder to a listview then, calculates the hash value of each file and save it to a text file.Ok, everything is working properly except for the calculation, when I start it on a separate the my UI freezes.[code]...

View 5 Replies

Form Freezes When Going Delay Sub

Feb 25, 2010

I can grab if keypressed when form active, i mean not in sub procedures..but my form freezes when Going Delay sub.. its working.. no error but cant use any control or event of form while waiting 10 seconds.. (Form's keypreview property set to true.. )

U can use This if u want to wait applicaiton but u cant doing anything when apication in waiting period..

i think i must to check keystroke in this delay sub.. or am i call Delay sub in wrong time.. i mean i call it form activate event.. should i call it another event ?[code]...

View 2 Replies

UI Windows Form Freezes Up?

Sep 1, 2009

I have created a custom video player in C#. This player has two forms.
1. The Video Player window ( running in primary (UI) thread )
2. The content playing window (running in a secondary thread)

Everything goes fine for nearly 5-6 hours, then the main video player window freeze. So I cannot access any of the buttons (stop, pause ,exit) in the player. But the secondary thread keeps playing the files for even two days continuously (which is the max I tested).

Things I have checked :
1. There is no memory issue, since I dispose the objects I create after playing each file (few min videos). I have checked the process in task manager, where status is running and memory usage as same as it is started.

2. I have used Begin Invoke from secondary thread to update the current playing file in the list box on the main video player window (once the main window freeze, the update is not visible).

3. I have used a timer in the main video player window and tried refreshing form, calling Application.Do Event() for every few minutes, still it gets freeze up after 5-6 hours.

Why the UI window freeze up? Is my architecture for the player is wrong? (I need to do lots of processing in secondary thread for the images and videos to be played, but it is working fine).

View 3 Replies

Progressbar Freezes Main Form

Jun 15, 2011

I pass progressbar byref to the processing() function on ClassLibrary. My main form freezes when i run this.How can i prevent my main form by freezing? My Function is always on the class library, so is there any way or any type of approach to this problem. I need the progressbar to be accurate in showing the process.[code]...

View 6 Replies

Timer Freezes Gui And Cant Do Anything On Main Form?

Jun 22, 2011

i have a timer (interval=4000) that does an operation , the problem is that it freezes my gui and i cant do anything on my main form , i have used Doevents , Me.refresh , but the problem still exists , I could really use some code if someone has...

View 6 Replies

VS 2008 Form Freezes On .show()?

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example.

We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

Channels(ChatIndex).Show()
The form opens but freezes.

I have also tried using

Channels(ChatIndex).ShowDialog()
Application.DoEvents()

Using the above code, the form does not freeze but appears we can not access any of the controls such as (RTB)

What would be causing the form to freeze on .show(), Has anyone else had any similar issues?

View 9 Replies

Windows Form Freezes On .show()

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example. We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

[Code]...

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

Opening A Chatroom - Form Freezes On .Show()

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example. We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

Code:Channels(ChatIndex).Show()

The form opens but freezes. I have also tried using:

Code:Channels(ChatIndex).ShowDialog()Application.DoEvents()

Using the above code, the form does not freeze but appears we can not access any of the controls such as (RTB) What would be causing the form to freeze on .show(), Has anyone else had any similar issues?

View 9 Replies

Form Does Not Respond - When Press The Send Program Freezes

Jun 6, 2009

When you press the send program freezes and you can't do any thing how i can add button puss resume and stop

[Code]...

View 3 Replies

Invoke Form - Custom Made Messagebox Opens But It Freezes

Apr 14, 2012

I am having Socket server, and I have two forms. One is the main form for the server and the other one is a custom made messagebox. When a request comes to the server the main form has to invoke the second form (messagebox). When the main form is open for the first time everything works fine. But when I close the main form without closing the application and open it again and request comes to the server the custom made messagebox opens but it freezes and looks like this:

[Code]....

View 1 Replies

Saving Form Data When Running Have A Form That Paints Ovals Onto A Chart.

Sep 24, 2010

I have a Windows form I would like to save the Ovals I created while running the form for use and review later I have been trying the SaveFileDialog but have not figured how to get my data out to the file that is created. I have read about using datatable but there again I'm working with that but need to find how to load all my Oval parameters into the table so I can recreate the current look of the form.

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

Data Of Child Form Does Not Appear When Running The Parent Form?

Mar 2, 2012

i have a parent form-->frmComparisonTool the child form is-->frmIterationWindow i used the following codes to integrate the second form to the main one:

Private Sub ComparisonTool_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim debuglist As New IterationWindow
debuglist.TopLevel = False
Me.DebugWindowPanel.Controls.Add(debuglist)

[code]....

View 4 Replies

Getting Gif To Run In Form Whilst Code Is Running On Another Form

Jan 4, 2010

I've got a form that opens up whilst data is being pulled from the database in another form (basically a box to say it's loading), the form opens when I want it to and the gif shows but doesn't run until the code on the other form has finished.

View 5 Replies

Error While Running The Form

Jun 12, 2007

I'm getting the following error while executing my form:

An error occurred creating the form. See Exception.InnerException for details. The error is: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "WindowsApplication1.TravelRequestForm.resources" was correctly embedded or linked into assembly "TravelLog" at compile time, or that all the satellite assemblies required are loadable and fully signed.

In the details section of the error the following message is displayed

[Code]...

View 2 Replies

Moving Form While App Is Running

Apr 6, 2012

I'm developing a VB.net windows form app in Visual Studio 2010. I want to be able to drag the form to another location or minimize it while the app is running. Is that possible? Here's and example. I have a form with 1 button. Here's the code associated with the button:

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim time0 As Integer
Dim time1 As Integer
For time0 = 0 To 1000000000
time1 = time0
Next
End Sub

I can move the form or minimize it until I push the button. Then it freezes until the code stops running.

View 2 Replies

Running A Form On Another Thread?

Apr 28, 2012

what i currently have is the main form that then when a user presses a button it runs some functions that loops through some files and changes them and then copys them to another location the functions can take quite some time. what i want to is when the button is pressed it opens another form with a textbox on it and when it has finished 1 cycle of the loop is outputs a line to the textbox and tells the user weather or not it has been sucsessfull.

at the moment i have:

Dim t As Threading.Thread
t = New Threading.Thread(AddressOf Form3.Show)
t.Start()

[Code]....

View 1 Replies

App Freezes When Should Give Error

Aug 24, 2009

I have a datagridview which fetches data from a local SQL server. Now, I have a setting called My.Settings.database_url which indicates the hostname of the SQL server.

Now, the problem is that if the host name is incorrect, instead of getting an error, the app just freezes. So what must I change in order to fix that?[code]...

View 2 Replies

Screen Freezes With Backgroundworker?

Feb 24, 2011

using a backgroundworker to accomplish database update it takes about 30 minsbut when I minimize the screen or someone remote access my computer it cause freeze screen of my application .Although process workes fine and application is running in background but UI is disable and saying "not responding"

View 2 Replies

Sendkeys Freezes The Computer?

Mar 30, 2011

I'm using a grid and the instructions SendKeys.Send("{end}") whenever I write a letter in a cell, so the cursor places at the end of the cell. It works when I write a letter, however when I write the symbol "/" it doesn't work, and when i get this instruction in the debugger, it freezes.

View 1 Replies

VS 2005 - IDE Unresponsive And APP Freezes

Jun 4, 2009

I have an application which runs quite good, only once every X minutes it totally freezes, and even when running debug mode from within the VS2005 IDE, Visual studio becomes unresponsive. After pressing the pause-button to see where the app might be stuck, a messagebox saying "Unable to break execution" might pop-up after a minute or two. My app uses some timers, threads, and threadpool calls. So I'm afraid I got a deadlock somewhere, although I can not find it. Is there any way to find out where my app might hang?

Note: I synclocked every routine with a dedicated object, and for queues or arraylists, I even used the synchronized methods to modify them. I don't use recursive routines, so they cannot deadlock themselves. The strange thing (to me) is that all of my app hangs, none of the threads seems to be running, nor background, nor the GUI and even the VS environment.

View 4 Replies

Allow Form Interaction While Program Is Running?

Sep 1, 2010

On my program the user clicks a button which then runs the main code for my program. The problem is once the code is executed I can no longer move or interact with any form boxes, reliably at least . Sometimes there will be a period of delay where I can move it for an instance. Is there anyway I can make it so that my form is able to be moved while the program is running?

View 3 Replies

Closing A Form Running In A Different Thread

Sep 6, 2011

I have form1 and form2. A button on Form1 calls a thread background process (below). That process processes the command and when its done should close form2. I'm opening form2 within the current thread but trying to close it in the background thread. This is because if i close it in the current thread it closes immediately. I included the 2 functions below and what I have tried in the inline comments. Form2 is a simple form, basically just an animated gif. It is to show the user that something is happening(like a status bar) then close when its complete. I tried running different priorities instead of different threads but due to the results threading seems to behave the best. I'd like to keep access to both forms during the process, the pc, and screen refreshes realtime.[code]

View 2 Replies

Duplicate A Form When Running The Application?

Jan 12, 2011

I want to make a program just like SitckNote in Win7.

When I click "add" button, another form pops up, just same with the current one. How to do that?

View 5 Replies

Form Update While Process Is Running

Jun 7, 2011

I have created a porcess that manipulates large volumes of text. I have created a form that has a button that manually starts the process. I have tried to give some feedback that the process is actually progressing through the data by changing the value of text fields on the form. However the text fields do not update on the form until after the process is complete. I had this working in another program but cannot figure out what I am doing different.I use the following code to change the text.[code]

View 2 Replies

Running A Program In The Background Of Another Form?

Jul 26, 2011

I am trying to write up a program that has a few forms that you interact with and do various things with but I also need to have a TCP/IP client/server running in the background to handle a automated connection to a PLC. Is there anyway to have the TCP connection open and receiving/sending in the background even when the operator is doing something else?

View 1 Replies

Running An External Program From Within A Form?

Jan 26, 2010

Some time ago I saw a code to host an exe from within a visual basic form, acting as its parent. How would I go about doing this in vb.net? I havent programmed in ages, but recently have gotten an interest again in order to complement

View 3 Replies

Running Code In Form Load

Jul 15, 2010

We have a purchased application written in Visual Studio 2005 that uses tab controls for displaying information. One of the tabs is for reporting and I am trying to run some code to enable and disable a Validate button. It has a proprietary report component (LxReportView1) that is initially disabled. As user enters information, the Validate button is used to check for required fields. After data entry entries have been validated, user click Validate one last time and record gets flagged as validated and report component (LxReportView1) gets enabled for use. Ideally, whenever this Report tab is clicked, it will run my code EACH TIME.[code]Works fine when user's first action is to bring up a record that has already been validated. So when user clicks on Report tab, report component LxReportView1 has been enabled for use and the Validate button has been disable just as designed. Problem is that given a list of records, if user selects a record that has NOT been validated yet and then later on brings up another record that has been validated, code does not run. How can I get this code to run EACH and EVERY TIME the form loads.

View 4 Replies







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