Start New Discussion Reply to this Discussion Please Help Me
Good Day!.
I have a big problem. I have here a combobox1 in form1, combobox1 has a value of Mr.A and Mr.B. and the form2 has a evaluation question with 5 radiobuttons. I want that if i choose from that combobox1. The form2 will know who i choose, and when i answer the question in form2. The Data will insert into my sql database.
Please Help Me!. :(
bernardz26
Newbie Poster
16 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
for this declare a public variable , like this
public Name as string
'now place this code at the selected index change event
name = combo.text
now you can get name variable value at any place in your form,
Regards
M.Waqas Aslam
Master Poster
761 posts since Aug 2011
Reputation Points: 58
Solved Threads: 126
Skill Endorsements: 2
you need to pass the value from Form1 to Form2. when u open form2 , you pass the value to form2. you need to declare public parameter in form2.
eg
public value1 as integer
value1 = combox1.selectedvalue
dim frm as new Form2
frm.value = value1
frm.show
chewmp
Newbie Poster
4 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page generated in 0.0654 seconds
using 2.66MB