1,105,363 Community Members

Please Help Me

Member Avatar
bernardz26
Newbie Poster
16 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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!. :(

Member Avatar
M.Waqas Aslam
Practically a Posting Shark
837 posts since Aug 2011
Reputation Points: 67 [?]
Q&As Helped to Solve: 137 [?]
Skill Endorsements: 4 [?]
Featured
 
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

Member Avatar
chewmp
Newbie Poster
4 posts since Dec 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: