Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2006

Tip: Looking for answers? Try searching our database.

Problem with form activation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laurent - 23 May 2006 16:02 GMT
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
Stoitcho Goutsev (100) - 24 May 2006 14:05 GMT
Laurent,

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

Signature

HTH
Stoitcho Goutsev (100)

> Hi all,
>
[quoted text clipped - 6 lines]
>
> Laurent
Laurent - 24 May 2006 16:37 GMT
Thanks, It is ok if the form is not TopMost, but mine is TopMost so I set to
false.

> Laurent,
>
[quoted text clipped - 11 lines]
>>
>> Laurent
Stoitcho Goutsev (100) - 24 May 2006 20:13 GMT
I thought you don't want your form to become active. Returning *false* means
the opposite.

Signature

Stoitcho Goutsev (100)

> Thanks, It is ok if the form is not TopMost, but mine is TopMost so I set
> to false.
[quoted text clipped - 14 lines]
>>>
>>> Laurent
Laurent - 29 May 2006 08:51 GMT
I meant,

I set TopMost to false
ShowWithoutActivation returns true

Thanks for help!

>I thought you don't want your form to become active. Returning *false*
>means the opposite.
[quoted text clipped - 17 lines]
>>>>
>>>> Laurent

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.