Click here to Skip to main content
15,878,871 members
Home / Discussions / C#
   

C#

 
AnswerRe: getting handle to applications icon Pin
Eric Dahlvang25-Apr-06 8:10
Eric Dahlvang25-Apr-06 8:10 
QuestionDatagrid bound to collection : how to order columns ??? Pin
leplayb25-Apr-06 3:56
leplayb25-Apr-06 3:56 
AnswerRe: Datagrid bound to collection : how to order columns ??? Pin
J4amieC25-Apr-06 4:36
J4amieC25-Apr-06 4:36 
GeneralRe: Datagrid bound to collection : how to order columns ??? Pin
leplayb25-Apr-06 5:33
leplayb25-Apr-06 5:33 
Questionreading and placing in textarea Pin
kknadh8025-Apr-06 3:31
kknadh8025-Apr-06 3:31 
AnswerRe: reading and placing in textarea Pin
J4amieC25-Apr-06 3:34
J4amieC25-Apr-06 3:34 
AnswerRe: reading and placing in textarea Pin
CWIZO25-Apr-06 3:35
CWIZO25-Apr-06 3:35 
QuestionPassing Window Form Controls as method argument Pin
abhinish25-Apr-06 3:28
abhinish25-Apr-06 3:28 
Hi Guys!!

need a little help

i m developing a window application in which there are many textboxes Richtextboxes checkbox etc i want to reset these controls on a button click

so i decided to make a function something like this

void Clear(ref Control ctrl)<br />
{<br />
   if(ctrl.GetType().Name=="TextBox"}<br />
   {<br />
    ctrl.text="";<br />
   }<br />
}

and so on.
but when i pass the Textbox referece something like this
TextBox textbox1;<br />
Clear(textbox1);

it gives an Error That Window.Form.TextBox cannot be Passed as Window.form.Control. as Argument

i dont understand as textbox is also a control...
can any one help me .. what i m missing...

Thanks....


Abhinav
AnswerRe: Passing Window Form Controls as method argument Pin
Le centriste25-Apr-06 3:41
Le centriste25-Apr-06 3:41 
AnswerRe: Passing Window Form Controls as method argument Pin
Paul Brower25-Apr-06 5:03
Paul Brower25-Apr-06 5:03 
QuestionCapturing Browser data in Windows Application Pin
nw.knowledge25-Apr-06 3:09
nw.knowledge25-Apr-06 3:09 
AnswerRe: Capturing Browser data in Windows Application Pin
J4amieC25-Apr-06 3:29
J4amieC25-Apr-06 3:29 
QuestionRe: Capturing Browser data in Windows Application Pin
nw.knowledge25-Apr-06 19:58
nw.knowledge25-Apr-06 19:58 
QuestionDatagrid TextBox becomes dropdownlist on Edit/Update Pin
cppdotnet25-Apr-06 2:55
cppdotnet25-Apr-06 2:55 
QuestionProblem with deleting a row from a sorted DataGrid Pin
Larantz25-Apr-06 2:30
Larantz25-Apr-06 2:30 
AnswerRe: Problem with deleting a row from a sorted DataGrid Pin
Robert Rohde25-Apr-06 3:29
Robert Rohde25-Apr-06 3:29 
QuestionChange active database in runtime Pin
siliconesoul25-Apr-06 2:29
siliconesoul25-Apr-06 2:29 
AnswerRe: Change active database in runtime Pin
Le centriste25-Apr-06 3:43
Le centriste25-Apr-06 3:43 
GeneralRe: Change active database in runtime Pin
siliconesoul25-Apr-06 8:19
siliconesoul25-Apr-06 8:19 
GeneralRe: Change active database in runtime Pin
Le centriste25-Apr-06 9:13
Le centriste25-Apr-06 9:13 
Questionimage rotation with link Pin
Amalarajan25-Apr-06 2:20
Amalarajan25-Apr-06 2:20 
QuestionDelegate .Invoke method problem Pin
danchester25-Apr-06 2:14
danchester25-Apr-06 2:14 
Questionintegration Collection Pin
ashishnagar125-Apr-06 2:04
ashishnagar125-Apr-06 2:04 
QuestionGenerate rdlc file dynamically Pin
Bobby88725-Apr-06 1:29
Bobby88725-Apr-06 1:29 
QuestionSystem tray icon Pin
VanEtienne25-Apr-06 1:27
VanEtienne25-Apr-06 1:27 

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.