PC Review


Reply
Thread Tools Rate Thread

How can close this window and open a new window in .net framework compact?

 
 
Wang,Zhiqiang
Guest
Posts: n/a
 
      29th Nov 2004
as in .net framework ,we can use

new form2().Show();
this.Close();

to close this window and open a new,but it does not work in .net framework
compact
can u offer me a solution?


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      29th Nov 2004
If "this" window is your application main window, closing it will quit the
application. Instead of closing it, why don't you hide it?

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Wang,Zhiqiang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> as in .net framework ,we can use
>
> new form2().Show();
> this.Close();
>
> to close this window and open a new,but it does not work in .net framework
> compact
> can u offer me a solution?
>



 
Reply With Quote
 
rainlake
Guest
Posts: n/a
 
      29th Nov 2004
but as u see.if i hide it .
it still remain in the running programs,How can i do?
"Alex Feinman [MVP]" <(E-Mail Removed)> 写入消息新闻:(E-Mail Removed)...
> If "this" window is your application main window, closing it will quit the
> application. Instead of closing it, why don't you hide it?
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Wang,Zhiqiang" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> as in .net framework ,we can use
>>
>> new form2().Show();
>> this.Close();
>>
>> to close this window and open a new,but it does not work in .net
>> framework compact
>> can u offer me a solution?
>>

>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      29th Nov 2004
"rainlake" <(E-Mail Removed)> wrote in message
news:e%23e%(E-Mail Removed)...
> but as u see.if i hide it .
> it still remain in the running programs,How can i do?


Try setting its Text property to an empty string


 
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
Close a New Window in Word; original window remains open M I K E Microsoft Word Document Management 2 7th Mar 2008 02:16 PM
Creating a pop-up window in compact framework Hari Microsoft Dot NET Compact Framework 2 11th Sep 2006 11:46 AM
open window & close prior window =?Utf-8?B?a2x5bm4=?= Microsoft ASP .NET 0 7th Oct 2005 08:51 PM
Open link in new window makes original window close MIke Windows XP Internet Explorer 5 26th Apr 2004 02:12 AM
How to disable the Window close 'X' button in any open window Amit Microsoft Windows 2000 1 11th Sep 2003 12:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:22 PM.