Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help for dll Pin
sumit703425-Jun-08 1:07
sumit703425-Jun-08 1:07 
GeneralRe: Help for dll Pin
Christian Graus25-Jun-08 1:38
protectorChristian Graus25-Jun-08 1:38 
Questionapp.config Pin
Jay Royall24-Jun-08 23:03
Jay Royall24-Jun-08 23:03 
AnswerRe: app.config Pin
Christian Graus24-Jun-08 23:36
protectorChristian Graus24-Jun-08 23:36 
AnswerRe: app.config Pin
SteveNY25-Jun-08 4:28
SteveNY25-Jun-08 4:28 
AnswerRe: app.config Pin
Marek Grzenkowicz25-Jun-08 4:30
Marek Grzenkowicz25-Jun-08 4:30 
AnswerRe: app.config Pin
Mycroft Holmes26-Jun-08 17:10
professionalMycroft Holmes26-Jun-08 17:10 
QuestionCheckListBox binding to an Excel Spreadsheet Pin
Tazy24-Jun-08 22:41
Tazy24-Jun-08 22:41 
Good Morning All,

I have a question that I'm hoping someone out there maybe able to help me with. I'm trying to bind a CheckListBox to an Excel spreadsheet that has two columns of data. IPAddress & SystemName. I am new to programming and have only been able to get this fare. If anyone could help, you have my sincere thanks.

Tazy

Private m_sConn2 As String = "Provider=Microsoft.Jet.OLEDB.4.0;data source='C:\IPMonitoringTable.xls';Extended Properties=Excel 8.0"

Public Sub Retrieve_Records()

Dim conn As New OleDbConnection(m_sConn2)
Dim ExcelData As String
Dim i As Integer

conn.Open()

Dim da As New OleDbDataAdapter("Select IPAddress, SystemName, SysDate, SysTime, UserID from [IpAddrMonitor$]", conn)
Dim ds As DataSet = New DataSet

Try

da.Fill(ds)
CheckedListBox1.DataSource = ds
CheckedListBox1.DisplayMember = ds.Tables(0).TableName

'MsgBox(CheckedListBox1.Items(0).ToString) 'This didn't work
'MsgBox(CheckedListBox1.Items.Item(i).ToString()) 'Nor This

Me.Refresh()

Catch OleDbExceptionErr As OleDbException
MsgBox(OleDbExceptionErr.Message)
End Try

conn.Close()
AnswerRe: CheckListBox binding to an Excel Spreadsheet Pin
Christian Graus24-Jun-08 23:04
protectorChristian Graus24-Jun-08 23:04 
GeneralRe: CheckListBox binding to an Excel Spreadsheet Pin
Tazy25-Jun-08 0:55
Tazy25-Jun-08 0:55 
GeneralRe: CheckListBox binding to an Excel Spreadsheet Pin
Christian Graus25-Jun-08 1:01
protectorChristian Graus25-Jun-08 1:01 
AnswerRe: CheckListBox binding to an Excel Spreadsheet Pin
Ashfield24-Jun-08 23:06
Ashfield24-Jun-08 23:06 
GeneralRe: CheckListBox binding to an Excel Spreadsheet Pin
Tazy25-Jun-08 0:19
Tazy25-Jun-08 0:19 
GeneralRe: CheckListBox binding to an Excel Spreadsheet Pin
Christian Graus25-Jun-08 0:25
protectorChristian Graus25-Jun-08 0:25 
GeneralRe: CheckListBox binding to an Excel Spreadsheet Pin
Ashfield25-Jun-08 1:22
Ashfield25-Jun-08 1:22 
QuestionConnect to webserver using socket Pin
ne0h24-Jun-08 21:14
ne0h24-Jun-08 21:14 
AnswerRe: Connect to webserver using socket Pin
Christian Graus24-Jun-08 21:47
protectorChristian Graus24-Jun-08 21:47 
GeneralRe: Connect to webserver using socket Pin
ne0h24-Jun-08 23:14
ne0h24-Jun-08 23:14 
Questionhow to deploy windows application in c# or vb Pin
Amit Agarrwal24-Jun-08 20:07
Amit Agarrwal24-Jun-08 20:07 
AnswerRe: how to deploy windows application in c# or vb Pin
Ashfield24-Jun-08 21:08
Ashfield24-Jun-08 21:08 
AnswerRe: how to deploy windows application in c# or vb Pin
Christian Graus24-Jun-08 21:46
protectorChristian Graus24-Jun-08 21:46 
GeneralRe: how to deploy windows application in c# or vb Pin
Amit Agarrwal24-Jun-08 22:35
Amit Agarrwal24-Jun-08 22:35 
GeneralRe: how to deploy windows application in c# or vb Pin
Christian Graus24-Jun-08 23:00
protectorChristian Graus24-Jun-08 23:00 
GeneralRe: how to deploy windows application in c# or vb Pin
led mike8-Jul-08 9:12
led mike8-Jul-08 9:12 
QuestionAdding to table with variying record count [modified] Pin
kjalandoon24-Jun-08 18:37
kjalandoon24-Jun-08 18:37 

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.