Click here to Skip to main content
15,905,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionStart windows app from windows service Pin
drodriguez15-Feb-06 1:38
drodriguez15-Feb-06 1:38 
AnswerRe: Start windows app from windows service Pin
albertino callientes15-Feb-06 7:18
albertino callientes15-Feb-06 7:18 
Joke[Message Deleted] Pin
Hari Om Prakash Sharma15-Feb-06 0:19
Hari Om Prakash Sharma15-Feb-06 0:19 
AnswerRe: How to show icon keeping flat style=system on button? Pin
Dave Kreskowiak15-Feb-06 7:44
mveDave Kreskowiak15-Feb-06 7:44 
AnswerRe: How to show icon keeping flat style=system on button? Pin
Joshua Quick15-Feb-06 8:28
Joshua Quick15-Feb-06 8:28 
QuestionCrystal Reports Pin
Mfirdous15-Feb-06 0:00
Mfirdous15-Feb-06 0:00 
QuestionDiscussing coding style of non-fixed length Multi-dimension Array Pin
cylix200014-Feb-06 22:50
cylix200014-Feb-06 22:50 
AnswerRe: Discussing coding style of non-fixed length Multi-dimension Array Pin
Guffa15-Feb-06 3:01
Guffa15-Feb-06 3:01 
AnswerRe: Discussing coding style of non-fixed length Multi-dimension Array Pin
Qhalis15-Feb-06 9:46
Qhalis15-Feb-06 9:46 
QuestionHow can I auto-populate two MS Word document fields (customer name) and (address) Pin
kenn_rosie14-Feb-06 20:36
kenn_rosie14-Feb-06 20:36 
Questionaccess vb Pin
_tasleem14-Feb-06 20:00
_tasleem14-Feb-06 20:00 
AnswerRe: access vb Pin
Joshua Quick15-Feb-06 8:19
Joshua Quick15-Feb-06 8:19 
AnswerRe: access vb Pin
Dave Kreskowiak15-Feb-06 8:41
mveDave Kreskowiak15-Feb-06 8:41 
QuestionSearching a Dataset in VB.Net Pin
mayhem_rules14-Feb-06 17:41
mayhem_rules14-Feb-06 17:41 
AnswerRe: Searching a Dataset in VB.Net Pin
alien viper14-Feb-06 17:55
alien viper14-Feb-06 17:55 
GeneralRe: Searching a Dataset in VB.Net Pin
mayhem_rules14-Feb-06 18:10
mayhem_rules14-Feb-06 18:10 
GeneralRe: Searching a Dataset in VB.Net Pin
alien viper14-Feb-06 20:28
alien viper14-Feb-06 20:28 
This is example.

Private Sub FillDataGrid()

Dim strId As String = "" 'Set Id
Dim strPeriod As String = "" 'Set Period
Dim tableName As String = "" 'Set tableName
Dim connstring As String = "" 'Set ConnectionString

Dim selectSQL As String = "SELECT * FROM " + tableName + " WHERE [ID]='" + strId + "' AND Period='" + strPeriod + "'"

Dim conn As New OleDb.OleDbConnection(connstring)
Dim cmd As New OleDb.OleDbCommand(selectSQL, conn)

Dim ds As New DataSet
Dim da As New OleDb.OleDbDataAdapter(cmd)

Try
conn.Open()
da.Fill(ds)
DataGrid1.DataSource = ds.Tables(0)
Catch ex As Exception
MessageBox.Show(ex.Message, ex.Source)
Finally
If conn.State = ConnectionState.Open Then
conn.Close()
end if
conn.Dispose()
cmd.Dispose()
End Try
End Sub


!alien!
GeneralRe: Searching a Dataset in VB.Net Pin
shiroamachi14-Feb-06 21:44
shiroamachi14-Feb-06 21:44 
GeneralRe: Searching a Dataset in VB.Net Pin
mayhem_rules14-Feb-06 22:06
mayhem_rules14-Feb-06 22:06 
QuestionFax Event is not fired in VB.NET for incoming fax Pin
dashprasannajit14-Feb-06 17:37
dashprasannajit14-Feb-06 17:37 
AnswerRe: Fax Event is not fired in VB.NET for incoming fax Pin
Dave Kreskowiak15-Feb-06 4:46
mveDave Kreskowiak15-Feb-06 4:46 
QuestionHow to draw a picture on the titlebar? Pin
Chatura Dilan14-Feb-06 16:39
Chatura Dilan14-Feb-06 16:39 
AnswerRe: How to draw a picture on the titlebar? Pin
vivek132315-Feb-06 0:14
vivek132315-Feb-06 0:14 
GeneralRe: How to draw a picture on the titlebar? Pin
Chatura Dilan15-Feb-06 13:39
Chatura Dilan15-Feb-06 13:39 
Questiondata synchronization between PXE server Pin
andylimjp14-Feb-06 15:41
andylimjp14-Feb-06 15:41 

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.