Hi there,
There is a problem about progress bar; although the
"progressbar1.v isible = True" is present for my invisible
"progressba r1" control to make visible when button1 is clicked, before
execution of my external process, it appears after the external
process finishes processing. And my main and only form (form1) cannot
be interacted while external process is processing. How can i get rid
of it?
Here is the code:
Private Sub Button1_Click_1 (ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
progressbar1.vi sible = True
Dim psInfo As New System.Diagnost ics.ProcessStar tInfo("c:\blabl a.exe)
psInfo.WindowSt yle = System.Diagnost ics.ProcessWind owStyle.Normal
Dim myProcess As Process = System.Diagnost ics.Process.Sta rt(psInfo)
myProcess.WaitF orExit()
MsgBox(" Completed Successfully", MsgBoxStyle.Inf ormation,
"Completed" )
End Sub
Thanks and regards... 12 3095
Also, note: blabla.exe costs %100 CPU during processing. Could it be
the reason?
Anyway i tried with %40-50 cpu-costing external application with
similar negative result. While external process is running, the main
VB form is corrupted and distorted visually, as appearence and you
cannot click or modify main form during external process runs.
Armin,
Nice explanation and even without the so by me damned words "message pump".
:-)
Cor
"Cor Ligthert[MVP]" <no************ @planet.nlschri eb
Armin,
Nice explanation
Thanks :)
and even without the so by me damned words "message
pump".
I'll put it in my synonym list. ;)
Armin
On Oct 4, 2:17 pm, "Armin Zingler" <az.nos...@free net.dewrote:
"Cor Ligthert[MVP]" <notmyfirstn... @planet.nlschri eb
Armin,
Nice explanation
Thanks :)
and even without the so by me damned words "message
pump".
I'll put it in my synonym list. ;)
Armin
Mr. Zingler,
Thank you for your detailed answer.
Also, if i remove waitforexit(), main form can be interacted while the
external process is running without coding mutlithreading. So is the
unique way to set multi-threading to use waitforexit() effect and main
form interaction at the same same time with external process?
"kimiraikko nen" <ki************ *@gmail.comschr ieb
Also, if i remove waitforexit(), main form can be interacted while
the external process is running without coding mutlithreading.
Right
So is
the unique way to set multi-threading to use waitforexit() effect
and main form interaction at the same same time with external
process?
Sorry, I don't understand. If you want to wait for exit, you either can
handle the process' Exited event or you can call waitforexit in another
thread. For this purpose I'd prefer handling the Exit event.
Armin
On Oct 5, 12:52 pm, "Armin Zingler" <az.nos...@free net.dewrote:
"kimiraikko nen" <kimiraikkone.. .@gmail.comschr ieb
Also, if i remove waitforexit(), main form can be interacted while
the external process is running without coding mutlithreading.
Right
So is
the unique way to set multi-threading to use waitforexit() effect
and main form interaction at the same same time with external
process?
Sorry, I don't understand. If you want to wait for exit, you either can
handle the process' Exited event or you can call waitforexit in another
thread. For this purpose I'd prefer handling the Exit event.
Armin
Thanks Armin, so could you give a simple example about handle exit
event? Sorry for being newbie and glad to receive help from experts.
Thanks.
"kimiraikko nen" <ki************ *@gmail.comschr ieb
Thanks Armin, so could you give a simple example about handle exit
event? Sorry for being newbie and glad to receive help from experts.
Dim p As Process
'...
'start process
'...
AddHandler p.Exited, AddressOf OnProcessExited
Private Sub OnProcessExited ( _
ByVal sender As Object, ByVal e As System.EventArg s)
MsgBox("exited" )
End Sub
Armin
On Oct 5, 11:01 pm, "Armin Zingler" <az.nos...@free net.dewrote:
"kimiraikko nen" <kimiraikkone.. .@gmail.comschr ieb
Thanks Armin, so could you give a simple example about handle exit
event? Sorry for being newbie and glad to receive help from experts.
Dim p As Process
'...
'start process
'...
AddHandler p.Exited, AddressOf OnProcessExited
Private Sub OnProcessExited ( _
ByVal sender As Object, ByVal e As System.EventArg s)
MsgBox("exited" )
End Sub
Armin
Thanks but sorry, "OnProcessExite d" cannot be found via intellisense.
I'm using vb.net 2005 express. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Pepi Tonas |
last post by:
I have a form that takes some time to load because it has to populate
some Data. I was trying to display a form on top of it with an
activity bar so that user can see that something's going on.
I have tried doing this and using a progress bar that counts up to 100
and then zeros down so that it should be constantly moving while the
main or background windows finishes loading.
The problem is that the "in progress window" doesn't display...
|
by: Anonieko |
last post by:
Query: How to display progress bar for long running page
Answer:
Yet another solution. REFERENCE:
http://www.eggheadcafe.com/articles/20050108.asp
My only regret is that when click the browser back button, it loads the
progress bar again.
Any solution to this?
|
by: Ritesh Raj Sarraf |
last post by:
Hi,
I have a small application, written in Python, that uses threads.
The application uses function foo() to download files from the web. As it reads
data from the web server, it runs a progress bar by calling an install of a
progress bar class.
When using threads, I get the problem that the progress bar gets over-written by
the download progress of files from other threads.
|
by: daniel_xi |
last post by:
Hi all,
I am running a VS 2003 .NET project on my client machine (Win 2000 SP4,
..NET framework 1.1), running an ASP.NET application on a remote web server
(Win 2000 Server, IIS 6.0, .NET framework 1.1).
The application implements a Progress Bar webcontrol, that pops up in a
window, using the HttpHandler interface, on the event of a button click. The
handler's process request routine reads the status of the progress by
querying the...
| |
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 a bunch of code
will get executed.
I would like to show a Progress Bar / form in modal/ShowDialog...
|
by: Tim Satterwhite |
last post by:
Hi All,
I think this is a thorny problem, and I'm hoping you can help. I've not
found this exact issue described anywhere yet.
I have a stored procedure that calls BULK INSERT on a set of text files.
These files are FTP'd from a legacy system (a mainframe running MVS).
Sometimes, the process steps on iteslf, whereby the bulk insert is attempted
on a file whose FTP is still in progress; it's not fully written to disk on
the SQL box...
|
by: kimiraikkonen |
last post by:
Hello experts,
I've been already working on a project and also asked and i've managed
to create a basic Gmail mail sender, but i want to add a progressbar
that shows "sending is in progress" but when i add the
progressbar1.show() when sending then progressbar.hide() after sending
finishes, as known well progressbar is shown after sending is finished
because the main form is in use.
So, must i add multi-threading function to show my...
|
by: spinoza1111 |
last post by:
I want the GUI of the spinoza system to not piss me off with the usual
type of progress reporting one sees: the flashy, colorful, and utterly
uninformative gizmos that go back and forth and round and round until
who knows when.
Therefore, the following C Sharp .Net code constitutes a theory of
progress reporting.
I claim that any fixed-count (limit available at run time before the
start) for loop can be monitored by considering it as...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |