Problem with form activation

L

Laurent

Hi all,

A problem occurs when I show a form (using method Show or Visible set to
true).
The form, when displayed is also activated and I do not want to.
The property Form.ShowWithoutActivation returns false.
How can I display my Form so that it does not activate when it is displayed
?

Laurent
 
S

Stoitcho Goutsev \(100\)

Laurent,

You are suppposed to override this property in your form and return *true*
of you don't want to be activated upon showing.
 
L

Laurent

Thanks, It is ok if the form is not TopMost, but mine is TopMost so I set to
false.
 
S

Stoitcho Goutsev \(100\)

I thought you don't want your form to become active. Returning *false* means
the opposite.
 
L

Laurent

I meant,

I set TopMost to false
ShowWithoutActivation returns true

Thanks for help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top