By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,678 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,678 IT Pros & Developers. It's quick & easy.

Facing problem in calling one form from another

P: n/a
Hi All,
I am creating one windows form application using I have
Form1 which contains some text boxes and button. I have one another
Form2 which contains only one progress bar. After clicking a particular
button in form one, I want to show Form2 as model dialog box. My
application will do some operation using inputs of Form1 and progress
bar in Form2 will show status of operations. To achieve this, I tried
ShowDialog. As-

System::Void CreateRID_Button_Click(System::Object * sender,
System::EventArgs * e)

Form2 *ProgressBar=new Form2();


But it is not working. It is giving lot of compilation error like
"Form2 undeclared identifier". What is the problem? How can I
achieve this?

I also want to pass parameters of Form1 to Form2. How can I do that?
Using constructor of Form2 or any other good way?


Sep 28 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.