468,146 Members | 1,537 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,146 developers. It's quick & easy.

how to tag button to another form

hi can u help me about in my thesis
there's have 3 forms
every each form have a button

how can tag those button to the last button
using if else to insert data in mysql
ex.
in 1st form (button1 = "REGULAR", button2 = "PRIORITY")
2nd form (button1 = "PAYMENT", button2 = "CLEARANCE")
3rd form (textboxstudentnumber,textboxname,textboxamount, button = "ENTER")
ex.
if i click "REGULAR" 2nd form will show next i will click "PAYMENT" then 3rd form will show last if i click the "ENTER" the data in the textbox will be save or "INSERT INTO TABLE" in mysql

I hope u can help thank you
Feb 25 '19 #1
1 2597
SioSio
238 128KB
There are multiple techniques, but the quickest way is to declare the control you want to reference from other forms as Public.

Ex.How to refer Form2's textbox1
My.Forms.Form2.textbo1.text
Dec 19 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Jade Tippett | last post: by
4 posts views Thread by jaYPee | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.