المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Pass Variable between two forms



C# Programming
05-08-2009, 05:42 PM
Hi Have a good day ....

I hope you will help me to solve this problem .. in my C# Windows Application Form


I have Three Froms

MainFrom -- Has Two Buttons
Btn1 Show From1
Btn2 Show Form2
---------------------

From1 Has TextBox

---------------------

From2 Has PictureBox
---------------------


- I press Btn1 , and From1 Show up ....
- I press Btn2 , and From2 Show up ....


I want , a way that when I write an image path in From1 Textbox
then Fom2 PictureBox Display it ...


I don't want to do this by timers , I wounder if there is way like delegate ? or something ?


thank in advance ...

I know nothing , I know nothing ...