473,324 Members | 2,548 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,324 software developers and data experts.

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 8510
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Xerxes | last post by:
Hi, can you tell me how I can make a <label> hidden? I have hidden the field after the label: var M_Hide = isNS4?'hide':'hidden'; var M_Show = isNS4?'show':'visible'; ..... <label...
7
by: Jared | last post by:
Here is my situation. I have multiple labels on a form but only certain ones will become visible while using the form. Depending on which check box(s) you pick, on another form, determines the...
31
by: jcrouse | last post by:
Is there a quick and easy way to change the color of a label controls border from the default black to white? Thank you, John
3
by: Neil Wallace | last post by:
Hi, This is an odd one. I've been struggling to get "double click" to work well for my controls. The same event handler works perfectly for buttons, but not for labels. Can anyone tell me...
1
by: shelleybobelly | last post by:
Hi, I am trying to use the ItemCommand in a datagrid (web form) to display *fields* from the specific row. Each row in the dataset has a primary key. The dataset single table is filled from a...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
5
by: dgardner | last post by:
This one has me stumped and I hope someone can help. I have a form with a button on it. When I click the button, I want a label named lblWait to be visible. (When the form opens, the label is...
2
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
Hi, I have a Label on a Windows form (Version 1.1.4322) and while I iterate recursively through a method I want to show the name of the current file being copied to another directory. The...
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-))...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.