Click here to Skip to main content
15,923,389 members
Home / Discussions / C#
   

C#

 
GeneralRe: prevent keypress Pin
Ashvin Gunga20-Feb-07 19:10
Ashvin Gunga20-Feb-07 19:10 
QuestionAccess web page text from C# Pin
Mark T.19-Feb-07 23:32
Mark T.19-Feb-07 23:32 
AnswerRe: Access web page text from C# Pin
patt20-Feb-07 0:04
patt20-Feb-07 0:04 
GeneralRe: Access web page text from C# - Not Yet Pin
Mark T.20-Feb-07 1:40
Mark T.20-Feb-07 1:40 
GeneralRe: Access web page text from C# - Not Yet Pin
patt20-Feb-07 1:55
patt20-Feb-07 1:55 
GeneralRe: Access web page text from C# - Not Yet Pin
__DanC__20-Feb-07 2:17
__DanC__20-Feb-07 2:17 
AnswerAdditional Information - accessing web page Pin
Mark T.20-Feb-07 3:54
Mark T.20-Feb-07 3:54 
QuestionUse a Combo box in a function ! [modified] Pin
mrkeivan19-Feb-07 23:03
mrkeivan19-Feb-07 23:03 
Hi guys, I have a form that contains 6 Combo boxes and i want to bind them to database, I want to creat a function like this :

void FillIn(string Tbl, string Fld)<br />
{<br />
    ComboBoxCBDS.Clear();<br />
    ComboBoxCBDA.SelectCommand = new SqlCommand("Select * from " + <br />
    Tbl + " Order By " + Fld, ItemsConn);<br />
    ComboBoxCBDA.Fill(ComboBoxCBDS, Tbl);<br />
    NameOfCB.DataSource = ComboBoxCBDS.Tables[Tbl];<br />
    NameOfCB.DisplayMember = Fld;<br />
    NameOfCB.ValueMember = Fld;<br />
}

The Problem is "NameOfCB" !!! how can I bring the name of the ComboBox in my function I tried string variable but it didn't work !

Thanx !


-- modified at 5:24 Tuesday 20th February, 2007
AnswerRe: Use a Combo box in a function ! Pin
Stefan Troschuetz19-Feb-07 23:16
Stefan Troschuetz19-Feb-07 23:16 
QuestionMessagebox to return a variable Pin
Glen Harvy19-Feb-07 22:41
Glen Harvy19-Feb-07 22:41 
AnswerRe: Messagebox to return a variable Pin
Christian Graus19-Feb-07 22:51
protectorChristian Graus19-Feb-07 22:51 
GeneralRe: Messagebox to return a variable Pin
Glen Harvy20-Feb-07 1:35
Glen Harvy20-Feb-07 1:35 
AnswerRe: Messagebox to return a variable Pin
PandemoniumPasha19-Feb-07 22:52
PandemoniumPasha19-Feb-07 22:52 
GeneralRe: Messagebox to return a variable Pin
Christian Graus19-Feb-07 22:55
protectorChristian Graus19-Feb-07 22:55 
GeneralRe: Messagebox to return a variable [modified] Pin
Glen Harvy20-Feb-07 1:36
Glen Harvy20-Feb-07 1:36 
Questiona query Pin
Nekshan19-Feb-07 22:36
Nekshan19-Feb-07 22:36 
AnswerRe: a query Pin
PandemoniumPasha19-Feb-07 22:48
PandemoniumPasha19-Feb-07 22:48 
AnswerRe: a query Pin
Christian Graus19-Feb-07 22:54
protectorChristian Graus19-Feb-07 22:54 
GeneralRe: a query Pin
V.19-Feb-07 23:49
professionalV.19-Feb-07 23:49 
GeneralRe: a query Pin
Colin Angus Mackay19-Feb-07 23:50
Colin Angus Mackay19-Feb-07 23:50 
GeneralRe: a query Pin
Christian Graus20-Feb-07 10:59
protectorChristian Graus20-Feb-07 10:59 
AnswerRe: a query Pin
virendra patel19-Feb-07 22:56
virendra patel19-Feb-07 22:56 
GeneralRe: a query Pin
V.19-Feb-07 23:48
professionalV.19-Feb-07 23:48 
GeneralRe: a query Pin
Christian Graus20-Feb-07 11:03
protectorChristian Graus20-Feb-07 11:03 
GeneralRe: a query Pin
V.20-Feb-07 20:04
professionalV.20-Feb-07 20:04 

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.