Click here to Skip to main content
15,889,852 members
Home / Discussions / C#
   

C#

 
QuestionRe: accessing control's value from a seperate class. [modified] What am I doing wrong? Pin
JollyMansArt17-Aug-09 12:07
JollyMansArt17-Aug-09 12:07 
AnswerRe: accessing control's value from a seperate class. [modified] What am I doing wrong? Pin
DaveyM6917-Aug-09 12:20
professionalDaveyM6917-Aug-09 12:20 
QuestionRe: accessing control's value from a seperate class. [modified] What am I doing wrong? (Simplified...) Pin
JollyMansArt17-Aug-09 12:32
JollyMansArt17-Aug-09 12:32 
AnswerRe: accessing control's value from a seperate class. [modified] What am I doing wrong? Pin
Henry Minute17-Aug-09 12:57
Henry Minute17-Aug-09 12:57 
AnswerRe: accessing control's value from a seperate class. Pin
Luc Pattyn17-Aug-09 13:13
sitebuilderLuc Pattyn17-Aug-09 13:13 
QuestionForm reload Pin
neha_rai17-Aug-09 9:27
neha_rai17-Aug-09 9:27 
AnswerRe: Form reload Pin
kevinnicol17-Aug-09 9:33
kevinnicol17-Aug-09 9:33 
AnswerRe: Form reload Pin
Adam R Harris17-Aug-09 10:20
Adam R Harris17-Aug-09 10:20 
If I were attempting this, I would have a function that would set all the values to their defaults (say initForm) and I would just call that from Form1_Load or anywhere else I wanted to reset the form.

For example;
protected void Form1_Load(){
  initForm();
  ...
}

protected void Button1_Click(object sender, EventArgs args){
  initForm();
  ...
}

private void initForm(){
  Textbox1.text = "[Default Value]";
  Textbox2.text = "[Default Value]";
  ...
}


If at first you don't succeed ... post it on The Code Project and Pray.

AnswerRe: Form reload Pin
Pete O'Hanlon17-Aug-09 10:50
mvePete O'Hanlon17-Aug-09 10:50 
AnswerRe: Form reload Pin
Luc Pattyn17-Aug-09 13:16
sitebuilderLuc Pattyn17-Aug-09 13:16 
Questionconnection to other computer using C#(REPOST) Pin
CoderForEver17-Aug-09 8:43
CoderForEver17-Aug-09 8:43 
QuestionC# Host with IP address detect! Pin
nhqlbaislwfiikqraqnm17-Aug-09 8:41
nhqlbaislwfiikqraqnm17-Aug-09 8:41 
AnswerRe: C# Host with IP address detect! Pin
ricmil4217-Aug-09 9:10
ricmil4217-Aug-09 9:10 
GeneralRe: C# Host with IP address detect! Pin
nhqlbaislwfiikqraqnm17-Aug-09 9:46
nhqlbaislwfiikqraqnm17-Aug-09 9:46 
GeneralRe: C# Host with IP address detect! Pin
ricmil4217-Aug-09 9:52
ricmil4217-Aug-09 9:52 
AnswerRe: C# Host with IP address detect! Pin
nhqlbaislwfiikqraqnm17-Aug-09 10:01
nhqlbaislwfiikqraqnm17-Aug-09 10:01 
GeneralRe: C# Host with IP address detect! Pin
nhqlbaislwfiikqraqnm17-Aug-09 10:02
nhqlbaislwfiikqraqnm17-Aug-09 10:02 
QuestionModel-View-Presenter Question [modified] Pin
Frygreen17-Aug-09 7:04
Frygreen17-Aug-09 7:04 
AnswerRe: Model-View-Presenter Question Pin
Henry Minute17-Aug-09 7:21
Henry Minute17-Aug-09 7:21 
AnswerRe: Model-View-Presenter Question Pin
N a v a n e e t h17-Aug-09 8:34
N a v a n e e t h17-Aug-09 8:34 
AnswerRe: Model-View-Presenter Question Pin
Frygreen18-Aug-09 7:55
Frygreen18-Aug-09 7:55 
AnswerRe: Model-View-Presenter Question Pin
Frygreen18-Aug-09 8:01
Frygreen18-Aug-09 8:01 
QuestionMDI parent MDI child issue Pin
gerrybrennan17-Aug-09 6:44
gerrybrennan17-Aug-09 6:44 
AnswerRe: MDI parent MDI child issue Pin
dan!sh 17-Aug-09 6:54
professional dan!sh 17-Aug-09 6:54 
GeneralRe: MDI parent MDI child issue Pin
gerrybrennan17-Aug-09 7:10
gerrybrennan17-Aug-09 7:10 

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.