Click here to Skip to main content
15,353,841 members
Home / Discussions / C#
   

C#

 
AnswerRe: getting handle to applications icon Pin
Eric Dahlvang25-Apr-06 8:10
MemberEric Dahlvang25-Apr-06 8:10 
QuestionDatagrid bound to collection : how to order columns ??? Pin
leplayb25-Apr-06 3:56
Memberleplayb25-Apr-06 3:56 
AnswerRe: Datagrid bound to collection : how to order columns ??? Pin
J4amieC25-Apr-06 4:36
MemberJ4amieC25-Apr-06 4:36 
GeneralRe: Datagrid bound to collection : how to order columns ??? Pin
leplayb25-Apr-06 5:33
Memberleplayb25-Apr-06 5:33 
Questionreading and placing in textarea Pin
kknadh8025-Apr-06 3:31
Memberkknadh8025-Apr-06 3:31 
AnswerRe: reading and placing in textarea Pin
J4amieC25-Apr-06 3:34
MemberJ4amieC25-Apr-06 3:34 
AnswerRe: reading and placing in textarea Pin
CWIZO25-Apr-06 3:35
MemberCWIZO25-Apr-06 3:35 
QuestionPassing Window Form Controls as method argument Pin
abhinish25-Apr-06 3:28
Memberabhinish25-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
MemberLe centriste25-Apr-06 3:41 
AnswerRe: Passing Window Form Controls as method argument Pin
Paul Brower25-Apr-06 5:03
MemberPaul Brower25-Apr-06 5:03 
QuestionCapturing Browser data in Windows Application Pin
nw.knowledge25-Apr-06 3:09
Membernw.knowledge25-Apr-06 3:09 
AnswerRe: Capturing Browser data in Windows Application Pin
J4amieC25-Apr-06 3:29
MemberJ4amieC25-Apr-06 3:29 
QuestionRe: Capturing Browser data in Windows Application Pin
nw.knowledge25-Apr-06 19:58
Membernw.knowledge25-Apr-06 19:58 
QuestionDatagrid TextBox becomes dropdownlist on Edit/Update Pin
cppdotnet25-Apr-06 2:55
Membercppdotnet25-Apr-06 2:55 
QuestionProblem with deleting a row from a sorted DataGrid Pin
Larantz25-Apr-06 2:30
MemberLarantz25-Apr-06 2:30 
AnswerRe: Problem with deleting a row from a sorted DataGrid Pin
Robert Rohde25-Apr-06 3:29
MemberRobert Rohde25-Apr-06 3:29 
QuestionChange active database in runtime Pin
siliconesoul25-Apr-06 2:29
Membersiliconesoul25-Apr-06 2:29 
AnswerRe: Change active database in runtime Pin
Le centriste25-Apr-06 3:43
MemberLe centriste25-Apr-06 3:43 
GeneralRe: Change active database in runtime Pin
siliconesoul25-Apr-06 8:19
Membersiliconesoul25-Apr-06 8:19 
GeneralRe: Change active database in runtime Pin
Le centriste25-Apr-06 9:13
MemberLe centriste25-Apr-06 9:13 
Questionimage rotation with link Pin
Amalarajan25-Apr-06 2:20
MemberAmalarajan25-Apr-06 2:20 
QuestionDelegate .Invoke method problem Pin
danchester25-Apr-06 2:14
Memberdanchester25-Apr-06 2:14 
Questionintegration Collection Pin
ashishnagar125-Apr-06 2:04
Memberashishnagar125-Apr-06 2:04 
QuestionGenerate rdlc file dynamically Pin
Bobby88725-Apr-06 1:29
MemberBobby88725-Apr-06 1:29 
QuestionSystem tray icon Pin
VanEtienne25-Apr-06 1:27
MemberVanEtienne25-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.