473,395 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

A question about a stuck label

Hello all!

I'm having a problem with a stuck label. I have two applications, one that
runs on a server, the other a client. The server application controls all of
the forms that open on the client side. they close either by the user or by a
timer.

So on the client computer, I have form1 running. The label will pop up on
top of Form 1. Sometimes Form2 will show before the label timer close the
label. So the label is now stuck and will stay there. So the timer got
interupted, and now the timer won't run to close out the label. I thought
the timer ran on a seperate thread?

Any ideas on how I can make sure the label close out, even f a form pops up
on top of it?

Thanks!

Rudy
Mar 6 '07 #1
3 1098
Are you using a System.Timers.Timer class?

--
HTH,

Kevin Spencer
Microsoft MVP

Help test our new betas,
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Rudy" <Ru**@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
Hello all!

I'm having a problem with a stuck label. I have two applications, one
that
runs on a server, the other a client. The server application controls all
of
the forms that open on the client side. they close either by the user or
by a
timer.

So on the client computer, I have form1 running. The label will pop up on
top of Form 1. Sometimes Form2 will show before the label timer close the
label. So the label is now stuck and will stay there. So the timer got
interupted, and now the timer won't run to close out the label. I
thought
the timer ran on a seperate thread?

Any ideas on how I can make sure the label close out, even f a form pops
up
on top of it?

Thanks!

Rudy

Mar 6 '07 #2
Hi Kevin!

Yes I am. I been thinking about this. I thought maybe I would create a
form, and have the label fill the form. Then I will control the form instead
of the label. I think I might have some more control of closing that form
with out being dependent on anything. What do you think?

Rudy

"Kevin Spencer" wrote:
Are you using a System.Timers.Timer class?

--
HTH,

Kevin Spencer
Microsoft MVP

Help test our new betas,
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Rudy" <Ru**@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
Hello all!

I'm having a problem with a stuck label. I have two applications, one
that
runs on a server, the other a client. The server application controls all
of
the forms that open on the client side. they close either by the user or
by a
timer.

So on the client computer, I have form1 running. The label will pop up on
top of Form 1. Sometimes Form2 will show before the label timer close the
label. So the label is now stuck and will stay there. So the timer got
interupted, and now the timer won't run to close out the label. I
thought
the timer ran on a seperate thread?

Any ideas on how I can make sure the label close out, even f a form pops
up
on top of it?

Thanks!

Rudy


Mar 6 '07 #3
I think your idea of a separate thread (use a BackgroundWorker class
instance) is the best.

--
HTH,

Kevin Spencer
Microsoft MVP

Help test our new betas,
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Rudy" <Ru**@discussions.microsoft.comwrote in message
news:49**********************************@microsof t.com...
Hi Kevin!

Yes I am. I been thinking about this. I thought maybe I would create a
form, and have the label fill the form. Then I will control the form
instead
of the label. I think I might have some more control of closing that form
with out being dependent on anything. What do you think?

Rudy

"Kevin Spencer" wrote:
>Are you using a System.Timers.Timer class?

--
HTH,

Kevin Spencer
Microsoft MVP

Help test our new betas,
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Rudy" <Ru**@discussions.microsoft.comwrote in message
news:E8**********************************@microso ft.com...
Hello all!

I'm having a problem with a stuck label. I have two applications, one
that
runs on a server, the other a client. The server application controls
all
of
the forms that open on the client side. they close either by the user
or
by a
timer.

So on the client computer, I have form1 running. The label will pop up
on
top of Form 1. Sometimes Form2 will show before the label timer close
the
label. So the label is now stuck and will stay there. So the timer got
interupted, and now the timer won't run to close out the label. I
thought
the timer ran on a seperate thread?

Any ideas on how I can make sure the label close out, even f a form
pops
up
on top of it?

Thanks!

Rudy



Mar 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: BW | last post by:
Please ignore the rest of the code, except for the highlighted part (or the line 'ent1=Entry(topf, width=25)' to line 'ent1.insert(INSERT, wrong, if you cannot see the color). You can copy this into...
3
by: Javier Troconis | last post by:
Hello, first of all it's convenient to say that I'm not an expert, neither nothing similar, just in case. I have been trying to execute this little piece of code with no results, does anyone there...
6
by: wASP | last post by:
Hello everyone, I'm new to C# and ASP.NET, so pardon my stupidity on this one. I'm having a problem with referencing methods/functions external to a class member function. My code is as...
2
by: Mike | last post by:
I'm trying to find a label and the value within a datalist, i've done this in the passed in the datalist_itemdatbound routine and worked likes a charm. Now I"m trying to do the samething in a...
2
by: Support | last post by:
in asp.net If I have a web usercontrol WUC with code behind Class CLASSWUC and I have a web page that loads the control Private Sub Page_Init(ByVal sender As System.Object, ByVal e As...
66
by: Cor | last post by:
Hi, I start a new thread about a discussion from yesterday (or for some of us this morning). It was a not so nice discussion about dynamically removing controls from a panel or what ever. It...
1
by: TBK | last post by:
I'm trying to finish up an assignment I had for a class and basically I'm stuck. The program is supposed to take information you've entered, put it into an array, display it in a listbox and then...
1
by: Kburge03 | last post by:
Hi!! I've been working on this assingment for class where I have to design and implement an application that displays two Die objects, a button, and a label. Every time the button is pushed, the...
10
by: dkyadav80 | last post by:
<html> /// here what shoud be java script for: ->when script run then not display all input text field only display selection field. ->when user select other value for institute only this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.