473,769 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=t rue. This solved the problem in
Excel. In VB.Net I used the thread.sleep after telling the label.visble=tr ue
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 8538
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..a nd it works as
expected

Jeff

"dcstech" <dc*****@discus sions.microsoft .com> wrote in message
news:BC******** *************** ***********@mic rosoft.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=t rue. This solved the problem in Excel. In VB.Net I used the thread.sleep after telling the label.visble=tr ue 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..a nd it works as
expected

Jeff

"dcstech" <dc*****@discus sions.microsoft .com> wrote in message
news:BC******** *************** ***********@mic rosoft.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=t rue. This solved the problem

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

label.visble=tr ue
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*****@discus sions.microsoft .com> wrote in message
news:BC******** *************** ***********@mic rosoft.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=t rue. This solved the
> problem

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

label.visble=tr ue
> 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..a nd it works as
expected

Jeff

"dcstech" <dc*****@discus sions.microsoft .com> wrote in message
news:BC******** *************** ***********@mic rosoft.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=t rue. This solved the problem

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

label.visble=tr ue
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.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()
under the declaration of the label put this code

Me.<your Label>.ForeColo r = System.Drawing. SystemColors.Co ntrolText
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
30035
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 id="uid">UserID: </label> <input name="UserID" type="text" value="" size="20"> <script language="Javascript1.2" type="text/javascript1.2">
7
2980
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 labels that appear. I have that much working as of now. What I need to know is, how do I format the labels to align underneath one and other. So when I check the first check box, the corresponding label appears and when I check the third check box...
31
7243
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
2422
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 why not? Below is an working VB.Net example to illustrate what I mean.
1
1830
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 data adapter and SOME of the fields are displayed in a datagrid. Everything groovy, no problem. Now I want the user to click the ReqID (primary key link label) in the datagrid and display fields FROM THAT ROW ONLY in some labels on the form. I...
3
2901
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" Visible=False runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.min_value") %>'> </asp:Label>
5
11269
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 not visible.) I have this line of code: Me.lblWait.Visible = True Then there is a line that defines strSQL. This takes a minute or so.
2
2602
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 Label is not visible until the backup begins, at which point I resize the form to show the Label and a ProgressBar. As each file is copied, the Label is updated:
9
8026
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 ... :-)) When I set the label with "SendToBack", it completely disapears. I also tried to set the child form like "BringToFront" but this also does not help.
0
9579
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, 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...
0
10206
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, 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...
1
9984
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,...
0
8863
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7403
isladogs
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...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.