VS 2008 - Form To Show That The Program Is Busy Thus The "ShareClass.LoadingIndicator" Routine
Aug 21, 2009
Look at the first section of code below:
Private Sub vIV_Comp_Cert_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles vIV_Comp_Cert.Enter
CurrForm = sender
[CODE]...
This code is used to load a PDF in a PDF viewer. Because the PDFs are sometimes huge and there is no idea on how fast the machines are that will access the app, I have created a form to show that the program is busy thus the "ShareClass.LoadingIndicator" routine.
Here is the ShareClass.LoadingIndicator Routine:
Shared Sub LoadingIndicator()
Dim frm As New LoadingIndicator
frm.TransparencyKey = Color.Magenta
[CODE]...
The problem I have is that when the app runs and these subs fire, the LoadingIndicator form shows up but the ProgressBar1 and Label1 show as all black on the screen. I tried to make a screen shot of this but the screen shot showed nothing as if the form wasn't even there. How can I resolve this? What I would like to do is make the LoadingIndicator form be borderless so it appears as a label and progressbar laid ontop of the loading PDF reader as the PDF loads. If I take the transparency off it works fine.
View 1 Replies
ADVERTISEMENT
Feb 10, 2009
Is there a command in vb that can be used to pause a routine to give time for the form to show before the routine starts as my routine is running and completing before my form shows up?
View 13 Replies
Nov 9, 2009
I working on a project wherein i need to merge 2 or more files. but while the program is running or doing the specified descripted job. it seems to be standing still, which may confuse the user that application is not working or not responding. so i want to add a progress bar or anything related to show that the application is still running. can someone explain or tell me how to add this in my program. can you explain me with a simple program or something.
View 1 Replies
Feb 10, 2009
Im trying to show animated gif during busy process or loading. but it isn;t working rite. the gif stops to animate when loading instead and animates only when no loading is n progress. what i have done is to show formB from the formA. i load the gif into the picbox in formA and crete a new thread which will be opening another formB.
dim loadThread As Threading.Thread
LoadingGif()
loadThread = New Threading.Thread(AddressOf loadingForm)
loadThread.Start(formB)
but the gif doesn;t move at all unless another form is displayed.
View 3 Replies
May 16, 2011
I am currently working on a launcher, and it must consist of the following:
- one main routine being called, NO WINDOW may be created at any times after or before this main routine.
- one small form called by the main routine if a certain command was sent through the Command (shortcut).
At this point I use a Windows Form, but it seems a little useless to create and initialize a form if you won't even use it. Any way to make a routine run when my program starts without showing any window? But still make it possible to show that small dialog?
I did this at first but it seems a bit dangerous:
'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Main()
End Sub
Sub Main()
'Code to run here
End Sub
It starts another program (process) which has a GUI, so I do not want to display a console window.
View 6 Replies
Dec 11, 2009
In my new application i have to process a SQL statement.Depending on the settings , the statement takes between 10 an 20 seconds.is there a possibility to display a second from / dialog / popup for this time?
View 5 Replies
Jan 14, 2010
I have a program that uses two forms. The program opens to the Main form, and the user can navigate to the other form from the Main form through use of a button. Here's the way I've currently written it: When the Main form loads, it declares and instantiates the other form during the load procedure. When the user presses a button, the second form is displayed by means of the ShowDialog method. On the second form, there is a Return to Main Screen button which closes the second form, bringing the user back to the Main form.
So, here's the structure of the code:
Code:
Public Class frmMainForm
Dim frmSecondForm As New SecondForm
Private Sub btnSecondForm_Click(blah, blah, blah) Handles blah, blah, blah
[CODE]...
Here's my reasoning: Originally, I wrote the code so that a new instance of the second form was created every time the button was pressed. The problem was that whatever data was displayed on the second form, previously, was lost when the user returned to it a second time. Since the user would be switching back and forth between these forms, frequently, I needed that data to persist.
What is the best practice for accomplishing this:
1) Declare and instantiate the second form on program start, as I have done, and use the button simply to show the form?
2) Declare and instantiate the second form each time the button is pressed but maintain the variables on the Main form and pass them ByRef to a custom constructor for the second form? Is this even possible?
3) Something else?
View 5 Replies
Jan 24, 2012
I am using sockets to send message between computers. I send the messages alright. What I want is when the message "x0x" comes, the client must be closed within 5 minutes. Teh admin can cancel the request by sending message "-xx" as well. The routine that checks for incoming connections and accepts messages uses WHILE TRUE...END WHILE since it must always listen. Once I get a message, I need to fire a timer control or other that fires within 5 minutes. But the program cant leave the WHILE TRUE at all. If i exit it early, the timer fires and the program does get exit. How do I fire the timer or other routine while still the WHILE TRUE routine checks for incomin connections and messages?
View 5 Replies
Apr 17, 2011
is there any way to reference a particular code routine in VB.net external to the current loop/routine?Example:
If Var01 < 5
[Routine A]
Else
[Routine B]
End If
where Routine A and Routine B are code sequences at the end of the entire program -- such as outside of the current sub or class? The idea would be to reference an otherwise repetitive code.
View 4 Replies
Sep 5, 2010
I have a small program which draws some lines with a method called: Drawlines But Now I want to call this method in the load form routine. So if the form is loaded the lines should be drawn in the picturebox. But is this possible or should the form first be loaded completely before you can call methods in that same form?
View 6 Replies
Jan 25, 2010
I'm using VS 2008 to create a form.it is all working great, however I made a little code that should display the version of the program.in the debug mode it works perfect, but when I run the .exe file it gives me the following (exception) error:Quote:
The program also says "Application identity is not set". What does this mean?
[Code]...
View 10 Replies
Sep 16, 2011
How to show Normal form over the AxWebBrowser In Vb.Net.
View 2 Replies
Mar 3, 2009
I have a sub routine where I pull in information from a database. I want to use variables from this sub routine in another sub routine. I tried making everything public but it doesn't want to be friendly and share.
Dim strEmail as String
Public Sub readDB()
strEmail = "whatever@doohikcy.com"
[Code]....
The readDB would read the database and set the variables and do whatever it needs to do. Then when they submit the form it would e-mail the form to whatever the email address was.
View 2 Replies
Jul 15, 2011
I want to show selected entry of DGV on Separate form in VB .Net.When double click on one row of DGV then this row must be open in new form. How can I do it?
View 1 Replies
Sep 4, 2009
When I use
Me.Close()
Form1.Show()
It closes the whole app.
How would I change it so that it only closes the current form while opening a new one? EDIT: I put [Not Resolved] Because I accidently pressed the resolved thing
View 8 Replies
May 7, 2012
Can a data grid in another open form be refreshed by calling a sub routine? This app has a form with 2 data grids. When the user double click on one of the grids another form is opened that shows data details. After the user changes the details the user clicks a save button. We have placed this code in the Closing event of the the details form.
Private Sub FormParents_FormClosing(sender As System.Object, e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
FormParentsAndStudents.RefreshDataGrids()
End Sub
[Code]...
Can you tell us what additional coding is needed to refresh this data or if we are using the incorrect place to call this code from within the details form?
View 1 Replies
Jul 8, 2010
I have a code where I search a text file for for example: "2320018200000", then it looks it up and finds a line like this[code]...
I want it to put that entire line in a label, but for some reason it skips the "3 1604001Sf" in the start. [code]...
View 1 Replies
Feb 4, 2012
When i create a windows form in VB, i want to have a picture box on my form, but in design view it shows the box, but when you run the program it doesn't show it. I want it to show the box so when you run the program it will show the box and you can click on the box and you can add the photo you want on your form and then print the form or save it.
View 4 Replies
Dec 18, 2009
why I need to instantiate a form instead of form.show?
View 20 Replies
Sep 28, 2009
Private Sub HideShowTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Hide()
[code].....
View 1 Replies
Oct 26, 2010
I have a dual monitor setup on my computer. My program has multiple forms. I've designed the program to check which monitor the main form is currently on and to open the secondary forms on the current monitor. When the main form is on the primary monitor the secondary forms open as FormWindowState.Normal which is the design-time setting for the secondary forms. If the main form is on the secondary monitor and I click to open a secondary form then the secondary form is to be displayed as FormWindowState.Maximised.
[Code]...
So I moved the Form.Show line to after the Form.WindowState line. This works fine when the Form.Show process is very quick. The problem is that one of the secondary forms downloads some information from the internet so it takes about a second to finish the Form_Load process. When I had Form.Show first the form would not appear on screen until the Form_Load process is complete, so the delay was in the form appearing at all which is how I prefer it. With Form.Show last the form appears on screen immediately but appears mostly blank and unresponsive until the Form_Load process completes.
I would prefer that the form not appear at all until the Form_Load process is complete but I would like it to appear in an already Maximised state. Is this achieveable? It doesn't seem that complicated but I just can't figure it out.
View 10 Replies
Feb 27, 2012
how to create a program that can access information held in an excel database and show it in a simple form.
View 2 Replies
Jan 6, 2012
[code] I can't show the form 2 when i use TAB.tabindex already set into 1.
View 6 Replies
Jan 27, 2010
How to join two tables in dataset and show in gridview using vb.net 2008?
View 1 Replies
Oct 30, 2009
I've recently learned a new trick. I never realized you could write a sub and then handle multiple controls' events right in the sub.instead of handling each controls click event, for example.
[Code]...
View 6 Replies
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
May 25, 2010
I'm making a program, I have added it to the startup now but, How can I make it show the form on startup?
View 2 Replies
Mar 1, 2010
I have a "housekeeping Form" set up that...when triggerd by the main form, updates records, sends email, clears and refills an access table all of which runs from a Form.Load Event my problem is the form "PLEASE WAIT WHILE SYSTEM IS UPDATING" will not fully load while all these things are happning I have tried ME.Show and ME. Activate
View 7 Replies
Dec 10, 2009
I'm currently uploding using this script:
Dim UserID As String = "MyID"
Dim Password As String = "myPW"
lblUpload.ForeColor = Color.Orange
[Code].....
But when it's uploading it show a new window with a cancel button. how do I hide that window, and if possible show the upload bar in the form that is uploading?
View 4 Replies
Apr 26, 2009
I've made a basic form with a textbox for the username and an OK button, I have no idea how to make it go to the next form when only certain usernames are entered and the OK button is pressed.I also need to find out how to show the username on the next form?
View 5 Replies