use of a value in a form in another one
-
i'm having a problem... i have a tab of buttons.. what i want is when i click one button i have to read the text written on and then open a new form with a background image having the same text as written on the button of the previous form... so here what i have to learn is how to know the text on the button clicked and then use this text in the next form to choose the corresponding image
-
i'm having a problem... i have a tab of buttons.. what i want is when i click one button i have to read the text written on and then open a new form with a background image having the same text as written on the button of the previous form... so here what i have to learn is how to know the text on the button clicked and then use this text in the next form to choose the corresponding image
Predictably, you get at the button text by using the button.Text property. So, if your button is called "butPassMyTextToANewForm", yoiu would get the text by saying: String s = butPassMyTextToANewForm.Text; Pass that to you new form, and off you go!
All those who believe in psycho kinesis, raise my hand.
-
i'm having a problem... i have a tab of buttons.. what i want is when i click one button i have to read the text written on and then open a new form with a background image having the same text as written on the button of the previous form... so here what i have to learn is how to know the text on the button clicked and then use this text in the next form to choose the corresponding image
have you tried the way i told you yesterday!!!!!!!!!!!
-
have you tried the way i told you yesterday!!!!!!!!!!!
i have tried but it didn't work i don't know why... it gave me a null value in the second form
-
i have tried but it didn't work i don't know why... it gave me a null value in the second form
it cant be if you want i could post my project example for you tell me if you want?
-
it cant be if you want i could post my project example for you tell me if you want?
it worked finally .. i found the problem... i was declaring the public value in the parent form.... thank you very much