I'm trying to build a custom progress bar that will run as some subs are
running in the background but when I open the custom form with the progress
bar on it using the showdialog, none of the subs run until the form is
closed but I need the form to be on top so the users can't click anywhere
else till the tasks are complete. How would I go about doing this? I need
to open this form, runs some subs, then close the form. Thanks 5 3235
* "B-Dog" <bd***@hotmail.com> scripsit: I'm trying to build a custom progress bar that will run as some subs are running in the background but when I open the custom form with the progress bar on it using the showdialog, none of the subs run until the form is closed but I need the form to be on top so the users can't click anywhere else till the tasks are complete.
Multithreading:
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms06112002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms08162002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms01232003.asp>
<URL:http://www.devx.com/dotnet/Article/11358/>
<URL:http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWindowsFormsControlClassInvokeTopic.asp >
Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconthreadinginvisualbasic.asp>
Sample:
<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/downloads/FileSystemEnumerator.zip>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
I can't figure out these threads, I've read over this stuff and still don't
understand it. Could anyone help me with this below to try and fire my form
as dialog then run another sub then close dialog when complete. This is what
I started with
Dim f As New Progressx("your data is being exported")
f.ShowDialog()
ExportExcel()
f.Close()
I've tried this but of course I don't know what I'm doing, the form opens
and the process runs but the stuff on the new form doesn't work, I have a
timer on the form I'm opening with the show dialog and it doesn't stay
running
Dim f As New Progressx("your data is being exported")
Sub LaunchNight()
f.ShowDialog()
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles bExport.Click
Dim t As Thread = New Thread(AddressOf LaunchNight)
t.Start()
ExportExcel()
f.Close()
End Sub
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... * "B-Dog" <bd***@hotmail.com> scripsit: I'm trying to build a custom progress bar that will run as some subs are running in the background but when I open the custom form with the
progress bar on it using the showdialog, none of the subs run until the form is closed but I need the form to be on top so the users can't click
anywhere else till the tasks are complete. Multithreading:
<URL:http://msdn.microsoft.com/library/en...orms06112002.a
sp>
<URL:http://msdn.microsoft.com/library/en...orms08162002.a
sp>
<URL:http://msdn.microsoft.com/library/en...orms01232003.a
sp> <URL:http://www.devx.com/dotnet/Article/11358/>
<URL:http://msdn.microsoft.com/library/en...ystemWindowsFo
rmsControlClassInvokeTopic.asp> Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en...hreadinginvisu
albasic.asp> Sample:
<URL:http://dotnet.mvps.org/dotnet/sample...s/FileSystemEn
umerator.zip> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Here is the code on the form I'm trying to open while process long sub.
Essentially, I'm trying to have a small form open up that does the night
rider thing while we are waiting.
Dim Forward As Boolean = True
Dim x As Integer = 0
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Timer1.Tick
If Forward Then
If x > 115 Then Forward = False
x += 1
Else
If x <= -9 Then Forward = True
x -= 1
End If
Me.imgProgress.Left = x
End Sub
"B-Dog" <bd***@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... I can't figure out these threads, I've read over this stuff and still
don't understand it. Could anyone help me with this below to try and fire my
form as dialog then run another sub then close dialog when complete. This is
what I started with
Dim f As New Progressx("your data is being exported")
f.ShowDialog()
ExportExcel()
f.Close() I've tried this but of course I don't know what I'm doing, the form opens and the process runs but the stuff on the new form doesn't work, I have a timer on the form I'm opening with the show dialog and it doesn't stay running Dim f As New Progressx("your data is being exported")
Sub LaunchNight()
f.ShowDialog()
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bExport.Click
Dim t As Thread = New Thread(AddressOf LaunchNight)
t.Start()
ExportExcel()
f.Close()
End Sub
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... * "B-Dog" <bd***@hotmail.com> scripsit: I'm trying to build a custom progress bar that will run as some subs
are running in the background but when I open the custom form with the progress bar on it using the showdialog, none of the subs run until the form is closed but I need the form to be on top so the users can't click anywhere else till the tasks are complete. Multithreading:
<URL:http://msdn.microsoft.com/library/en...orms06112002.a sp>
<URL:http://msdn.microsoft.com/library/en...orms08162002.a sp>
<URL:http://msdn.microsoft.com/library/en...orms01232003.a sp> <URL:http://www.devx.com/dotnet/Article/11358/>
<URL:http://msdn.microsoft.com/library/en...ystemWindowsFo rmsControlClassInvokeTopic.asp> Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en...hreadinginvisu albasic.asp> Sample:
<URL:http://dotnet.mvps.org/dotnet/sample...s/FileSystemEn umerator.zip> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Well I got it working but don't know right, I was running thread on the
wrong form and ran processes on new form and it worked great.
Dim t As Thread = New Thread(AddressOf LaunchSub)
Dim Forward As Boolean = True
Dim x As Integer = 0
Sub LaunchSub()
main.ExportExcel()
Me.Close()
t.Abort()
End Sub
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Timer1.Tick
If Forward Then
If x > 115 Then Forward = False
x += 1
Else
If x <= -9 Then Forward = True
x -= 1
End If
Me.imgProgress.Left = x
End Sub
Private Sub Progressx_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
t.Start()
End Sub
"B-Dog" <bd***@hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP15.phx.gbl... Here is the code on the form I'm trying to open while process long sub. Essentially, I'm trying to have a small form open up that does the night rider thing while we are waiting.
Dim Forward As Boolean = True
Dim x As Integer = 0
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
If Forward Then
If x > 115 Then Forward = False
x += 1
Else
If x <= -9 Then Forward = True
x -= 1
End If
Me.imgProgress.Left = x
End Sub
"B-Dog" <bd***@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... I can't figure out these threads, I've read over this stuff and still don't understand it. Could anyone help me with this below to try and fire my form as dialog then run another sub then close dialog when complete. This is what I started with
Dim f As New Progressx("your data is being exported")
f.ShowDialog()
ExportExcel()
f.Close() I've tried this but of course I don't know what I'm doing, the form
opens and the process runs but the stuff on the new form doesn't work, I have
a timer on the form I'm opening with the show dialog and it doesn't stay running Dim f As New Progressx("your data is being exported")
Sub LaunchNight()
f.ShowDialog()
End Sub
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bExport.Click
Dim t As Thread = New Thread(AddressOf LaunchNight)
t.Start()
ExportExcel()
f.Close()
End Sub
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... * "B-Dog" <bd***@hotmail.com> scripsit: > I'm trying to build a custom progress bar that will run as some subs are > running in the background but when I open the custom form with the progress > bar on it using the showdialog, none of the subs run until the form
is > closed but I need the form to be on top so the users can't click anywhere > else till the tasks are complete.
Multithreading:
<URL:http://msdn.microsoft.com/library/en...orms06112002.a sp>
<URL: http://msdn.microsoft.com/library/en...orms08162002.a sp>
<URL: http://msdn.microsoft.com/library/en...orms01232003.a sp> <URL:http://www.devx.com/dotnet/Article/11358/>
<URL: http://msdn.microsoft.com/library/en...ystemWindowsFo rmsControlClassInvokeTopic.asp> Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL: http://msdn.microsoft.com/library/en...hreadinginvisu albasic.asp> Sample:
<URL: http://dotnet.mvps.org/dotnet/sample...s/FileSystemEn umerator.zip> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dennis C. Drumm |
last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am
building a custom MessageBox dialog that has, among other things, a few new
button options (yes to all, no to all, etc.) and would like to make the
dialog look and act like the standard MessageBox. Therefore, I would like to
put in the message section the same type of...
|
by: Gary O'Malley |
last post by:
Everytime I download a file from the web I get a nice animated
dialogue box that shows the size of the file, how much has been
received and the approximate remaining time. It also gives the
connection bandwidth.
I've looked in different development groups through google/groups to
find an example of C # code that would give me a similar...
|
by: Alexander |
last post by:
Hi, I have written a program that takes on some operations much more
time than I expected. As I have seen users clicking wildly on the
screen to make something happen, I want to follow the microsoft
principles: always show them something ;)
First I made up a little status dialog containing a gif image to show
a little animation and a...
|
by: Ron Andersen |
last post by:
I have C# custom actions and merge modules created in Visual Studio to
install some components of the application I am working on. The merge
modules are used with an Install Shield 9 project. When my C# custom
actions run, the progress dialog doesn't display any text as to what
is happening. I have explored several options as follows.
...
|
by: LhK-Soft |
last post by:
Hi,
I'm active in VC++ for several years now, so I know some things (I think).
Using MS-Access I store a db with lots of entries and uses the VBA
techniques to export those data to e.g. HTML, XML and other kind of data.
I'm using MS-VC++6.0-Enterprise (with sp6) at NT4-Workstation (sp6a) and
MS-Access97 (from MS-Office97). Reason that I won't...
| |
by: Dino M. Buljubasic |
last post by:
I'd like to include a pop up progress bar in my application that would show
the progress of AutoUpdate feature, searching, storing, etc in my
application.
Any simple code for this to share?
Thank you,
--
Dino Buljubasic
|
by: reshm |
last post by:
In my application i have file save & file open button
i use common dialog box to save the file but simultaneously i want to
show progrss bar to show the progess. how can i do?
|
by: Miro |
last post by:
I will try my best to ask this question correctly. I think in the end the
code will make more sence of what I am trying to accomplish. I am just not
sure of what to search for on the net.
I have a form that has a button. ( this form is a child form of a parent
form ( main form ).
Anway...in this child form I have a button, and if clicked...
|
by: Lawyno |
last post by:
Hi there :)
Here are some infos about my "project":
I have the "honor" to write some scripts (VBScript) for some application developed by another company. In this application there is limited support for creating and showing dialogs. But the customers want it. So we have to create those dialogs in class libraries to be able use them in the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |