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

What code have you tried that isn't working? The .ShowDialog method should work.

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.