473,386 Members | 1,997 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,386 software developers and data experts.

refreshing label text

I have a form that runs a procedure when a button is clicked. the procedure
does a few things, then outputs the results to labels on a form....which it
does fine.
However, when I call that procedure again (in the same instance of the
program), the labels do not update.
i have tried resetting the text. update(), refresh(), beginUpdate() and
endUpdate(), Invalidate() and a few others that sounded pretty good ;-)
no dice.
any ideas?

thanks, patrick
Nov 21 '05 #1
2 1412
Rigamonk,

I assume that that procedure is in the ButtonClick event, can you show us a
little bit of the code you are using?

It should show directly after that method is done normally.

Cor
"rigamonk" <ri********@hotSPAMmail.com>
I have a form that runs a procedure when a button is clicked. the procedure
does a few things, then outputs the results to labels on a form....which it
does fine.
However, when I call that procedure again (in the same instance of the
program), the labels do not update.
i have tried resetting the text. update(), refresh(), beginUpdate() and
endUpdate(), Invalidate() and a few others that sounded pretty good ;-)
no dice.
any ideas?

thanks, patrick

Nov 21 '05 #2
ok.
here is some of the code in the called procedure:

data854F = CType(regKey.GetValue("{A8A88C49-5EB2-4990-A1A2-0876022C854F}"),
Byte())

data0120 = CType(regKey.GetValue("{AEBA21FA-782A-4A90-978D-B72164C80120}"),
Byte())

str854F = Hex.ToString(data854F)

str0120 = Hex.ToString(data0120)

Try

sub854F = str854F.Substring(72, 13)

sub0120 = str0120.Substring(72, 13)

Catch ex As System.ArgumentOutOfRangeException

sub854F = str854F.Substring(72, 11)

sub0120 = str0120.Substring(72, 11)

End Try

lblDefaulLvl.Text = "Advanced"

If sub854F.Equals("14-1A-15-39-4") And sub0120.Equals("14-1A-15-39-4") Then

IEex1.Text = "Block"

IEex2.Text = "Block"

IEex3.Text = "Block"

IEex4.Text = "Block"

lblSession.Text = "Always Allow"

ElseIf sub854F.Equals("14-1A-15-39") And sub0120.Equals("14-1A-15-39") Then

IEex1.Text = "Block"

IEex2.Text = "Block"

IEex3.Text = "Block"

IEex4.Text = "Block"

lblSession.Text = "Not Allow"

so....this is called and it populates the varios labels. works great the
first time. but lets say i want to call the proc again a little later to see
if anything has changed. well, the values in the labels DO NOT CHANGE. I've
run into this type of thing before and (obviously) never figured it out.

any ideas

"rigamonk" <ri********@hotSPAMmail.com> wrote in message
news:NO********************@giganews.com...
I have a form that runs a procedure when a button is clicked. the procedure
does a few things, then outputs the results to labels on a form....which it
does fine.
However, when I call that procedure again (in the same instance of the
program), the labels do not update.
i have tried resetting the text. update(), refresh(), beginUpdate() and
endUpdate(), Invalidate() and a few others that sounded pretty good ;-)
no dice.
any ideas?

thanks, patrick

Nov 21 '05 #3

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

Similar topics

1
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is...
1
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is...
0
by: willow1480 | last post by:
I am developing a small little Service Control Application. I am using a listview control with checkboxes and getting the list of services I want to control from a text file. When you check a...
0
by: Terry Cox, MCSD | last post by:
I have this problem throughout a site I am designing. The Update, Edit, and Insert commands all seem to re-databind properly, but the the OnDeleteCommand only processes. The deleted item remains on...
6
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the...
0
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is...
1
by: barry | last post by:
The following code, in windows, shows the elapsing time in a label control. Is there an equivalent method for asp.net dealing with refreshing the label control? Do Until Date.Now >= endTimeSpan...
2
by: Ben | last post by:
Hi, One ASP.NET transactional page conducts a long transaction in a button click function. I want to display the transaction progress info in label control without refreshing page. It is...
5
by: handoyo | last post by:
Hi all,i'm trying to show updated data in existing html td.. For example i got column that show last modified datetime,then i want to update data again,the column will changed to current time without...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.