Form Text property getting overwritten by Start menu

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

When setting the Text property of a form in either InitializeComponent or load event, the value will
display upon first instantiation and showing of the form. If I hide the form and then show it again,
the Text property value will not show - it gets overwritten by the Start menu label and is not
visible in the Running Programs applet. I am forced to place the property-setting code in the
Activated event to ensure that the value gets displayed on all showings of the form. Not a big deal,
but a bit unexpected. I would have expected the Text property to 'persist' on subsequent calls to
Show() regardless of where it was set in code.

Comments?

Tim
 
Hello Tim,

Could you please post a simple application that demonstrates the problem?

Thank you in advance,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| NNTP-Posting-Date: Wed, 28 Apr 2004 09:49:47 -0500
| From: "Tim" <nospamme@nospam.com>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Form Text property getting overwritten by Start menu
| Date: Wed, 28 Apr 2004 09:48:03 -0500
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <UMidnRj7MoQWWRLdRVn-jA@texas.net>
| Lines: 13
| X-Trace:
sv3-0vD1vibNdr2gH5ewwXpGqXbtP5VH9zVhtjauhLspZN13c0X3KXdJ/WQ9hqlD1Z3TetMuh6kf
KtHuhnI!yD4MHWsdjN02bGOkj9EXuDDEWWQiJ1Jw66K2G8qO9nMU0Q99LFw3NAZHx8nxRGXjl5TS
| X-Complaints-To: (e-mail address removed)
| X-DMCA-Complaints-To: (e-mail address removed)
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.1
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!border1.nntp.ash.giganews.com!nntp.giganews.com!loca
l1.nntp.ash.giganews.com!nntp.texas.net!news.texas.net.POSTED!not-for-mail
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:51952
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| When setting the Text property of a form in either InitializeComponent or
load event, the value will
| display upon first instantiation and showing of the form. If I hide the
form and then show it again,
| the Text property value will not show - it gets overwritten by the Start
menu label and is not
| visible in the Running Programs applet. I am forced to place the
property-setting code in the
| Activated event to ensure that the value gets displayed on all showings
of the form. Not a big deal,
| but a bit unexpected. I would have expected the Text property to
'persist' on subsequent calls to
| Show() regardless of where it was set in code.
|
| Comments?
|
| Tim
|
|
|
 
Back
Top