Problem in loading Dialogbox Infront of a form in vb.net

I used .ShowDialog method.
dialogwindow is opened behind the application window .so user can't see that window

Hi,

Can you show us your code how you open the application window.

  If SaveFileDialog1.ShowDialog(Me) = DialogResult.OK Then


                strFName = SaveFileDialog1.FileName

                xlWorkSheet.SaveAs(strFName)

                xlApp.Visible = True


            End If



            Thanks all .
            I solved the problem by adding Me in 
            .ShowDialog(Me)

Check the properties of your form. You may have it set to topmost...true.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.