Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Form caption not updating - Bug?

10 views
Skip to first unread message

ED

unread,
Jun 15, 2009, 1:48:13 PM6/15/09
to
Hi,
 
VS2008, C#, Windows Mobile 6 Standard (smartphone, no touchscreen).
 
From the main form, I show a new form with newform.showdialog();
 
While in the newform, I change the newform caption (newform.Text property) if certain keys are pressed.
 
The newform's caption does not change if I set it's "owner" property to the mainform. (It only changes when newform is closed and then reshown.)
 
newform.Refresh() does not work.
 
This does not happen when the "owner" property is not set. Is this a bug? How can I get around this?
 
Any help is appreciated.
Thanks,
ED.
 

Simon Hart [MVP]

unread,
Jun 15, 2009, 6:19:55 PM6/15/09
to
This is by design. If you set the owner to that of the parent then your forms title will derive from it's parent. This is good design for Mobile applications. If you don;t want this then don't set the owner (but then you'll get a load of other issues).
--
Simon Hart
Visual Developer - Device Application Development MVP
http://www.simonrhart.com

ED

unread,
Jun 16, 2009, 3:39:12 AM6/16/09
to
That's what I'm getting, "load of other issues". The main one is that when newform closes, focus doesn't go back to the main form, but to the app that was switched to before closing newform. Mainform.BringToFront doesn't help. Any suggestions? Thanks, ED.
 
"Simon Hart [MVP]" <srha...@yahoo.com> wrote in message news:A5F932F9-3DA3-4CB0...@microsoft.com...

Simon Hart [MVP]

unread,
Jun 17, 2009, 2:35:10 PM6/17/09
to

--
Simon Hart
Visual Developer - Device Application Development MVP
http://www.simonrhart.com
0 new messages