PC Review


Reply
Thread Tools Rate Thread

How do I make a control top level?

 
 
Udi
Guest
Posts: n/a
 
      26th Jun 2006
Hi,
MDIChild pops up a listbox on a certain event.
The problem is that the location of the listbox can go out of the
MDIChild bounds.
When this happens, I see only a part of the listbox.

1. Is there a way of setting the listbox a top level control without
putting it on a form?
2. Just n case I do need to put it on a form, I would like to hide it
if the MDIChild loses focus. The problem now is that for some reason
'LostFocus' and 'Deactivate' are not fired!
(The same with MdiParent.LostFocus and MdiParent.Deactivate). So in
case I maximize a different application, the top level form is still
there! How do I hide it then?

Thanks,
Udi.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
two level make table query and sorting??? tcek Microsoft Access Queries 1 28th May 2010 12:36 AM
share a form level var with app - but don't make var global? Rich Microsoft VB .NET 2 3rd Feb 2009 10:54 PM
Top-level control cannot be added to a control? Bruce Microsoft C# .NET 2 15th Apr 2007 07:55 PM
page-level vs control-level enableViewState =?Utf-8?B?Sm9l?= Microsoft ASP .NET 3 26th Oct 2005 08:14 PM
Annoying little issue... Disconnecting Form level event and Control level event... HyperX Microsoft C# .NET 4 12th Mar 2004 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:44 AM.