Click here to Skip to main content
15,913,083 members
Home / Discussions / C#
   

C#

 
QuestionPDA start up page Pin
AhsanS10-Jun-06 1:13
AhsanS10-Jun-06 1:13 
Questionhow to select all table names Pin
cellardoor071610-Jun-06 0:32
cellardoor071610-Jun-06 0:32 
AnswerRe: how to select all table names Pin
albCode10-Jun-06 0:46
albCode10-Jun-06 0:46 
GeneralRe: how to select all table names Pin
cellardoor071610-Jun-06 0:49
cellardoor071610-Jun-06 0:49 
GeneralRe: how to select all table names Pin
albCode10-Jun-06 0:52
albCode10-Jun-06 0:52 
QuestioncomboBox Pin
andrei_dalcu10-Jun-06 0:02
andrei_dalcu10-Jun-06 0:02 
AnswerRe: comboBox Pin
albCode10-Jun-06 0:14
albCode10-Jun-06 0:14 
AnswerRe: comboBox Pin
Nafiseh Salmani10-Jun-06 22:49
Nafiseh Salmani10-Jun-06 22:49 
use:

private void Form2_Load(object sender, System.EventArgs e)<br />
{<br />
Authors authors = new Authors();<br />
DataTable Name;<br />
Name=authors.find_AuthorsName_all(connection.make());<br />
<br />
//cmb_AuthorName is my combobox<br />
<br />
cmb_AuthorName.DataSource=Name;<br />
cmb_AuthorName.DisplayMember="name";<br />
cmb_AuthorName.ValueMember="id";<br />
}


Author class:

<br />
public class Authors<br />
{<br />
OleDbConnection con;<br />
OleDbCommand cmd;<br />
<br />
public DataTable find_AuthorsName_all(string cnstring)<br />
{<br />
con=new OleDbConnection(cnstring);<br />
			<br />
			<br />
try<br />
{<br />
				<br />
con.Open();<br />
string cmdstr="select id,name from Authors ";<br />
cmd=new OleDbCommand(cmdstr,con);<br />
cmd.CommandType=CommandType.Text;<br />
OleDbDataAdapter adp=new OleDbDataAdapter(cmd);<br />
DataTable dt =new DataTable("Authors");<br />
adp.Fill(dt);<br />
con.Close();<br />
return dt;<br />
}<br />
catch(Exception ex)<br />
{<br />
 MessageBox.Show(ex.Message);<br />
 con.Close();<br />
 return null;<br />
}<br />
          <br />
		<br />
}<br />
}<br />

QuestionOpen/Save word documen in the server Pin
Member 22716559-Jun-06 22:08
Member 22716559-Jun-06 22:08 
AnswerRe: Open/Save word documen in the server Pin
Guffa9-Jun-06 23:22
Guffa9-Jun-06 23:22 
Questionradio button in windows form..urgt plzz.. Pin
r_e_h_a_n9-Jun-06 20:09
r_e_h_a_n9-Jun-06 20:09 
AnswerRe: radio button in windows form..urgt plzz.. Pin
Christian Graus9-Jun-06 20:36
protectorChristian Graus9-Jun-06 20:36 
AnswerRe: radio button in windows form..urgt plzz.. Pin
malikjhangirahmed@hotmail.com10-Jun-06 8:53
malikjhangirahmed@hotmail.com10-Jun-06 8:53 
QuestionSmall Question about Remoting Pin
Alexandr Sergeevich Ilyin9-Jun-06 19:49
Alexandr Sergeevich Ilyin9-Jun-06 19:49 
QuestionIssue with ClickOnce and publishing to a http site Pin
Raffi Basmajian9-Jun-06 19:18
Raffi Basmajian9-Jun-06 19:18 
AnswerRe: Issue with ClickOnce and publishing to a http site Pin
g00fyman10-Jun-06 15:19
g00fyman10-Jun-06 15:19 
GeneralRe: Issue with ClickOnce and publishing to a http site Pin
Raffi Basmajian10-Jun-06 16:31
Raffi Basmajian10-Jun-06 16:31 
QuestionInserting BLOB into MySQL using ODBC in C# Pin
nagramana9-Jun-06 19:15
nagramana9-Jun-06 19:15 
Questionsolution tree access + custom project [modified] Pin
g00fyman9-Jun-06 17:03
g00fyman9-Jun-06 17:03 
AnswerRe: solution tree access + custom project Pin
Ed.Poore10-Jun-06 3:32
Ed.Poore10-Jun-06 3:32 
GeneralRe: solution tree access + custom project Pin
g00fyman10-Jun-06 15:17
g00fyman10-Jun-06 15:17 
GeneralRe: solution tree access + custom project Pin
Ed.Poore10-Jun-06 20:59
Ed.Poore10-Jun-06 20:59 
QuestionSwitch algorithm Pin
S.M.9-Jun-06 14:15
S.M.9-Jun-06 14:15 
QuestionDatabase without Server with C# Pin
error14089-Jun-06 12:03
error14089-Jun-06 12:03 
AnswerRe: Database without Server with C# Pin
Ravi Bhavnani9-Jun-06 12:12
professionalRavi Bhavnani9-Jun-06 12:12 

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.