hi everyone

I'd really appreciate any help i could get. I have 2 windows forms. In the first winform i have a text box and a button. In the second winform i have tab control with two tab pages. In the first winform, if a user enters the letter "a" in the text box it goes to the 1st tab page in the second winform but if the user inputs a "b" it should go to the second tabpage in the second winform. how do i do that?

Im struggling to make it so that when the user inputs a "b" it should take him/her to the second tabpage in the second winform.

yours thankfully
aphila

Pass the info in the constructor and choose the correct tab using code in the constructor or use form communication--see the tutorial for form comunication.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.