If i call invalidate() two times, how can I stop the process for some time
between them? that is, do updating ----> invalidate() -->do updating---->
pause--> invalidate()
I update my data in my program 2 times , i want to see what is the change of
the srceen in these 2 update , but i found the srceen change too fast so i
can't see what is the change of the first update , do there exist any class
that can stop the process for while? 2 1576
You can let your current Thread sleep
System.Threadin g.Thread.Sleep( number of milliseconds you want to be idle);
This is the simplest way
"Chan" <11*@111.com> wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl... If i call invalidate() two times, how can I stop the process for some time between them? that is, do updating ----> invalidate() -->do updating----> pause--> invalidate()
I update my data in my program 2 times , i want to see what is the change
of the srceen in these 2 update , but i found the srceen change too fast so
i can't see what is the change of the first update , do there exist any
class that can stop the process for while?
If you are in the debugger you could always put a break point in the code at
the end of the update. Just be sure not to have VS.net full screen so your
app doesn't get covered. Great use for multiple monitors.
--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein
"Chan" <11*@111.com> wrote in message
news:uf******** ******@TK2MSFTN GP10.phx.gbl... If i call invalidate() two times, how can I stop the process for some time between them? that is, do updating ----> invalidate() -->do updating----> pause--> invalidate()
I update my data in my program 2 times , i want to see what is the change
of the srceen in these 2 update , but i found the srceen change too fast so
i can't see what is the change of the first update , do there exist any
class that can stop the process for while?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Prasad |
last post by:
Hi,
I am writing a service which takes a long time to stop after the OnStop
call is given by the Services Snap-in. The problem is I cannot cut down on
the time that it takes to Stop. The Service snap-in gives me the error
saying that the service did not respond to the Stop call in a timely
fashion. So is there any method by which I can get around this problem.
Thanks
Prasad
|
by: Vadym Stetsyak |
last post by:
Hi there!
Is there any way how can I stop garbage collection for a period of time.
Lets say, I have a form. Before form load I pause the GC and when the form
is shown resume GC
|
by: strangedub |
last post by:
I am working on a C# Windows program that needs to kill a known
process. I have written code that works in development mode but hits
an "Access Denied" exception when running the compiled program:
Here's my original code:
// Now stop the server process
Process myProcesses;
myProcesses = Process.GetProcessesByName("MyServer");
foreach(Process myProcess in myProcesses)
{
|
by: Sunny |
last post by:
Hi All
I am creating a C# app, in which there are some methods that are considerably longer than the others and take a few minutes to complete, I want to give the users an option to stop that method (which is in process).
I want to include a command button using which the user of the app, can stop that process. Another thing that i want to add is that, while stopping the mthod execution, i do not want the Windows Form to close, only the in...
|
by: ENathan |
last post by:
I have a public sub in a class that does something like:
If ValuesChanged() Then
UpdateDatabase
End If
ValuesChanged and UpdateDatabase are Private functions within the class.
My problem is, when I finish debugging ValuesChanged and click the stop
debugging button, it appears the code continues behind these scenes and runs
| |
by: Chip |
last post by:
Can somebody explain to me why my process continues to run after I halt
execution? This plays havoc with debugging. I expect to be starting a new
instance at the beginning of a loop and the first break point hit is
thousands of itterations into the process (from a previous instance). I get
a very random step behavior. Know I am watching a database continue to be
updated 10 minutes after I stopped the front-end process. I have to stop IIS...
|
by: Torben Laursen |
last post by:
Hi
My interface calls a C++ dll that runs a slow calculations.
So I call the dll inside a BackgroundWorker thread, and that all works fine.
But how can I stop the thread if the user wants to? I can not tell the dll
to stop so CancelAsync() will not work?
I need a way to simply kill the "thread" since nothing in it will be used if
the user wants to cancel
|
by: srcleveland |
last post by:
I am trying to have a windows service stop itself. I am currently
using the following code but I would like to find a way to stop the
service without having to shell out to a command prompt
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.Arguments = " /C sc stop \"" + this.serviceDisplayName +
"\"";
p.Start();
|
by: ThunderMusic |
last post by:
Hi,
I'm currently working with sockets. I accept connections using
m_mySocket.Listen(BackLogCount); But when I want to stop listening, I
shutdown all my clients and call m_mySocket.Close(), but it always raise a
OnConnect event (actually, it calls the callback function as if there was a
new connection attempt) and I receive a ObjectDisposedException as soon as I
do m_mySocket.EndAccept.
Does anyone have any idea of what I could do about...
|
by: zgh1970 |
last post by:
Hi, Friends,
I need to know how to stop all database process even after db2stop.
How can I stop all database processes?
I have finished upgraded our system test and UAT region from 32-bit to
64-bit.
I followed the following for my system test region:
1. log on aix with root
2. stop the instance
3. db2iupdt -w 64 instance
|
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: 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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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?
| |