473,396 Members | 1,755 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,396 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 8518
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
0
agi2029
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,...

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.