Panels??

  • Thread starter Thread starter marcmc
  • Start date Start date
M

marcmc

How can I fnd out which panel is active?.ie (to the
front). or even which form is active in a CF App.
Mehtods don't seem to be available which really is not a
good thing. Please advise.
 
I am assuming that you mean visible by active.. What might be a possibility
is take a look at the Focussed property for each control on a form / panel
(and on the form / panel) itself, because if a control in the collection
object has focus you *know* that the particular collection is visible.
 
Thanks Maarten,
Correct. Yes I can determine which panel is active in the
way you have suggested.
However, I want to display this to a text box on an error
logging panel the name of the panel on which the error
occurred.
There does not seem to be a property or method that will
allow me to do so.
Any other suggestions?
 
You could use the GotFocus and LostFocus events to track which panel is
active.

Hope this helps.
Best regards,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "marcmc" <[email protected]>
| Sender: "marcmc" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Panels??
| Date: Fri, 14 Nov 2003 03:13:42 -0800
| Lines: 9
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOqoFz/ciza27CNS8OPq2l32clqKA==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:38584
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Thanks Maarten,
| Correct. Yes I can determine which panel is active in the
| way you have suggested.
| However, I want to display this to a text box on an error
| logging panel the name of the panel on which the error
| occurred.
| There does not seem to be a property or method that will
| allow me to do so.
| Any other suggestions?
|
 
Back
Top