469,647 Members | 1,719 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

label.visible

I have a label that will not display. On the form load event I wrote
"label1.visible=false".
when my routine get at the end of the code I inserted "label1.visible=true".
I have had a similar problem with vba in excel and I had to put a wait
statement after telling the label.visible=true. This solved the problem in
Excel. In VB.Net I used the thread.sleep after telling the label.visble=true
and this did not help.

When I said "wait" I am only talking about 1 second the same for sleep.

Thanks for any help.
DCSTech
Jul 21 '05 #1
5 8288
I created a new web project, and put a single label on it.

In page_load I can easily set visible=false or visible=true..and it works as
expected

Jeff

"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
I have a label that will not display. On the form load event I wrote
"label1.visible=false".
when my routine get at the end of the code I inserted "label1.visible=true". I have had a similar problem with vba in excel and I had to put a wait
statement after telling the label.visible=true. This solved the problem in Excel. In VB.Net I used the thread.sleep after telling the label.visble=true and this did not help.

When I said "wait" I am only talking about 1 second the same for sleep.

Thanks for any help.
DCSTech

Jul 21 '05 #2
This is on a windows form.

"Jeff Dillon" wrote:
I created a new web project, and put a single label on it.

In page_load I can easily set visible=false or visible=true..and it works as
expected

Jeff

"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
I have a label that will not display. On the form load event I wrote
"label1.visible=false".
when my routine get at the end of the code I inserted

"label1.visible=true".
I have had a similar problem with vba in excel and I had to put a wait
statement after telling the label.visible=true. This solved the problem

in
Excel. In VB.Net I used the thread.sleep after telling the

label.visble=true
and this did not help.

When I said "wait" I am only talking about 1 second the same for sleep.

Thanks for any help.
DCSTech


Jul 21 '05 #3
Can you explain your code a bit more or post a sample that illustrates the
problem?

ShaneB
"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
> I have a label that will not display. On the form load event I wrote
> "label1.visible=false".
> when my routine get at the end of the code I inserted

"label1.visible=true".
> I have had a similar problem with vba in excel and I had to put a wait
> statement after telling the label.visible=true. This solved the
> problem

in
> Excel. In VB.Net I used the thread.sleep after telling the

label.visble=true
> and this did not help.
>
> When I said "wait" I am only talking about 1 second the same for sleep.
>
> Thanks for any help.
> DCSTech


Jul 21 '05 #4
I checked it in windows application and it is working fine for me.. May be
check some other page events handlers

regards
Nishith
Nishith

"dcstech" wrote:
This is on a windows form.

"Jeff Dillon" wrote:
I created a new web project, and put a single label on it.

In page_load I can easily set visible=false or visible=true..and it works as
expected

Jeff

"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
I have a label that will not display. On the form load event I wrote
"label1.visible=false".
when my routine get at the end of the code I inserted

"label1.visible=true".
I have had a similar problem with vba in excel and I had to put a wait
statement after telling the label.visible=true. This solved the problem

in
Excel. In VB.Net I used the thread.sleep after telling the

label.visble=true
and this did not help.

When I said "wait" I am only talking about 1 second the same for sleep.

Thanks for any help.
DCSTech


Jul 21 '05 #5
Sid
hi nishith,
i had the sample problem, on the form i had put a new label, and it was
not visible

There is a workaround, open the code for the winform
under the following tag
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
under the declaration of the label put this code

Me.<your Label>.ForeColor = System.Drawing.SystemColors.ControlText
You should be all set

Cheers
Sid

Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Xerxes | last post: by
31 posts views Thread by jcrouse | last post: by
3 posts views Thread by Neil Wallace | last post: by
5 posts views Thread by dgardner | last post: by
2 posts views Thread by =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post: by
9 posts views Thread by =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.