Click here to Skip to main content
15,918,193 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question[Message Deleted] Pin
AJAYWVK8729-Jul-08 0:26
AJAYWVK8729-Jul-08 0:26 
AnswerRe: Can i trap crystal report pop up msg in vb 6.0 Pin
Vimalsoft(Pty) Ltd29-Jul-08 1:48
professionalVimalsoft(Pty) Ltd29-Jul-08 1:48 
QuestionArray trouble Pin
tatchung28-Jul-08 22:47
tatchung28-Jul-08 22:47 
AnswerRe: Array trouble Pin
paas29-Jul-08 0:40
paas29-Jul-08 0:40 
GeneralRe: Array trouble Pin
tatchung29-Jul-08 0:54
tatchung29-Jul-08 0:54 
QuestionHow to add a button column to the datagrid using vb.net2003 Pin
g.hanuman28-Jul-08 22:40
g.hanuman28-Jul-08 22:40 
AnswerRe: How to add a button column to the datagrid using vb.net2003 Pin
tatchung28-Jul-08 22:58
tatchung28-Jul-08 22:58 
AnswerRe: How to add a button column to the datagrid using vb.net2003 Pin
chandralekha4-Aug-08 20:06
chandralekha4-Aug-08 20:06 
For Adding a button to a datagridview first you add a button column to the columns collection.For example I created a buttoncolumn with name "Button".In the column properties i give the text of that column as "Button" and change the property "Use column text For Button Value" as true.

In the DataGridView1_CellClick event write the code below


Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick

If DataGridView1.Item(e.ColumnIndex, e.RowIndex).Value Is "Button" Then
MsgBox(DataGridView1.Item(1, e.RowIndex).Value)

Me.Visible = False
Dim obj As New Form2
obj.Show()
obj.TextBox1.Text = DataGridView1.Item(1, e.RowIndex).Value

End If
End Sub


DataGridView1.Item(1, e.RowIndex).Value gives that rows 1st column value.You can use any column of that rows value for the unique identification of that row.Here I passed that value to a TextBox in Form2.
In Form2 with respect to that value you can display the needed informations.

Hope this information clear your doubt.
QuestionHow do I detect which Application get focus at run-time? Pin
Anubhava Dimri28-Jul-08 22:05
Anubhava Dimri28-Jul-08 22:05 
AnswerRe: How do I detect which Application get focus at run-time? Pin
Thomas Stockwell29-Jul-08 10:31
professionalThomas Stockwell29-Jul-08 10:31 
QuestionHow to read excel file Pin
BalasubramanianK28-Jul-08 20:48
BalasubramanianK28-Jul-08 20:48 
AnswerRe: How to read excel file Pin
Nilesh Hapse28-Jul-08 22:36
Nilesh Hapse28-Jul-08 22:36 
AnswerRe: How to read excel file Pin
rprateek5-Aug-08 17:50
rprateek5-Aug-08 17:50 
QuestionHow to color some cells of table row based upon condition [modified] Pin
Rameez Raja28-Jul-08 18:26
Rameez Raja28-Jul-08 18:26 
AnswerRe: How to color some cells of table row based upon condition Pin
Paul Conrad28-Jul-08 20:06
professionalPaul Conrad28-Jul-08 20:06 
Questionproblem to detect client after server crash Pin
shee_dee8628-Jul-08 15:22
shee_dee8628-Jul-08 15:22 
AnswerRe: problem to detect client after server crash Pin
Luc Pattyn28-Jul-08 16:16
sitebuilderLuc Pattyn28-Jul-08 16:16 
QuestionFlippable 3D List Items in WPF Pin
sumeetneo28-Jul-08 10:16
sumeetneo28-Jul-08 10:16 
AnswerRe: Flippable 3D List Items in WPF Pin
ChandraRam29-Jul-08 1:23
ChandraRam29-Jul-08 1:23 
GeneralRe: Flippable 3D List Items in WPF Pin
sumeetneo29-Jul-08 4:24
sumeetneo29-Jul-08 4:24 
QuestionDon't load .ocx at runtime Pin
cstrader23228-Jul-08 9:44
cstrader23228-Jul-08 9:44 
GeneralRe: Don't load .ocx at runtime Pin
Paul Conrad28-Jul-08 9:54
professionalPaul Conrad28-Jul-08 9:54 
GeneralRe: Don't load .ocx at runtime Pin
cstrader23228-Jul-08 10:07
cstrader23228-Jul-08 10:07 
Questioncreate button programmatically for loop Pin
khm628-Jul-08 9:00
khm628-Jul-08 9:00 
AnswerRe: create button programmatically for loop Pin
Steven J Jowett28-Jul-08 10:18
Steven J Jowett28-Jul-08 10:18 

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.