Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Best ADO.NET Connection scope in Web Service Pin
GoodID18-Feb-07 23:11
GoodID18-Feb-07 23:11 
GeneralRe: Best ADO.NET Connection scope in Web Service Pin
Colin Angus Mackay19-Feb-07 1:37
Colin Angus Mackay19-Feb-07 1:37 
GeneralRe: Best ADO.NET Connection scope in Web Service Pin
GoodID19-Feb-07 15:56
GoodID19-Feb-07 15:56 
Questiondouble click on datagrid and fill in related fields on main form form Pin
7prince15-Feb-07 15:51
7prince15-Feb-07 15:51 
AnswerRe: double click on datagrid and fill in related fields on main form form Pin
priya_p23315-Feb-07 18:00
priya_p23315-Feb-07 18:00 
GeneralRe: double click on datagrid and fill in related fields on main form form Pin
7prince15-Feb-07 19:09
7prince15-Feb-07 19:09 
GeneralRe: double click on datagrid and fill in related fields on main form form Pin
priya_p23315-Feb-07 21:39
priya_p23315-Feb-07 21:39 
GeneralRe: double click on datagrid and fill in related fields on main form form Pin
7prince16-Feb-07 5:27
7prince16-Feb-07 5:27 
Hi,

thank you for your help. It is going good. I am almost done with my application except the one that I am asking.

yes. all the fields are textboxes on the main form. I am getting this error when I click on the one of the datagrid cells.

Unable to cast object of type 'System.String' to type 'System.Windows.Forms.TextBox'.

here is my code:

Private Sub FSSCallerRecordsDataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles FSSCallerRecordsDataGridView.CellContentClick

Form3.HospitalNumberTextBox = FSSCallerRecordsDataGridView.Item(5, e.RowIndex).Value

P.S. Form3 is the main form. And the reason I wrote Item(5) is that Hospital number on the datagrid is column number 5. (is it correct)

*****Is it necessary I can email you the project?

thanks, joseph

programmer

GeneralRe: double click on datagrid and fill in related fields on main form form Pin
TwoFaced16-Feb-07 7:04
TwoFaced16-Feb-07 7:04 
Questionnewby on VB.net older on programming Pin
NMachado15-Feb-07 15:11
NMachado15-Feb-07 15:11 
AnswerRe: newby on VB.net older on programming Pin
Christian Graus15-Feb-07 17:57
protectorChristian Graus15-Feb-07 17:57 
AnswerRe: newby on VB.net older on programming [modified] Pin
Ricky Dean15-Feb-07 22:28
Ricky Dean15-Feb-07 22:28 
AnswerRe: newby on VB.net older on programming Pin
NMachado17-Feb-07 4:58
NMachado17-Feb-07 4:58 
Questionproblems with extracting selection from databound comboboxes Pin
rctriplane15-Feb-07 14:30
rctriplane15-Feb-07 14:30 
AnswerRe: problems with extracting selection from databound comboboxes Pin
priya_p23315-Feb-07 18:13
priya_p23315-Feb-07 18:13 
GeneralRe: problems with extracting selection from databound comboboxes Pin
rctriplane16-Feb-07 0:20
rctriplane16-Feb-07 0:20 
GeneralRe: problems with extracting selection from databound comboboxes Pin
rctriplane16-Feb-07 15:52
rctriplane16-Feb-07 15:52 
QuestionScreen Saver Preview in VB.NET Pin
Tom Verkaaik15-Feb-07 13:14
Tom Verkaaik15-Feb-07 13:14 
Questionobject reference Pin
jds120715-Feb-07 10:56
jds120715-Feb-07 10:56 
AnswerRe: object reference Pin
TwoFaced15-Feb-07 11:17
TwoFaced15-Feb-07 11:17 
QuestionTable named "Note" Pin
matryxxx15-Feb-07 9:11
matryxxx15-Feb-07 9:11 
AnswerRe: Table named "Note" Pin
Christian Graus15-Feb-07 9:31
protectorChristian Graus15-Feb-07 9:31 
GeneralRe: Table named "Note" Pin
matryxxx15-Feb-07 9:37
matryxxx15-Feb-07 9:37 
GeneralRe: Table named "Note" Pin
Dave Kreskowiak15-Feb-07 13:12
mveDave Kreskowiak15-Feb-07 13:12 
Questionediting attachment before sending it Pin
7prince15-Feb-07 5:35
7prince15-Feb-07 5:35 

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.