N
N
Nazarevsky2021-06-04 11:45:01
C++ / C#
Nazarevsky, 2021-06-04 11:45:01

How to make it so that when switching to another window, the windows form does not go to the very end?

Hello!
The problem is that when switching to another window, such as VS, the Windows form window is hidden under all other windows. In other words, it goes to the very end (I don't know if you understood, I hope I described the problem well XD)
Has anyone encountered a similar problem? How can I solve it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Bereznikov, 2021-06-05
@Nazarevsky

You need to set the TopMost property of your form to true.

A
AlexCruel, 2021-06-04
@AlexCruel

If I understood correctly.
Use when opening a form form. ShowDialog() . This will bring a new window to the foreground. Until you close it, others will be unclickable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question