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


ADVERTISEMENT

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

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

Time Delay - Make GUI Program To Delay Before The Next Command

Dec 21, 2009

I know that time delays have been covered before around almost everywhere. however a method that forgoes forcing the GUI to become temporarily non-responsive, is all but a myth, or at least to my findings. i have the need for a GUI program to delay before the next command, however using the current method, detailed following, it causes the desired effect however it dose make it much less polished as when you click anything else on the GUI it goes un-responsive for the directed time. [Code] make a sub called say Tdelay( milseconds as integer) and have it run a loop as many times as the milseconds variable indicates and each time making the thread delay for 1 milsecond and then update the GUI/form in some way, then re-loop.

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

Put Delay Without Freezing Form

Jun 12, 2009

put delay in vb.net without freezing form

View 9 Replies

VS 2010 Delay Form Opening

Jun 22, 2011

I am making a simulation of windows loading,Ive made it show the startup screen (startup.vb) and ive got the login screen (login.vb), how can I make it stay at the startup screen for a few seconds before using the startup.show() command.( if I can use that command?)

View 4 Replies

Delay Form Restore From Minimised State?

Oct 16, 2010

I've created a "Loading" borderless Form that's displayed when loading records etc. I'm using the following to keep the loading dialog centered within it's parent.Works great except fo when the form is minimised estore- The loading form appears instantly while the parent (Owner) maximises with the usual VistaWindows 7 animated maximise.

What would be the best method to prevent the loading form appearing before the main form?

[Code]...

View 1 Replies

Display Load Advance Form - Delay Is Not Always The Same

Jun 12, 2012

I have some forms that are slow to open, I want to do is to show you something the user is loading, the time delay is not always the same, as is done

View 7 Replies

Implement A Time Delay In A Module, Outside A Form?

May 15, 2011

I'm working on a Windows Forms application with a module, and I want to put a time delay in the module rather than a form.

View 3 Replies

Splash Screen Load Delay Next Form

Jul 5, 2009

Let's say I want to put a 10 second delay on my splash screen before loading the next form or app.I use a timer, but would it be a simple integer value or several different lines of code?

View 3 Replies

Game Programming :: Way To Minimize Or To Remove Lag Or Delay Of Form

Sep 28, 2010

I have created a game similar to plants vs. zombies or simply called a tower defense game. I have already completed it. but I have 1 big problem. and this is the game is very very lag / high delay. structures , explosions , enemies , projectiles are created using picturebox and declared it using an array and now to my question. Is there any way to minimize or to remove the lag or delay of the form?

View 3 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 Change To Form Backcolor From One Colour To Another With A Time Delay Of 1 Second

Oct 22, 2010

I am trying to change to form backcolor from one colour to another with a time delay of 1 second. I have tried various things without success and this is the best I can come up with:[code]The problem I am getting is the colour is not changing until the loop has finished.

View 3 Replies

VS 2008 Setting A Delay - Allow Another Form To Load After My Program Display's

Feb 28, 2010

I need a way to allow another form to load after my program display's an introduction cut-scene without loading the form in the middle of the cut-scene. Sort of like a delay.

View 2 Replies

VS 2008 Have Noticed That A Form's Keydown Method Has Slight Delay First Time Hold Button

May 20, 2010

I have noticed that a form's keydown method has a slight delay the first time you hold a button. How do I get rid of it?

View 3 Replies

Use "System.Threading.Thread.Sleep(15)" As The Delay Code But Freeze The Form

Jul 19, 2011

I've been trying to use "System.Threading.Thread.Sleep(15)" as the delay code but if freeze the form. I used this "Location.Refresh()" where location is the name of the form, but it didn't give me what I need. This code is going to work on a ProgressBar while typing and the value of the progress bar change while typing. The progress bar jumps to the new value and I want it to move. So I thought about puting it in a "For ... Loop" but the whole form freezes.

[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

Freezes Up The Program And Makes It Unusable?

Mar 26, 2011

In a function I have

Do Until PageLoaded() = True
{
Nothing
}

The problem is it freezes up the program and makes it unusable. I fixed it using timers but it makes my program real sloppy and hard to edit.

View 13 Replies

BackgroundWorker And WebBrowser - Program Freezes ?

Jun 3, 2011

I'm trying to find a way to make backgroundworker do what's in the webbrowser. There is a time-consuming part in the webbrowserdocumentcompleted event that I want backgroundworker to tackle. Unfortunately, I don't know how to link that part to backgroundworker so that BW can do that job instead of webbrowser.

Here's what in the webbrowserdocumentcompleted event:

Sub WebBrowser1DocumentCompleted(ByVal sender As Object, ByVal e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If CheckBox1.Checked = True Then

[CODE]...

The time consuming part starts from line 2 to line 30. My program freezes whenever webbrowser tries to do this job, so I need BW to do this specific job instead.

View 4 Replies







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