Click here to Skip to main content
15,897,891 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: ListView control Pin
CodingYoshi5-Feb-07 6:02
CodingYoshi5-Feb-07 6:02 
QuestionHow to get members of type found through reflection Pin
cstrader2322-Feb-07 12:37
cstrader2322-Feb-07 12:37 
AnswerRe: How to get members of type found through reflection Pin
Colin Angus Mackay2-Feb-07 14:44
Colin Angus Mackay2-Feb-07 14:44 
GeneralRe: How to get members of type found through reflection Pin
cstrader2322-Feb-07 17:35
cstrader2322-Feb-07 17:35 
GeneralRe: How to get members of type found through reflection Pin
cstrader2324-Feb-07 4:04
cstrader2324-Feb-07 4:04 
QuestionCrystal Report Error when Running VB6.0 Application with .net Application Pin
Ali 1102-Feb-07 2:55
Ali 1102-Feb-07 2:55 
AnswerRe: Crystal Report Error when Running VB6.0 Application with .net Application Pin
aransiola2-Feb-07 3:58
aransiola2-Feb-07 3:58 
QuestionPlease Help me....Small doubt on comboBox of datagridview Pin
priya_p2332-Feb-07 2:51
priya_p2332-Feb-07 2:51 
hi everyone,
please tell me wht shuld i do?
i m developing application in vb.net(winforms)
On my edit button i want to fill datagridview from taking all records in data,
but when i m going to insert data into combobox it will give me handle dataerror Event.
i wrote following code on Edit button click.


cmd = New MySqlCommand("SELECT t.ID, t.CustID, Project, Task, t.Monday, t.Tuesday, t.Wednesday, t.Thursday, " & _
" t.Friday, t.Total , c.CustName FROM timesheet_details t, cust_mast c WHERE c.CustID = t.CustID " & _
" and id=" & txtID.Text & ";", conn)
reader = cmd.ExecuteReader()
i = 0
Dim j As Integer
j = 0
Do While reader.Read()
j += 1
Loop
reader.Close()

DGTimeSheet.Columns.Clear()
DGTimeSheet.ColumnCount = 6
DGTimeSheet_Design()
DGTimeSheet.RowCount = j

reader = cmd.ExecuteReader()
While reader.Read()

MsgBox(reader(2))
MsgBox(reader(3))
CmbCellProj.AutoComplete = True

DGTimeSheet..Item(1, i).Value= CStr(reader(3)) ''Task
DGTimeSheet.Item(1, i).Value = reader(1) ''Project
DGTimeSheet.Item(3, i).Value = reader(4)
DGTimeSheet.Item(4, i).Value = reader(5)
DGTimeSheet.Item(5, i).Value = reader(6)
DGTimeSheet.Item(6, i).Value = reader(7)
DGTimeSheet.Item(7, i).Value = reader(8)
DGTimeSheet.Item(8, i).Value = reader(9) ''Total
DGTimeSheet.Item(0, i).Value = reader(10) ''CustName
''DGTimeSheet.Item(1, i).Selected = True
DGTimeSheet.Item(0, 0).Style.DataSourceNullValue = reader(2)
i = i + 1

End While

reader.Close()

--Thanks in advance for help

priya

AnswerRe: Please Help me....Small doubt on comboBox of datagridview Pin
Guffa2-Feb-07 5:46
Guffa2-Feb-07 5:46 
QuestionGetting the name of an instance Pin
edmonson2-Feb-07 0:34
edmonson2-Feb-07 0:34 
AnswerRe: Getting the name of an instance Pin
testy_proconsul2-Feb-07 1:20
testy_proconsul2-Feb-07 1:20 
QuestionHow can insert a ocx control in word document? Pin
Kumar Arun1-Feb-07 23:12
Kumar Arun1-Feb-07 23:12 
QuestionExporting to Excel Pin
Dayekh1-Feb-07 22:47
Dayekh1-Feb-07 22:47 
AnswerRe: Exporting to Excel Pin
Hari Om Prakash Sharma2-Feb-07 1:03
Hari Om Prakash Sharma2-Feb-07 1:03 
AnswerRe: Exporting to Excel Pin
testy_proconsul2-Feb-07 1:23
testy_proconsul2-Feb-07 1:23 
QuestionHelp Regarding Propertygrid Pin
sandipan.neogi@gmail.com1-Feb-07 22:31
sandipan.neogi@gmail.com1-Feb-07 22:31 
AnswerRe: Help Regarding Propertygrid Pin
Pete O'Hanlon1-Feb-07 22:42
mvePete O'Hanlon1-Feb-07 22:42 
AnswerRe: Help Regarding Propertygrid Pin
xstoneheartx1-Feb-07 23:06
xstoneheartx1-Feb-07 23:06 
AnswerRe: Help Regarding Propertygrid Pin
sandipan.neogi@gmail.com1-Feb-07 23:33
sandipan.neogi@gmail.com1-Feb-07 23:33 
QuestionText box Pin
rrrriiizz1-Feb-07 22:18
rrrriiizz1-Feb-07 22:18 
AnswerRe: Text box Pin
xstoneheartx1-Feb-07 22:37
xstoneheartx1-Feb-07 22:37 
AnswerRe: Text box Pin
Syed Ali Raza2-Feb-07 1:18
Syed Ali Raza2-Feb-07 1:18 
AnswerRe: Text box Pin
Johan Hakkesteegt2-Feb-07 3:23
Johan Hakkesteegt2-Feb-07 3:23 
GeneralRe: Text box Pin
rrrriiizz2-Feb-07 17:25
rrrriiizz2-Feb-07 17:25 
QuestionHow to Insert data from Blob field to Oracle Database Pin
Syed Ali Raza1-Feb-07 19:22
Syed Ali Raza1-Feb-07 19:22 

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.