Forms :: Creating "please Wait..." For Which Is Not Flicker Or Not Responding

Oct 12, 2010

I am now developing an app to manage process in my company. Since the app will mostly do heavy process such as :

1. Qerying a large database
2. Calculating data displayed on grid
3. Editing value on each cell in a grid and many more

When the app do these stuff, the screen would go into 'not responding" mode, which is quite suck.I am thinking to show a small form contain of 1 label (please wait...) and 1 picture (animated provess gif), but when I do this, the "please wait" form also go to not responding mode.

View 8 Replies


ADVERTISEMENT

Forms :: Progress Bar Stopped Responding?

Dec 21, 2009

I'm using vs2008 programming in vb.net. I'm currently working on a project that reads miscellaneous text files and imports data into a sql database accordingly (Reads line, imports, loops until finished). There are 75k-150k imports to do. I tested it out the other day before using a progress bar, it takes about 5-10 minutes and works fine.

The issue I have is that while importing, if you click anywhere on the form, it will say not responding and will continue to import, but users using the program might be mistaken and think the program has locked up. I thought a progress bar would solve this, since it is responding back while the imports are going on in the background. However, the progress bar works, but as soon as you click anything on the form, it again says not responding and the progress bar stops moving (the imports will complete however). How can I isolate this import process so it can do this in the background, but will not affect the rest of the program?

View 16 Replies

Forms :: Not Responding - Whenever Application Goes Into A Very Long Loop

Jul 31, 2009

Whenever my application goes into a very long loop, the form stops responding. How can I stop this?

View 1 Replies

Forms :: Wait For Sub To Complete?

Jun 14, 2011

i have this

Private Sub typendetextbouwen(ByVal texttetypen As String)
var_Numberofchars = 0
var_Numberofcharstyped = 0

[Code]....

How to make the "Im Marco" wait? else it wont typ the first line

View 2 Replies

Forms :: Displaying GIF Image That Says Please Wait

May 4, 2011

I have a .net 4 form application. On a button click event, I want to open a form that has a GIF image in a webbrowser control, that says please wait. Then it opens a second form that has a datagridview that is being populated from a SQL query. Then I just hide the wait form. The reason I have resorted to this method is that sometimes it takes a while to display the results from with datagridview depending on what the user selected previously. The issue that I am having is the wait form displays but the GIF does not show up. If I make the application wait by using the following code the GIF show up like it supposed to until the timer runs out. At that point the image stops moving but is still present.

Private Sub wait(ByVal interval As Integer)
Dim sw As New Stopwatch
sw.Start()
Do While sw.ElapsedMilliseconds < interval
' Allows UI to remain responsive
Application.DoEvents()
Loop
sw.Stop()
End Sub

My original intent was to use the show method to display the results form and then hide the previous form, but sometimes the previous form would close before I could display the results form.

View 2 Replies

Forms :: Getting A Wait Cursor Automatically?

Aug 25, 2009

I'm developing a big VB.Net Winforms application. Every now and again, processing or db connections take some time and therefore I'd like a wait cursor (hourglass) to appear sometimes. I know I can do it like in this thread (in case someone needs the code):Hourglass?- technical discussion - developer Fusion - ASP.NET, C# Programming, VB.NET, .NET Framework, Java and Visual Basic Tutorials However, I have LOTS of code and I don't know when the user will need to wait. So, what I'd really want is to tell my ApplicationEvents file or the like to globally intercept after say 0.3 seconds and turn the arrow (default cursor) into the hourglass and at the same time disable mouse clicks and the like.

View 4 Replies

VB Forms: Wait For A User Click?

Mar 16, 2010

Making a simple form that is to step through a program iteratively. How can I get it to run a method each time a user clicks a button and wait once it is finished for the next click?

View 2 Replies

Forms :: How To Make Form To Wait For Some Time

Nov 9, 2010

I am trying to fetch some specific data from a file which is updated frequently. So, i am trying to make my form wait till i get a particular data. i am using Threading.Thread.Sleep(10000)to wait and again check the data.

but form is getting hanged (showing NOT RESPONDING)

How can i make my form to wait for some time?

View 1 Replies

Forms :: Wait Until Element Is Loaded In A Webpage?

May 16, 2011

I am trying to get a form button to load the yahoo login webpage, wait until the send button was loaded and auto enter the username and password and hit the send button. My code is as follows

Public Class WebLogin
Dim ie As Object
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ie = CreateObject("internetexplorer.application")

[code]....

View 5 Replies

Forms :: How To Create Dialog (Loading Data Please Wait)

Jun 13, 2007

My Startup form open very slow. How can I show a wait screen while Initialize Component. Then close this wait screen and show my Form.
You can see my attached image.

View 7 Replies

Forms :: How To Show A Wait Dialog Or Splash Screen

Sep 2, 2009

I designed a application on vb.net 2005. Some of the forms in this application has databindings controls. Now when such forms loads it takes some time. I want a splash screen containg "Please wait" message to appear till the form loads and the wait splash screen would be shown for every several forms in the application not only before the start up form.

View 1 Replies

Forms :: Pausing A Running While Loop And Wait For Certain Button Until The Looping Resumes?

May 17, 2010

I'd like to make a simple program where my form consists of a textbox and a button. Here's the ide in a nutshell:in form1_load I invoke the sub:

private Sub LoopingLesson()
dim i as integer=1
while true

[code]....

what I want is when i hits certain value, like let's just say i is divisible by 365, then the 'while' looping will stop, and a message box saying "target reached" appear. then after I click button1, the looping will resume until it reaches the next number divisible by 365, and so on.

View 10 Replies

WebBrowser Control Is In A Wait State : How To Kill The Wait

May 27, 2009

While navigating to a series of sites at one site the WebBrowser control's DocumentCompleted EVENT is tripped and no other recorded Browser events occur after that. When this happens the hour glass cursor indicates the browser is waiting. From this point it take 120 to 250 seconds of wall clock time before the browser resumes. I am looking for a way to force an abnormal termination without destroying the control. I have tried "Stop", "nav to about:blank" repeatedly without success. How can I force an abnormal termination when the Cntrl is in a wait state?

Consider the following: The last known Browser event to be tripped is a Document Complete event; nothing else occurs after this. When this transpires the Cntrl is waiting.

1:50:657: ============================= ENTER WebBrowser1_DocumentCompleted EVENT ========================================
31:50:657: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^THE NEW WEBBROWSER STATEMENT

[code]....

View 7 Replies

VS 2010 Coding Forms - Creating Some Forms And Message Boxes?

Dec 25, 2011

I'm looking forward to reading and adding more to the community here. I've created a text based rpg. Next semester we are learning Visual Basic. I'm on winter break and I would like to get a head start on my learning. I've been working on creating some forms and message boxes. What is throwing me off, is that I have a good feel for doing coding so that I get functionality the will produce effects in a console. Coding the forms is a bit confusing for me. Is this something that others have run into? Is their some good primers for VB? I don't have my text books yet.

View 10 Replies

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies

VS 2008 / Process.Start - Hide All My Forms And Only Show One That Says "please Wait"?

Apr 24, 2009

I am using Process.Start in my application, which is working great.My only problem is, the program it "starts", is an installer, which takes about 5 minutes to install. I woud really like to hide all my forms and only show one that says "please wait", but i cant seem to get it to stay there till the process has finished.

View 2 Replies

Forms :: Creating Paragraph Styles Of Text In Window Forms Text Controls?

May 8, 2010

I am trying to build a NOTEPAD/WORDPAD like application with vb.net on visual studio 2008.

I need an option to define and choose (MsWord, or CSS like) paragraphs styles, such as: "heading1", "green quotes", etc.

View 1 Replies

A Different Kind Of Flicker.

Mar 8, 2011

I have just run into an issue of screen flicker that I haven't been able to solve. I have a panel with dozens of controls on it. Painted onto the panel, behind the controls, are a few colored rectangles.

Those rectangles flicker whenever the mouse is moved over any control, or off the panel. Basically, a paint event for the panel is raised whenever the mouse leaves the panel.

Therefore, I thought that if I only painted the rectangles when they needed to be painted, not every time the Paint event was raised, that I would be able to avoid the flicker. After all, there is no obvious reason why they would need to be re-painted just because the mouse moved over a control on the panel.

the paint event was still being raised, and the panel just wasn't painting the rectangles, so they weren't being drawn at all (but they sure didn't flicker). So, the flicker is being caused by the fact that the paint event clears the panel, which gets displayed in a cleared state for a fraction of a second, then the rectangles are drawn in.

Doublebuffering the form has no discernible impact, which may well be because the screen draws the absence of the rectangles on one frame, then draws the presence of the rectangles on the next frame. They both get shown in sequence, so the rectangles appear to flicker badly.

One obvious alternative is to not even draw the rectangles, which works great, and they are only useful visual guides, not essential components. Still, that doesn't seem like a good solution.

So what I am looking for is a way to supress the display of the undrawn image before showing the finished image.

View 6 Replies

App - Controls Flicker On As It Loads

May 1, 2009

My application is runs without any external dependencies like .dlls. When I run my app, the controls flicker on as it loads. It's not terrible, but it's annoying and kind of takes down from the professionalism. I was trying to figure out what was causing it and found out that it was my background image. My background image is a jpeg and I guess it is too large. Is there a way I can get it to load the image better so my controls don't flicker or maybe use a different file type that is smaller?

View 3 Replies

How To Repaint Controls Without Flicker

Feb 25, 2011

How can we repaint our controls at run-time without flicker (hiding them first and showing them afterwards)?

View 1 Replies

Too Many Controls Causing Flicker?

May 20, 2009

I'm using VS2005. On my old Win XP AMD computer, I developed a stock price chart in VB.net which I could scroll left/right with Hscrollbar. However my old PC failed due to faulty AMD motherboard. Now I'm using an Intel PC with Win XP and same VS2005. My VB.net solution has compiled and runs as it did before - with this difference. Sometimes my scrollbar flashes and sometimes it doesn't. Another thread mentioned "too many controls causing flicker" - but my Form does not have many controls on it. I can't find a property that mentions "flashing" when I search the scrollbar class members.

View 10 Replies

[2008] MDI Paint Flicker (Imp)?

Feb 5, 2009

Whenever I load or close child forms or other form (for that matter) then there is flickering in my MDI form. The flickering maybe because the form may be getting painted with gradient or so. Now this flickering is really noticable and I need to solve this. I am pasting the code that I am using to paint my MDI form. If you guys think the code is in efficient then let me know. Or if there is any fix or other way to go about it then I would like to know.

CODE - written inside my MDI form.

Public Class MdiContainer
Inherits Control
Private WithEvents MdiPane As Control

[code]....

View 4 Replies

Background Image Causes Form To Lag And Flicker?

Jun 3, 2011

I have a 18kb 1024 x768 jpeg image that is set as background image of my form. The problem is the form now lags like crazy. How can I eliminate the lag?

View 1 Replies

VB Background Image Flicker On PRESSING TAB

May 23, 2012

I am making an application using VB.NET 2010 and I have set a background image which flickers every time I open any new Form or hit tab for jumping from textbox to textbox By pressing (tab) it only flickers once but always flicker when ever I close the form and open again. I have tried everything; background image set to, STRETCHED, CENTRE, ZOOM but still it's the same.

View 1 Replies

.net - Reducing Flicker When Change Images In A Panel?

May 4, 2009

How do I reduce flicker in a vb2005 panel?Inside the parent panel I have 2 other panels that I'm am using.

The outer most panel contains a background sprite and the two innermost panels are overlays that change to fit the places in the background sprite.When I change the overlay sprites I would like to reduce the flicker and make it a smooth transition from one sprite to the next.

Here is the code that changes the images in the overlay panels the overlay panel is not changed if the new value is the same as the old value

[Code]...

View 2 Replies

Background Image On Panel Flicker When Scrolling?

Sep 8, 2010

I've got a panel in windows forms (Visual Studio 2008) which has a background image (A book shelf).When scrolling the image flickers and does not redraw so looks awfully - I've tried creating a new object to use double buffering but this has no effect,

[Code]...

View 2 Replies

Flicker Free Listview / Add A Row At Slow Speeds

Jun 1, 2005

I'm using a listview control as a log window for a self-made FTP client application.Sometimes I need to add a row at slow speeds, but also sometimes a lot of information (50-100 rows, like dirlistings, login messages of FTP servers) has to be added to the listview within a For/Next loop.Now adding rows very quickly makes the listview flicker in an ennoying way. So much, the listview is hardly to read.For me, it is important I can see every row added (using different colors to know different meanings).Searching the internet, I find solutions using BeginUpdate & Endupdate of the listview control just outside the bounds of the For/Next loop. This makes that the new rows are displayed only when the For/Next loop is complete.Does anyone know a solution to significant reduce the flickering (maybe without using BeginUpdate & EndUpdate?), but where I still can see every single row added?

View 21 Replies

Game Programming :: Stop Flicker In Animation GDI +?

Nov 28, 2009

The title says it all. I'm looking for a way to stop flickering in my animations using the .net GDI + for making a 2d game. I've found lot's of bad tutorials online about double buffering and refresh but none of them work.

View 2 Replies

Graphics Flicker When Controls Are Added To Form?

Nov 10, 2010

When I add or modify controls on the form the graphics are redrawn many times over.The more graphics that are drawn the slower the machine gets.

View 1 Replies

Interface And Graphics :: Gradient To MDI Form Causes Flicker?

Feb 5, 2009

I am using a MDI form and child forms. Now I don't like the standard back colour of mdi form so I got code on the net which paints a gradient colour to the mdi. So far it is working okay.Now the problem is when I load a child form or close it or do a similar activity then it causes flicker in the mdi background. This gets pretty annoying at times and you see the background flicker.

View 2 Replies







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