How do I make messagebox central in the other window.

Basicly just a "pop up" message box that comferms that the data has been saved but it isn't central to the other windo it just pops up were it whants to :D well if you have some code to fix it would make me a happy girl :)



Answer this question

How do I make messagebox central in the other window.

  • Irshad_ip

    MessageBox.Show("Changes have been saved", "Saved", MessageBoxButtons.OK, MessageBoxIcon.Information);


    Basicly whant this messagebox to appere in the central anyway I can do that Or do I have to make a new form


  • Jesse Hose

    Are you asking for a new window that isn't modal to the window opening it

    Who would close the window Do you need the window to close on its own


  • PablitoMil

    I don't believe the standard MessageBox object allows you to do this. You would need to create a new form (setting the border style to dialogue) and then, when you have created a new instance of the form in your code you can call;

    dlgMyOwnDialgoueBox.StartPosition = FormStartPosition.CenterParent;

    I belive this should work.



  • How do I make messagebox central in the other window.