"Please Wait" Form With Animated Gif

Jun 2, 2011

Instead of making the user sit looking at a dead form, I figured it'd be nice to show a "Program is working" message to them. And to make it pretty, slapped an ani' gif on there for good measure. The result was not good. The form loads, but only just. The labels with the brief message and the gif do not show and parts of the form background are transparent where they haven't loaded properly. I've tried several way around this:-

1) Opening the form but make it invisible, only making it 'visible = true' when I need it. I had hoped that since the form was already loaded it would display. It didn't.

2) keeping the form opena nd visible but moving outside the bounds of the display. Move it to center screen when I want to see it. No change in behavior, still doesn't load properly.

3) Opening the separate form and then on that form load, call the big sub from the main form. This one just completely refused to show even the outline of the new form and then tried to close it before it had even opened it.

I've done some research on the internet. All the examples I can find are either poorly explained (for my level) or are just so unfathomably complicated that it makes me want to uninstall VB.Net in a fit of rage. So, to summarize: Form1 has a big job to do. Form5 is a small wait message with an ani' gif. While Form1 is working its mojo, Form5 needs to show in its entirety with the gif spinning around in circles.

View 11 Replies


ADVERTISEMENT

Add An Animated Gif To Form?

Jan 31, 2009

I saw the other poster with his issue but I didn't want to hijack his thread so i'll start a new one.I'm trying to add an animated Gif to my form and when I run it I just get the following error.

A generic error occurred in GDI+I've tried several animated gifs and they all do it.

I've just got a picturebox on the form. and the following code

picPictureBox1.ImageLocation = ("c:
eportserver.gif")
picPictureBox1.Load()

The animated GIF is the one from this site: (spinny)[URL]...

View 2 Replies

How To Add Animated Button To Form

Jun 9, 2009

How I can add a flash animated button to my visual basic express edition form? I downloaded a flash animated button already but I dont know how to add it to my form so it act like an animated button on a website.

View 9 Replies

VS 2008 : Load Animated Image While Form Loading?

Jul 14, 2010

I have an application that connect to a database... and this process take a few minutes... and need to show an animated image or a message like "loading...." while the mainform is loading and connecting to the database?

View 4 Replies

VS 2008 Load Animated Image While Form Loading?

Jan 14, 2010

I have an application that connect to a database... and this process take a few minutes... and need to show an animated image or a message like "loading...." while the mainform is loading and connecting to the database

View 2 Replies

Animated Gif On A Form Stops Animating While Processing Takes Place

Sep 1, 2009

I have an add-in application running in Outlook that pops up a form to tell the user something is being processed.The add-in is written in vb. net.The information form has an animated gif on it which should animate as the rest of the program is processing however it stops animating.The code is as follows:[code]

View 5 Replies

Show Waiting Animated Gif Form While Processing Credit Card Details?

Sep 10, 2009

When user click it, it will bring a second form with a waiting animated gif sitted into picturebox..but at the same time it will call processingcard.dll to link to the bank and get results. when finish getting results, the form2 will be closed. if i just show form 2 with animated gif 'Please wait...while processing" when i click button, it works fine[code]...

View 4 Replies

VB - Run Procedure (Sub) On First Form Then Stop In Middle Of It And Wait For Input On The Second Form

Mar 23, 2011

In VB.NET I've got two forms, on first one I have button, on second - two textboxes and "OK" button. I want to run procedure (Sub) on first form, then stop in the middle of it and wait for input on the second form. After that i want to process the data received from second form.

It looks something like this:

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

'Open form2 for input

[CODE]...

The question is how to call the Form2 so that procedure is stoped till the second form is closed?

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

Add Wait Form Effect?

Jun 30, 2010

I want to add a wait process form instead of the wait cursor effect while the method block execute codes.[code]...

View 8 Replies

.net - How To Wait For Form To Close Without ShowDialog()

May 9, 2012

In my program I use WebBrowser control for OAuth. It's located on vk_auth_window form. So in the code I call vk_auth_window.WebBrowser1.Navigate(vkauthurl). If authentication is successful, I silently get token, but if user is not authenticated a form vk_auth_window is showed to them to enter username and password. To check this I catch _DocumentComplete event and check for the right URL. I need no other code being executed until the user finished authentication or closed authentication form. ShowDialog() does the trick, but it somehow hides cursor from username and password fields in WebBrowser control. So I introduced a variable Dim showform as Boolean=True in and set it to False from the _DocumenComplete event and in the main code I use infinite loop.

While showform
System.Threading.Thread.Sleep(100)
Application.DoEvents()
End While

However it makes userinput slow due to thread sleeps. And If i remove them, it loads CPU quite a lot. Is there a better way to wait for form to close? What is it?

View 1 Replies

.net - Wait For A Different Form To Close Before Continuing On?

Jan 25, 2010

I have a little log in screen that pops up if a user selects a certain item on my main form. How do I get my code to stop executing til my log in form closes?This is what I am doing so far. Basically i want o execute the code after MyLogin closes.

BMSSplash.MyLogin.Show()
If isLoggedIn Then
BMSSplash.MyBuddy.Show()
Cursor.Current = Cursors.WaitCursor
End If

View 4 Replies

Wait Graphic In Windows Form

Jan 28, 2010

I have a VB .Net windows form application.On a button click I call a Function, say FunctionA ..and want to freeze all the controls on my main form and display a wait graphic, until FunctionA has finished executing.

View 3 Replies

Wait Until Form Is Close Before Continuing?

Apr 5, 2010

I have something like this:

For Each Entry In CheckedListBox1.CheckedItems
SheetName = Entry.ToString()
Form2.Show()
Next

but I don't want to continue the loop until Form2 is closed. I tried something like this:

For Each Entry In CheckedListBox1.CheckedItems
SheetName = Entry.ToString()
Form2.Show()
Do

[code]....

But that just froze everything and used up all my CPU.

View 2 Replies

WebBrowser Wait For Form Submit?

Apr 24, 2009

I'm submitting a login form remotely with my application but it seems to move on before the next page has loaded.

I'm using

do until webbrowser.readystate = complete code loop

but still getting the problem.

View 3 Replies

Call Form And Wait For Its Button Click

Nov 4, 2009

I have 2 forms, form1 is my main form and form2 is a "Do this or do this" form (Form with 2 buttons like a are you sure form). When the user tries to close form1 if their is more than 1 tab open, it shows form2 which ask if they want to close the whole program or just the current tab. How to revive what button the user clicks on form2. How would I need to do this?

''Form1:
Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If (tc1.TabPages.Count > 1) And (My.Settings.AskClseTab = True) Then
If frm_Closemain.ActionTakin = "Exit" Then
GoTo Cont
[Code] .....

The problem: as soon as the form loads it becomes "Not responding" I believe this is caused by my do while loop, what other way could I go about doing this?

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

Get Voice Prompt To Wait For Form Open?

Jul 1, 2011

I have a form with voice prompts on it for entering data into the textboxes. I use the enter event of the textboxes for my prompts. When the form opens, the first textboxe's voice prompt is heard, like it should be, but it is heard before the form actually appears. How can I get the first prompt to wait until the form has fully loaded before it starts?

View 8 Replies

Wait For A 2010 Form's Button-click Event To End?

May 20, 2011

In my vb program, I have two forms that work together to allow you to define an almost arbitrary amount of designs. In the first form, there is a two-dimensional array, storing an integer (not important) and an ID class that I defined as a public inner class in another form. Clicking on the "Define ID" button in this form will take you to the next form, where you will define a new ID or edit an old one based off of an index in the array you selected or entered in the first form's combo box, using multiple fields in the second form to define its different aspects.

What I want to happen is the first form's code to be suspended as the user defines the ID in the second form, then they click on the Continue button on the second form. After a bit of error-checking, the form either is momentarily hidden (which is how I originally implemented it) or returns the edited ID object, but only if the error-checking does not indicate any input is incorrect.

Originally, I simply grabbed the ID by using newForm.curID and set that to its spot in the array, waiting for the user to finish by using newForm.showDialog(), but sometimes the program would return a null exception because I don't think I copy the IDs correctly.Also, though the errors show up for a small amount of time, the Continue button saves the ID regardless of its correctness. Is there a way to manipulate the showDialog to get a result response out of it?

Short version: I need to either return an object of an inner class in one form to an array in a calling form or wait for a form to finish and use the calling form to copy its object, then close the callee form.First Form's "Define" button method

Private Sub DesignButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DesignButton.Click
Me.totalCoilBox.Focus() 'calls validating method, makes textbox yellow if invalid'
If totalCoilBox.BackColor = Color.White Then
Dim newForm As New IVD_DesignData 'creates an object of ID called curID as well'

[code]....

View 1 Replies

Wait Until Page Loading Finishes - Windows Form Application?

Oct 6, 2010

I navigate the webbrowser in my application with

Private Sub wb_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles wb.DocumentCompleted

But I need to navigate to another page after Logging in to the website How can I wait the first page to be loaded fully then navigate to another page?

View 2 Replies

Animated GIF In Winforms?

May 28, 2011

Animated GIF in Winforms

View 9 Replies

Animated Graphics Using GDI+?

Jun 6, 2012

First part of a huge block will contain some text. That block is not always visible. it will be visible when the user is inputing a control. It is drawn in a bitmap image which will later be a part of the final image of the form.The second part consist of several small bitmap images most probably will contain a letter. These images will not change but there position will keep changing by time. These images will be free to move even beneath the huge block (If visible).I used a timer with 1 sec. interval to redraw form, but when the block is visible it keeps flickering because the timer clear the form and redraw the block.

I tried to use different container for the block like the PictureBox but when the small image goes beneath the block it just disappear.The block color code is "Color.FromArgb(100, Color.Black)" I tried lower Alpha components and that didn't make any difference.My explanation is that the background of the picturebox is not transparent. If I'm right how to make the picture box transparent?

View 7 Replies

Create Animated Gif?

Jun 24, 2012

I have a few images, which I'd like to convert to one single animated gif. is there anyone who knows how to do this in vb.ne

View 7 Replies

Picturebox With A Animated Gif

Jul 16, 2009

I have a picturebox with a animated gif,as yuo can see it goes up the bricks, 1,2,3,4 etc as it should when displayed in my picturebox it goes threw the bricks 1,3,5 then back round next time 2,4,6 and so on..is there some sort of delay?

View 4 Replies

Put My Animated Buttons?

May 4, 2011

How to put animated buttons? for example if the user click the button it will change color, i try to create animated gif and put it as background image but it didnt work. I also tried to use mousehover and mouse leave and its working! But I think the response of the button is slow, it takes 1 second before it activates the mousehover event.

View 3 Replies

Animated Background Image?

Oct 12, 2009

I have a gif there are animated, and want to use thisas a background images on my formbut the image will not be show, instead it show the bagground colorCan't i use this file?

View 11 Replies

Custom Animated Cursor In VB?

Jan 22, 2012

I am trying to acheive something similar to this in VB:

Basically, I just need to be able to put in an animated cursor, and it can't be GIF it needs to be 32-bit transparent, so ANI format.

View 5 Replies

Display Animated Gif In Sys Tray?

Jun 22, 2010

is there any easy way to display animated gif in sys tray?

or do i have to draw a simple picture/shape using GDI ?

View 7 Replies

Display Animated Gif While Running A Sub?

Feb 12, 2010

How do i keep an animated gif running while my app is running a sub.The whole UI is blocked so I've tried displaying it in another form but i get the same result.

View 2 Replies

Get An Animated Gif Picturebox To Play

Nov 3, 2009

I'm trying to get an animated gif picturebox to play and then after it is done "Playing" it will hide and show another picturebox. I thought I could do this with a timer but I can't really seem to get it to work. I need this in the form_load because the first picturebox shows on form load.

[Code]...

View 9 Replies







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