We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,390 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how to create a pop up form in vb.net

how to create a pop up form for each row in datagridview that holds detailed info about that particular row of a column ? I want a editable pop up form with two text boxes and sum of both text boxes in the selected cell of the column . i don't know what approach to take ,
can someone provide me with a link please.

4
Contributors
4
Replies
1 Month
Discussion Span
5 Months Ago
Last Updated
7
Views
Question
Answered
rony001
Newbie Poster
12 posts since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Why dont you create a form to act like a pop-up, that onload() load the datagrid information?

SaaDwTk
Light Poster
38 posts since Nov 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

create a new form and add three textBoxs with label i.e value 1 , value 2 , sum.
on Main form select the grid and goto property then Event - Click . Double click and add the follwing code.
Dim frm as new form1
Dim i As
Integer
i =
DataGridView1.
CurrentRow.Index
frm.textbox1.Text
= DataGridView1.
Item(0, i).Value

frm.TextBox2.
Text =
DataGridView1.
Item(1, i).Value

frm.TextBox3.
Text =
DataGridView1.
Item(0, i).Value +
DataGridView1.
Item(1, i).Value
frm.showDialog()

khair.ullah
Junior Poster in Training
55 posts since Aug 2012
Reputation Points: -2
Solved Threads: 3
Skill Endorsements: 0

A form that will pop up everytime you click on the datagridview's row is easy. Follow the shared code above by Khair.

Icone
Junior Poster in Training
87 posts since Oct 2012
Reputation Points: -1
Solved Threads: 5
Skill Endorsements: 0
Question Answered as of 5 Months Ago by SaaDwTk, khair.ullah and Icone

Thanks for all replies , i got it to work

rony001
Newbie Poster
12 posts since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0666 seconds using 2.67MB