Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: Block Desktop to prevent user interaction Pin
Luc Pattyn11-Oct-10 23:41
sitebuilderLuc Pattyn11-Oct-10 23:41 
GeneralRe: Block Desktop to prevent user interaction Pin
teknolog12312-Oct-10 0:37
teknolog12312-Oct-10 0:37 
GeneralRe: Block Desktop to prevent user interaction Pin
Luc Pattyn12-Oct-10 0:53
sitebuilderLuc Pattyn12-Oct-10 0:53 
GeneralRe: Block Desktop to prevent user interaction Pin
fjdiewornncalwe12-Oct-10 2:53
professionalfjdiewornncalwe12-Oct-10 2:53 
GeneralRe: Block Desktop to prevent user interaction Pin
teknolog12312-Oct-10 11:08
teknolog12312-Oct-10 11:08 
QuestionDataBindingComplete Pin
Dewald11-Oct-10 22:54
Dewald11-Oct-10 22:54 
AnswerRe: DataBindingComplete - modified Pin
OriginalGriff11-Oct-10 23:06
mveOriginalGriff11-Oct-10 23:06 
GeneralRe: DataBindingComplete - modified Pin
Dewald11-Oct-10 23:18
Dewald11-Oct-10 23:18 
QuestionInvoke methods in OCX in run time in c# Pin
Viratsaran11-Oct-10 20:16
Viratsaran11-Oct-10 20:16 
AnswerRe: Invoke methods in OCX in c# Pin
Abhinav S11-Oct-10 20:24
Abhinav S11-Oct-10 20:24 
AnswerRe: Invoke methods in OCX in c# Pin
JF201511-Oct-10 21:22
JF201511-Oct-10 21:22 
QuestionListView GetItemAt: problem with point returned Pin
DaveGriffith11-Oct-10 13:27
DaveGriffith11-Oct-10 13:27 
AnswerRe: ListView GetItemAt: problem with point returned Pin
Luc Pattyn11-Oct-10 14:05
sitebuilderLuc Pattyn11-Oct-10 14:05 
GeneralRe: ListView GetItemAt: problem with point returned Pin
DaveGriffith11-Oct-10 14:24
DaveGriffith11-Oct-10 14:24 
AnswerRe: ListView GetItemAt: problem with point returned Pin
Luc Pattyn11-Oct-10 14:38
sitebuilderLuc Pattyn11-Oct-10 14:38 
AnswerRe: ListView GetItemAt: problem with point returned Pin
DaveGriffith11-Oct-10 15:04
DaveGriffith11-Oct-10 15:04 
AnswerRe: ListView GetItemAt: problem with point returned Pin
Luc Pattyn11-Oct-10 15:09
sitebuilderLuc Pattyn11-Oct-10 15:09 
QuestionClick Event NaviBar Pin
leocode711-Oct-10 12:32
leocode711-Oct-10 12:32 
Questionreaching textbox in a panel Pin
Erdinc2711-Oct-10 1:06
Erdinc2711-Oct-10 1:06 
AnswerMessage Closed Pin
11-Oct-10 1:19
stancrm11-Oct-10 1:19 
GeneralRe: reaching textbox in a panel Pin
Erdinc2711-Oct-10 1:26
Erdinc2711-Oct-10 1:26 
AnswerRe: reaching textbox in a panel Pin
Pete O'Hanlon11-Oct-10 1:48
mvePete O'Hanlon11-Oct-10 1:48 
Off the top of my head, this should clear the value of all the text boxes in a form:
private void ClearTextboxes(Form parentForm)
{
  foreach (Control childControl in parentForm.Controls)
  {
    ClearTextboxes(childControl);
  }
}
private void ClearTextboxes(Control control)
{
  foreach(Control childControl in control.Controls)
  {
    ClearTextboxes(childControl );
  }
  TextBox textBox = control as TextBox;
  if (textBox != null)
  {
    textBox.Text = string.Empty;
  }
}

I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


GeneralRe: reaching textbox in a panel Pin
Erdinc2711-Oct-10 2:08
Erdinc2711-Oct-10 2:08 
GeneralRe: reaching textbox in a panel Pin
Pete O'Hanlon11-Oct-10 2:40
mvePete O'Hanlon11-Oct-10 2:40 
AnswerRe: reaching textbox in a panel Pin
Luc Pattyn11-Oct-10 1:55
sitebuilderLuc Pattyn11-Oct-10 1:55 

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.