Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
AnswerRe: dll function Pin
ThatsAlok2-May-10 20:15
ThatsAlok2-May-10 20:15 
GeneralRe: dll function Pin
Member 5903102-May-10 20:19
Member 5903102-May-10 20:19 
GeneralRe: dll function Pin
Calla2-May-10 22:24
Calla2-May-10 22:24 
GeneralRe: dll function Pin
Abdul Rahman Hamidy2-May-10 22:39
Abdul Rahman Hamidy2-May-10 22:39 
GeneralRe: dll function Pin
ThatsAlok3-May-10 3:14
ThatsAlok3-May-10 3:14 
QuestionActive directory Group Enabled or Not Pin
Tiger4562-May-10 18:22
Tiger4562-May-10 18:22 
AnswerRe: Active directory Group Enabled or Not Pin
Michel Godfroid2-May-10 19:06
Michel Godfroid2-May-10 19:06 
QuestionNeed help on c# please Pin
kibr9872-May-10 13:34
kibr9872-May-10 13:34 
Hi,

I need help please on the following issue. I have got a combo box on the form and I am trying to show the member of the access data field collumn called 'user'. When i run the program, I can't see any thing in the combobox. I don't know what I am doing wrong here. Here are my codes.

Thanks in advance.

<br />
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)<br />
        {<br />
            OleDbConnection conn = new OleDbConnection((@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\riad\c#\test\test.mdb"));<br />
            conn.Open();<br />
            OleDbCommand cmd = new OleDbCommand();<br />
            cmd.Connection = conn;<br />
            OleDbDataAdapter adp = new OleDbDataAdapter("SELECT * FROM test",conn);<br />
            DataSet ds = new DataSet();<br />
            adp.Fill(ds);<br />
            comboBox1.DataSource = ds.Tables[0].DefaultView;<br />
            comboBox1.DisplayMember = "user";<br />
            comboBox1.ValueMember = "user";<br />
<br />
            cmd.ExecuteNonQuery();<br />
<br />
            conn.Close();<br />
<br />
<br />
        }<br />

AnswerRe: Need help on c# please Pin
Luc Pattyn2-May-10 13:49
sitebuilderLuc Pattyn2-May-10 13:49 
QuestionBest way to access a database Pin
Terence van Schalkwyk2-May-10 9:09
Terence van Schalkwyk2-May-10 9:09 
AnswerRe: Best way to access a database [modified] Pin
PIEBALDconsult2-May-10 9:35
mvePIEBALDconsult2-May-10 9:35 
AnswerRe: Best way to access a database [modified] Pin
Pete O'Hanlon2-May-10 9:52
mvePete O'Hanlon2-May-10 9:52 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 9:56
mvePIEBALDconsult2-May-10 9:56 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 10:10
mvePete O'Hanlon2-May-10 10:10 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 10:29
mvePIEBALDconsult2-May-10 10:29 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 10:33
mvePete O'Hanlon2-May-10 10:33 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 10:53
mvePIEBALDconsult2-May-10 10:53 
GeneralRe: Best way to access a database Pin
Terence van Schalkwyk2-May-10 20:01
Terence van Schalkwyk2-May-10 20:01 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 20:38
mvePete O'Hanlon2-May-10 20:38 
GeneralRe: Best way to access a database Pin
Terence van Schalkwyk2-May-10 20:58
Terence van Schalkwyk2-May-10 20:58 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 21:21
mvePete O'Hanlon2-May-10 21:21 
QuestionRe: Best way to access a database [modified] Pin
Terence van Schalkwyk2-May-10 23:37
Terence van Schalkwyk2-May-10 23:37 
AnswerRe: Best way to access a database Pin
Pete O'Hanlon3-May-10 2:33
mvePete O'Hanlon3-May-10 2:33 
Questionimage protect Pin
hameduser2-May-10 4:40
hameduser2-May-10 4:40 
AnswerRe: image protect Pin
Dave Kreskowiak2-May-10 5:51
mveDave Kreskowiak2-May-10 5:51 

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.