Hi Sreenish,
If .MinimizeBox is set to false, the 'X' becomes an 'ok'. Also if you show
a form via .ShowDialog (instead of .Show), .netCF will automatically make
the form have an 'ok' because it's a modal dialog.
So to answer your question, if you want an 'X', you'll need to ensure
..MinimizeBox is set to 'true', and that you've shown the form via .Show
(instead of .ShowDialog).
Keep in mind that clicking 'ok' truely closes the form, where as clicking
on 'X' only minimizes the form.
-Katie
This posting is provided "AS IS" with no warranties, and confers no rights.
***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts:
http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp
--------------------
| From: "Sreenish" <
[email protected]>
| Subject: Display (X) button on a windows form
| Date: Mon, 5 Jan 2004 16:01:37 -0600
| Lines: 11
| 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: <#Ix0#
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 66.150.213.8
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42182
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi All,
|
| How can I display the close button (X), on the top-right hand corner of a
| windows form. I can see the (X) button on the form during design time,
but
| when the application is executed on pocket PC, (X) button changes to OK
| button. Is there a way to do this?
|
| Thanks in advance,
| Sreenish
|
|
|