Click here to Skip to main content
15,907,233 members
Home / Discussions / C#
   

C#

 
QuestionVS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 3:30
Mihai Pruna18-Feb-09 3:30 
AnswerRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 3:59
Deresen18-Feb-09 3:59 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 4:05
Mihai Pruna18-Feb-09 4:05 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 4:09
Deresen18-Feb-09 4:09 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 4:56
Mihai Pruna18-Feb-09 4:56 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 5:02
Deresen18-Feb-09 5:02 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 5:12
Mihai Pruna18-Feb-09 5:12 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 5:21
Deresen18-Feb-09 5:21 
No,

You've got some form, this is your outputscreen, the way you debug, right?
So let's say you have one label named outputLabel and one checkbox.

When you initialize, you will probably do something like this:
public Form()
{
   InitializeComponents();
   outputLabel.Text = getDataFromDatabase();
}


and then something happens and the values changes, but you won't see those values, because you didn't update your form.
So in your case you will do something like this:
public void checkBox_Clicked(object sender, EventArgs e)
{
   Form.Reload();
}


but in stead of this, you have to only refresh the values in the textboxes/labels. Something like this:
public void checkBox_Clicked(object sender, EventArgs e)
{
   outputLabel.Text = getDataFromDatabase();
}


that's all. If it is something else, you should place some code of the eventhandling.
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 6:07
Mihai Pruna18-Feb-09 6:07 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Mihai Pruna18-Feb-09 8:20
Mihai Pruna18-Feb-09 8:20 
GeneralRe: VS2005, variables with values of form elements not updating when interacted with by user. Pin
Deresen18-Feb-09 12:20
Deresen18-Feb-09 12:20 
Questionhow to use load axwinsock in c# Pin
mghafar18-Feb-09 3:07
mghafar18-Feb-09 3:07 
AnswerRe: how to use load axwinsock in c# Pin
Rob Philpott18-Feb-09 4:07
Rob Philpott18-Feb-09 4:07 
AnswerRe: how to use load axwinsock in c# Pin
Dave Kreskowiak18-Feb-09 4:51
mveDave Kreskowiak18-Feb-09 4:51 
Questionhow can I put in process simultaneously all the txt files in folder? Pin
wwwxyz18-Feb-09 3:05
wwwxyz18-Feb-09 3:05 
AnswerRe: how can I put in process simultaneously all the txt files in folder? Pin
EliottA18-Feb-09 3:08
EliottA18-Feb-09 3:08 
GeneralRe: how can I put in process simultaneously all the txt files in folder? Pin
wwwxyz18-Feb-09 3:13
wwwxyz18-Feb-09 3:13 
GeneralRe: how can I put in process simultaneously all the txt files in folder? Pin
EliottA18-Feb-09 3:22
EliottA18-Feb-09 3:22 
GeneralRe: how can I put in process simultaneously all the txt files in folder? Pin
wwwxyz18-Feb-09 3:38
wwwxyz18-Feb-09 3:38 
AnswerRe: how can I put in process simultaneously all the txt files in folder? Pin
Nagy Vilmos18-Feb-09 3:41
professionalNagy Vilmos18-Feb-09 3:41 
AnswerRe: how can I put in process simultaneously all the txt files in folder? Pin
wwwxyz18-Feb-09 12:00
wwwxyz18-Feb-09 12:00 
QuestionClosing a exe file Pin
mrithula818-Feb-09 3:01
mrithula818-Feb-09 3:01 
AnswerRe: Closing a exe file [modified] Pin
Calin Tatar18-Feb-09 3:08
Calin Tatar18-Feb-09 3:08 
AnswerRe: Closing a exe file Pin
Nuri Ismail18-Feb-09 3:08
Nuri Ismail18-Feb-09 3:08 
GeneralRe: Closing a exe file Pin
mrithula818-Feb-09 18:11
mrithula818-Feb-09 18:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.