sgbosley

sgbosley

  • NA
  • 11
  • 0

Form Location Changes When Using .Show versus .ShowDialog

Feb 1 2005 2:28 PM
Hello. I am having a problem with a custom message box(form) that I created. The message box default location is set to FormStartPostion.CenterScreen. When I call the message box using .ShowDialog(), it centers correctly on the screen (a form with no controls, just a bitmap background). When I use .Show to display the box (which is what I really want since I am using this as a timed message box), it is not centered on the screen. It seems to skew the box 60 pixels in the x direction and 20 in the y. I am using this message box throughout my application and don't want to hardcode each time I use it. Any ideas??? Thanks in advance. Solb