Click here to Skip to main content
15,915,795 members
Home / Discussions / C#
   

C#

 
AnswerRe: about the linked subreport parameter in c#2005 Pin
mctramp16810-Jul-08 14:37
mctramp16810-Jul-08 14:37 
QuestionMaster to content Pin
Agweet9-Jul-08 1:33
Agweet9-Jul-08 1:33 
AnswerRe: Master to content Pin
leppie9-Jul-08 1:55
leppie9-Jul-08 1:55 
GeneralRe: Master to content Pin
Agweet9-Jul-08 2:04
Agweet9-Jul-08 2:04 
QuestionDynamic rows Pin
karthave9-Jul-08 1:25
karthave9-Jul-08 1:25 
AnswerRe: Dynamic rows Pin
Christian Graus9-Jul-08 1:27
protectorChristian Graus9-Jul-08 1:27 
QuestionRegarding textboxes editibility Pin
tasumisra9-Jul-08 1:17
tasumisra9-Jul-08 1:17 
AnswerRe: Regarding textboxes editibility Pin
tasumisra9-Jul-08 1:25
tasumisra9-Jul-08 1:25 
AnswerRe: Regarding textboxes editibility Pin
Christian Graus9-Jul-08 1:26
protectorChristian Graus9-Jul-08 1:26 
QuestionMergeing On-Click events in Code-Behind Pin
imnotso#9-Jul-08 0:50
imnotso#9-Jul-08 0:50 
AnswerRe: Mergeing On-Click events in Code-Behind Pin
Christian Graus9-Jul-08 1:27
protectorChristian Graus9-Jul-08 1:27 
GeneralRe: Mergeing On-Click events in Code-Behind Pin
imnotso#9-Jul-08 3:10
imnotso#9-Jul-08 3:10 
QuestionGetting machinename and their IP of a Lan [modified] Pin
Mogaambo9-Jul-08 0:34
Mogaambo9-Jul-08 0:34 
AnswerRe: Getting machinename and their IP of a Lan Pin
leppie9-Jul-08 2:00
leppie9-Jul-08 2:00 
GeneralRe: Getting machinename and their IP of a Lan Pin
Mogaambo9-Jul-08 2:47
Mogaambo9-Jul-08 2:47 
Questioncan not load mscorwks.dll? Pin
George_George9-Jul-08 0:11
George_George9-Jul-08 0:11 
AnswerRe: can not load mscorwks.dll? Pin
leppie9-Jul-08 1:31
leppie9-Jul-08 1:31 
GeneralRe: can not load mscorwks.dll? Pin
George_George9-Jul-08 22:00
George_George9-Jul-08 22:00 
QuestionDatagridview Pin
benjamin yap8-Jul-08 23:48
benjamin yap8-Jul-08 23:48 
AnswerRe: Datagridview Pin
leppie9-Jul-08 0:07
leppie9-Jul-08 0:07 
GeneralRe: Datagridview Pin
benjamin yap9-Jul-08 0:34
benjamin yap9-Jul-08 0:34 
AnswerRe: Datagridview Pin
benjymous9-Jul-08 1:30
benjymous9-Jul-08 1:30 
GeneralRe: Datagridview Pin
benjamin yap9-Jul-08 2:02
benjamin yap9-Jul-08 2:02 
QuestionGrid Combo Un-Select Pin
Syed Shahid Hussain8-Jul-08 23:36
Syed Shahid Hussain8-Jul-08 23:36 
QuestionCombobox problem Pin
Vibin Venugopal8-Jul-08 23:30
Vibin Venugopal8-Jul-08 23:30 
HI,
Am trying to retreive some data into the Visual Studio C#.net (Winforms) combobox from a access database, but when i run it, i get only the first record, Please help me out.

Thanks

Vibin



private void Form2_Load(object sender, System.EventArgs e)
{
int count=0, b=0;
try
{
con=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\\JET PRINT LIMITED\\JET PRINT LIMITED.mdb");
da=new OleDbDataAdapter("select * from STOCKDET",con);
con.Open();
ds=new DataSet();
da.Fill(ds,"STOCKDET");

comm.Connection=con;
comm.CommandType=CommandType.Text;

da=new OleDbDataAdapter(comm);
dr=ds.Tables [0].Rows [b];
comboBox1.Items.Add (dr[1].ToString());





MessageBox.Show("data into Combobox successfuly!!!");

MessageBox.Show("Connected successfuly!!!");



}
catch(Exception k)
{
MessageBox.Show(k.Message);
}
}

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.