jazzyb 0 Newbie Poster

Hi,

I am developing an application with VB.net and SQL Express. In my application I have many forms as :

some of my forms are:

Mainform
selectmonth_form
Form_report

Mainform is mdiparent.
slectmonth_form as child form

In Mainform button click event code I have following code

If blnActive = IsOpen("selectmonth_form") Then  ''//blnactive is already declared boolean
                  Dim monthform As New selectmonth_form
                  monthform.StartPosition = FormStartPosition.CenterScreen
                  monthform.ShowDialog()
    end If

In selectmonth_form coding button click event has following code\

form_report.show()  '//because this form has report viewer

Running application with this code selectmonth_form loads normal, form_report also loads but do not show any data....

But When In mainform I use simple

selectmonth_form.show()

forms load normally and also show all data in form_report. With this code these forms open as new windows, but I want to

open windows in child window.

How can I sort the problem....

Thanks in advance

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.