Relative Content

Tag Archive for c#.netwinforms

Show form on top of parent during background work

Not sure if doing myForm.ShowDialog() during a background worker is the issue, but in my application, I have a background worker check for data, and if the data is empty, I do myForm.ShowDialog(). The only problem is, it will show up underneath the parent form, but still be centered relatively to parent when I have CenterParent set as the start position. From my understanding ShowDialog() should make the form show on top by default, but wondering why its going underneath.