Progress Bar - Threading - Minimizing Window
Oct 17, 2010
Part of my application deals with creating a number of pivot tables. I pull data from a local database, and store it in a datatable. From here, the data is processed and eventually a pivot table is returned. On small data sets it works well, but on some larger one there is a few seconds of "nothing" until the table is shown.
After a few iterations of trying things to display some form of progress I have ended up with a form with nothing but a progress bar running on it. I spawn a new thread, and run it. It works exactly like I hoped. However, when I call the thread.abort() method to terminate the thread, occasionally, the main form will minimize. I tired having me.show() aftre the .abort() to bring the form into view again, but it appears not to have helped.
Now I understand that it is better practice to have worker background threads, and the main thread for UI, but is there a simple way of ensuring that the main form does not close?
Private Sub LoadProgressForm()
Dim progressForm As New ProgressBar
progressForm.ShowDialog()
[CODE]....
View 2 Replies
ADVERTISEMENT
Mar 16, 2009
I have used timers in .Net for a long time now an never had this problem.Start timer to fire every 10 seconds that reads an object and updates the UI using a delegate.This works great until the form is minimized several times, then the timer thread seems to vanish.Anyone come across this before?
Obviously I can roll my own using a thread directly and sleeping it, however this seems like reinventing the wheel when a threading timer class exists already.
Code: Private Sub m_Tmr_Tick(ByVal state As Object)
[code].....
View 5 Replies
May 10, 2012
I have a windows application created using 2005. One of the screens keeps minimizing each time it's loading and I don't know why. when I look at the properties for the form, the window state is set to normal.
I did have the below line of code being used when the user clicked a button on this form because i wanted to minimize the form at that time; however, I've sinced remmed it out because of what's happening now.
View 5 Replies
Jun 7, 2011
Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.ReportSource Imports CrystalDecisions.Shared
[Code]...
Tell Me where i did the wrong code??? i want to show progressbar increasing while my report has been loaded
View 2 Replies
Sep 20, 2011
I deal with a lot of com class code. So, my code generally doesn't have a UI.I can't count on the calling code UI to handle the progress nor would they know the progress of my routines. I'm used to a language that allows you to call a progress window from any code. I've been banging my head up against a wall trying to find a way to create a simple Custom Control that I can simply call from my code that opens a modal window to report the progress.No matter what, I see a need for the backgroundworker in my code. But if the backgroundworker is declared in my code, I can't expose the doWork in the doworker sub.
View 1 Replies
May 17, 2009
I'm working on one of my applications and I'm trying to find a way to use the "Go To Desktop" function that goes directly to the desktop without minimizing any window (This can be achieved by clicking on the Win + D buttons or on the desktop icon in the quick launch toolbar), but how can I activate it using vb? I thought about sending keys but I guess there is more offical ways to do it.
View 10 Replies
May 15, 2012
The progress bar on my applications run fine in Windows XP. However when I installed the app on Windows 7 Starter it does not work correctly. A 20 seconds becomes 2minutes one time and 3min 40seconds the next.
View 13 Replies
Jun 7, 2011
How can I get the progress from a console window?
Like... running UPX and get the current compression progress to use into a progressbar?
View 1 Replies
Feb 17, 2012
Would anyone be able to help me here please. I'm fairly new to VB.net and threading so im just trying to figure out what is happening.When I debug this I am getting the error thread operation not valid: Control 'ProgressBar1' accessed from a thread other than the thread it was created on.
I'm a little lost as to why the error is occuring or how to fix it. I've had to put the progress bar in a separate thread otherwise the GUI crashes
[Code]...
View 2 Replies
Jun 6, 2011
I want to transfer files from one directory to another using streamreader and writer class. Now i want to add a statusbar to show the filename on statusbar along with the remaining percentage. It will reach 100 when file has been moved to new directory.
Dim ioFile As New System.IO.StreamReader("C:sample.csv")
Dim ioLine As String
Dim ioLines As String
[CODE]...
View 2 Replies
Jan 22, 2010
I will have a regular download box from Internet Explorer, and I want the progress bar, to show In my form, and if possible, show when download complete.Attributor 2.0
View 7 Replies
Dec 27, 2010
I am trying to track the progress of a meter in a flash window and click when it reaches a certain point. I am currently using getpixel() to "watch" a single pixel and when it changes to green, perfrom a click. Problem is i have to "watch a pixel" about 20 pixels left of the intended target and then click. Reason, when the program has realized the pixel is green, it clicks, but this has not been as accurate as needed. Sometimes it clicks to soon and sometimes it clicks to late.
Before you suggest using DIBS, i didn't use it because i am loading a 1x1 screenshot and watching that pixel in a loop. I figured since i was continously loading a new bitmap via getpixel that dibs would not be any quicker. The way i read dibs is that if i was loading a bunch of pixels it would be faster because it goes ahead and loads into an array.Is there another way to monitor a meter in a flash window?
Private Sub btnDing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDing.Click
MyColor = Color.Black
[Code].....
View 2 Replies
Nov 24, 2009
I have a button that runs a stored procedure when i click it. is there a way for me to show progress on the window while the stored procedure is executing.
View 4 Replies
Feb 22, 2012
I have searched now for hours trying to find a solution to this. I am trying to allow a user to minimize a form instead of closing it. I have tried about 5 different things so far in the form_closing event to minimize but have had no success. On another not, is there a way to allow the icon to be displayed? I know I could easily do this by using a different form layout but I prefer the compactness of the FixedToolWindow.
View 2 Replies
Oct 21, 2010
I have a Form inside an application. I need to be able to minimize it from within the code of the Form itself. Any ideas on how to do it? Could not find a minimize function.
View 2 Replies
Apr 6, 2011
I have a MDI parent that opens another form like this:
Dim frm As New Form1
frm.ShowDialog(Me)
That form has a button that, when clicked, does this:
CreateObject("Shell.Application").ToggleDesktop()
The button operates as expected (showing the desktop) most of the time but occasionally does not minimize the MDI parent. All the other windows, including the form above get minimized every time.
View 1 Replies
Feb 18, 2009
I have a program that has a main window, and a progression of other windows that all open from each other. I only want the main window to show in the taskbar, and I want to be able to minimize at any window, and have every window minimize to a single item in the taskbarThe problem is: when I set each form's 'SHOWINTASKBAR' to True, every form shows in the taskbar instead of just one. If I set the 'SHOWINTASKBAR' property to False, they don't minimize to the taskbar.
View 1 Replies
Sep 24, 2009
I have two froms when one from is opend it should not be minimized when mouse clicked outside the from like the message box in vb.net
View 1 Replies
Mar 8, 2010
I have 4 textboxes that a user can input date into, a save button, and another textbox that gets filled automatically depending on what is entered into the 4 text boxes.Lets call the 4 text boxes: Name1, Name2, Name3 and Name4 we'll call the last text box Complete.When you press the save button I want the values to be displayed in the Complete text box like this: Name1="text" Name2="text" Name3="text" Name4="text", BUT, only if they actually have a value.So if they all have some text in them except Name2 then the Complete box would read: Name1="text" Name3="text" Name4="text" - so Name2 wouldn't show up at all.Is there a simple way to put this in an If Then statement without scripting out every possible outcome?
View 8 Replies
Aug 16, 2010
Also, once i get that done, How would i make it display notifications?(Similar to that of when someone logs on in MSN messenger.)
View 4 Replies
Jun 27, 2009
I know how to minmize to systemtray using a button and by the use of a notifyIcon, but i want to minmize to system tray using the minimize button on the title bar of the form. I think it as something to do with the resize event but i dont know what.
View 9 Replies
Feb 23, 2011
I'm making a small version of Spy++ and i would like to recreate the function that finds windows by dragging your mouse over it. Now that is pretty easy but one little annoyance is some windows minimize or loose focus ect when you bring the mouse pointer over them.
I would like to know if you can stop a program from gaining focus or minimizing. And i know i can get the handles of open windows by the EnumWindows function?
View 2 Replies
Nov 2, 2009
I am using VS 2010 to create a Mac OSX like dock application.Everything has worked great apart from one of the key features of the dock! So what I want is:When the user clicks the minimize but on any (including external application) it minimize to the dock I have created rather than the windows Task-bar.
View 5 Replies
Dec 27, 2010
like seen on the web, with both the two following codes:
ShowWindow(Hwnd, SW_MINIMIZE)
ShowWindow(Hwnd, SW_SHOWMINIMIZED)
I can minimize without problems an EXTERNAL application window from it Hwnd.The big problem is that once minimized the application cannot be manually managed: also if I close my program, both left click or right click on the external application taskbar button don't work: I can't maximize it and I can close it only by Ctrl+Alt+Del... why?
View 3 Replies
Sep 10, 2011
While the application is running, I want the buttons, text boxes, datagrid, everything thats on the form to resize when the screen is maximized and again resize when its minimized.
View 2 Replies
Jun 2, 2009
Is it possible to have an application where form1 opens a second modal form (form2) and then allows the user to minimized form2 causing the entire application to minimize to the taskbar.(form2 is never shown in the taskbar) A simple example of this is winzip where a second modal progress window is opened which can be minimized?
View 10 Replies
Apr 20, 2007
im making a web browser which is intertwind in a project, but i cant get the progress bar to display the current percent of a page that is loaded, i want to have 10 segments, each standing for 10% of the total page loaded. So say a page is loaded 67%, 6 out of 10 of the segments will be shown.
View 3 Replies
Feb 14, 2012
I am trying to implement a BGW and want to report progress to a progress bar for my TextFieldParser program, sometimes if your opening very large files it takes a while and I would like the user to be able to see the progress and have some interaction so they know the program is still running I am a little hung up on what to in the reportprogress
I have:
worker.ReportProgress(0, myReader.ReadFields())
and its not doing anything, I didnt expect it too since ReadFields is an array
parser
Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim worker As System.ComponentModel.BackgroundWorker = DirectCast(sender, System.ComponentModel.BackgroundWorker)
[code]....
View 6 Replies
Mar 19, 2010
I copied the code here and translate the code to vb [URL]it is working fine but there is one small problem but I cannot solve? Here is my code: SyncClientVB Another Source The scenario is... the progress is reported by an event (OnCopyingFile event)
Public Sub OnCopyingFile(ByVal sender As Object, ByVal e As CopyingFileEventArgs)
If pbFileTransfer.Value <> e.PercentCopied Then
If txtCurrentFile.Text <> e.FilePath Then
txtCurrentFile.Text = e.FilePath
[code]....
The problem is that it is ok when runned but when I click the form it starts to hang but in the console... it is still continuing.
dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('6f5d1b01659646618ff3bdca29fb1b7f')
View 5 Replies
Jul 7, 2010
get the progress bar show the progress of the batchfile running in the background?
View 10 Replies