Dear All,
I have a problem, I am creating a Desktop application which have 4 forms. and I have linked total form on button. But I want if I click on any button the new form will open at place of previous form (As a standard application) but it is opening a new window form. I also tried by creating menu and linking but it is also opening a new window.
Thanks in advance
Loading
VulpesPosted May 30, 2011, 10:00 AM
I'd post it again as a separate question.
Shudhanshu K SuryaPosted May 30, 2011, 7:40 AM
I have done it, and I have another issue please help me if possible. The issue is :
I have created a RDLC Report and loading result with form load. But I want one combo box and one button. When I select any value of combo box and click on button then the report should come with doing query on the basis of selected value and it will come on below of combo box .
thanks
S K SURYA
VulpesPosted May 28, 2011, 6:51 AM
There are many ways to get references to existing instances of forms in a Windows Forms applications. Which way is best for you depends on the circumstances.
One way that always works (except for MDI children) is to use Application.OpenForms. For example:
Form4 form4 = (Form4)Application.OpenForms["Form4"]; // assuming you have a form called Form4
form4.Show(); // if it's currently hidden