Top C # window

I have two window shapes and both set the topmost property to true. But the shape frame style of one shape is set to No. Another form has a border. When these two forms start together, one without a border is always on top and overlaps the other form. How to make a form with a frame always on top? thank.

+3
source share
3 answers

I suggest you run the form with the last borders or set the property of another TopMost form to false.

[Edit] I suggest you study the Forms Owner property - http://msdn.microsoft.com/en-us/library/system.windows.forms.form.owner.aspx .

formWithoutBorders.AddOwnedForm(borderForm);
borderForm.Show();
+2
source

( ) , , .

Topmost - . , .

+1

To understand why this is happening, I recommend Raymond Chen What if two programs did this article

0
source

Source: https://habr.com/ru/post/1770880/


All Articles