Click here to Skip to main content
15,910,980 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Exporting data into XL Pin
Steven J Jowett22-Aug-07 23:51
Steven J Jowett22-Aug-07 23:51 
QuestionHow to perform different actions with one handler Pin
Amer Rehman22-Aug-07 21:37
Amer Rehman22-Aug-07 21:37 
AnswerRe: How to perform different actions with one handler Pin
Luc Pattyn23-Aug-07 1:19
sitebuilderLuc Pattyn23-Aug-07 1:19 
AnswerRe: How to perform different actions with one handler Pin
Dave Kreskowiak23-Aug-07 3:35
mveDave Kreskowiak23-Aug-07 3:35 
Questionhow can i display data in listbox? Pin
Rharzkie22-Aug-07 21:33
Rharzkie22-Aug-07 21:33 
AnswerRe: how can i display data in listbox? Pin
enmahdi22-Aug-07 22:02
enmahdi22-Aug-07 22:02 
Questionhow i can fetch list box with Names vb. net? Pin
RaveRare22-Aug-07 20:59
RaveRare22-Aug-07 20:59 
AnswerRe: how i can fetch list box with Names vb. net? Pin
Michael Sync22-Aug-07 21:34
Michael Sync22-Aug-07 21:34 
http://msdn2.microsoft.com/en-us/library/haa3afyz(VS.71).aspx

Try like that.
OleDbConnection nwindConn = new OleDbConnection("Provider=MSDataShape;Data Provider=SQLOLEDB;" +<br />
                                                "Data Source=localhost;Integrated Security=SSPI;Initial Catalog=northwind");<br />
<br />
OleDbCommand custCMD = new OleDbCommand("SELECT Name from STUDENT", nwindConn);<br />
nwindConn.Open();<br />
<br />
OleDbDataReader custReader = custCMD.ExecuteReader();<br />
<br />
<br />
while (custReader.Read())<br />
{<br />
  <br />
  Listbox1.AddItem(custReader.GetString(1) = CompanyName);<br />
<br />
  <br />
}<br />
<br />
custReader.Close();<br />
nwindConn.Close();



do searching a lit bit. man.... there are a lot of examples about how to populate the data into listbox in web or our forum....

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

GeneralRe: how i can fetch list box with Names vb. net? Pin
RaveRare22-Aug-07 22:40
RaveRare22-Aug-07 22:40 
GeneralRe: how i can fetch list box with Names vb. net? Pin
Michael Sync22-Aug-07 23:34
Michael Sync22-Aug-07 23:34 
QuestionHow to decode mail attachment [modified] Pin
rahul.net1122-Aug-07 20:43
rahul.net1122-Aug-07 20:43 
Questionfind the control char in a string Pin
eyes200722-Aug-07 20:33
eyes200722-Aug-07 20:33 
AnswerRe: find the control char in a string Pin
Johan Hakkesteegt23-Aug-07 1:31
Johan Hakkesteegt23-Aug-07 1:31 
Questioninstall mysql Pin
praveenkumar_mca22-Aug-07 20:01
praveenkumar_mca22-Aug-07 20:01 
AnswerRe: install mysql Pin
plural22-Aug-07 22:59
plural22-Aug-07 22:59 
QuestionExport Data in MS EXCEL Pin
Wlink22-Aug-07 19:50
Wlink22-Aug-07 19:50 
AnswerRe: Export Data in MS EXCEL Pin
Michael Sync22-Aug-07 20:33
Michael Sync22-Aug-07 20:33 
GeneralRe: Export Data in MS EXCEL Pin
Wlink22-Aug-07 21:02
Wlink22-Aug-07 21:02 
QuestionRead a Excel File using Vb6.0 Pin
jamesrajesh22-Aug-07 18:36
jamesrajesh22-Aug-07 18:36 
AnswerRe: Read a Excel File using Vb6.0 Pin
Paul Conrad26-Aug-07 9:27
professionalPaul Conrad26-Aug-07 9:27 
Questionhow to read header information of any file Pin
San@Coding22-Aug-07 17:12
San@Coding22-Aug-07 17:12 
AnswerRe: how to read header information of any file Pin
Dave Kreskowiak23-Aug-07 3:17
mveDave Kreskowiak23-Aug-07 3:17 
Questionhow to make a file password protected ????? Pin
San@Coding22-Aug-07 17:08
San@Coding22-Aug-07 17:08 
AnswerRe: how to make a file password protected ????? Pin
Dave Kreskowiak23-Aug-07 3:16
mveDave Kreskowiak23-Aug-07 3:16 
QuestionSystem.ExecutionEngineException Pin
dimuthuvbnet22-Aug-07 15:40
dimuthuvbnet22-Aug-07 15:40 

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.