change form, return to the last form ...

R

Romain TAILLANDIER

Hi group

my app use massively the vb.net .ShowDialog methode.

in form1 code :

dim form2 as new form
form2.showdialog()


when i close a form2 called with this methode, the form1 which call this
ShowDialog is not the one which get the focus.
if there is some windows explorer (for example) it get the focus in place of
the form1.
how can i re-get the focus on form1 after calling the form2.ShowDialog ?
i try a few things like me.focus ... but the windows explorer continue to
take the focus ...

i think this will easy for you ... :p
thanks for help

ROM
 
K

Katie Schaeffer [MSFT]

Hello Romain,

It sounds like you may have found a bug...can you post your code for me to
look at? What platform are you running on?
Meanwhile, you may be able to use Form1.BringToFront() to workaround your
problem.

Thanks,
-Katie

--------------------
| From: "Romain TAILLANDIER" <[email protected]>
| Subject: change form, return to the last form ...
| Date: Mon, 28 Jul 2003 14:43:12 +0200
| Lines: 24
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:29464
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi group
|
| my app use massively the vb.net .ShowDialog methode.
|
| in form1 code :
|
| dim form2 as new form
| form2.showdialog()
|
|
| when i close a form2 called with this methode, the form1 which call this
| ShowDialog is not the one which get the focus.
| if there is some windows explorer (for example) it get the focus in place
of
| the form1.
| how can i re-get the focus on form1 after calling the form2.ShowDialog ?
| i try a few things like me.focus ... but the windows explorer continue to
| take the focus ...
|
| i think this will easy for you ... :p
| thanks for help
|
| ROM
|
|
|

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

Romain TAILLANDIER

thank you katie,

i post a new message for this problem, please look at :
"bring to front" posted by me Romain TAILLANDIER on 04\08\2003 17:14

you will found my bug, with a sample code, and the test i done to localise
it. you will see, i think it is anderstandable :)

i know about my english :p i am sorry

thanks for your help
ROM
 
K

Katie Schaeffer [MSFT]

Hi Romain,

I couldn't find the message you're talking about. Could you repost the
repro code here?

Thanks,
-Katie

--------------------
| From: "Romain TAILLANDIER" <[email protected]>
| References: <[email protected]>
<0NY#[email protected]>
| Subject: Re: change form, return to the last form ...
| Date: Tue, 5 Aug 2003 10:19:58 +0200
| Lines: 77
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30158
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| thank you katie,
|
| i post a new message for this problem, please look at :
| "bring to front" posted by me Romain TAILLANDIER on 04\08\2003 17:14
|
| you will found my bug, with a sample code, and the test i done to localise
| it. you will see, i think it is anderstandable :)
|
| i know about my english :p i am sorry
|
| thanks for your help
| ROM
|
|
| | > Hello Romain,
| >
| > It sounds like you may have found a bug...can you post your code for me
to
| > look at? What platform are you running on?
| > Meanwhile, you may be able to use Form1.BringToFront() to workaround
your
| > problem.
| >
| > Thanks,
| > -Katie
| >
| > --------------------
| > | From: "Romain TAILLANDIER" <[email protected]>
| > | Subject: change form, return to the last form ...
| > | Date: Mon, 28 Jul 2003 14:43:12 +0200
| > | Lines: 24
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:29464
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | Hi group
| > |
| > | my app use massively the vb.net .ShowDialog methode.
| > |
| > | in form1 code :
| > |
| > | dim form2 as new form
| > | form2.showdialog()
| > |
| > |
| > | when i close a form2 called with this methode, the form1 which call
this
| > | ShowDialog is not the one which get the focus.
| > | if there is some windows explorer (for example) it get the focus in
| place
| > of
| > | the form1.
| > | how can i re-get the focus on form1 after calling the
form2.ShowDialog ?
| > | i try a few things like me.focus ... but the windows explorer continue
| to
| > | take the focus ...
| > |
| > | i think this will easy for you ... :p
| > | thanks for help
| > |
| > | ROM
| > |
| > |
| > |
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
|
|
|

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

Katie Schaeffer [MSFT]

Hi Romain,

Nevermind my last post...Found it. Thanks for the detailed repro...I'll
have a bug entered in our database.

Thanks,
-Katie
--------------------
| X-Tomcat-ID: 639832932
| References: <[email protected]>
<0NY#[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Katie Schaeffer [MSFT])
| Organization: Microsoft
| Date: Tue, 05 Aug 2003 22:34:28 GMT
| Subject: Re: change form, return to the last form ...
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Lines: 89
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30224
| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
|
| Hi Romain,
|
| I couldn't find the message you're talking about. Could you repost the
| repro code here?
|
| Thanks,
| -Katie
|
| --------------------
| | From: "Romain TAILLANDIER" <[email protected]>
| | References: <[email protected]>
| <0NY#[email protected]>
| | Subject: Re: change form, return to the last form ...
| | Date: Tue, 5 Aug 2003 10:19:58 +0200
| | Lines: 77
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| | Message-ID: <[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.compactframework
| | NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.compactframework:30158
| | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| |
| | thank you katie,
| |
| | i post a new message for this problem, please look at :
| | "bring to front" posted by me Romain TAILLANDIER on 04\08\2003 17:14
| |
| | you will found my bug, with a sample code, and the test i done to
localise
| | it. you will see, i think it is anderstandable :)
| |
| | i know about my english :p i am sorry
| |
| | thanks for your help
| | ROM
| |
| |
| | | | > Hello Romain,
| | >
| | > It sounds like you may have found a bug...can you post your code for
me
| to
| | > look at? What platform are you running on?
| | > Meanwhile, you may be able to use Form1.BringToFront() to workaround
| your
| | > problem.
| | >
| | > Thanks,
| | > -Katie
| | >
| | > --------------------
| | > | From: "Romain TAILLANDIER" <[email protected]>
| | > | Subject: change form, return to the last form ...
| | > | Date: Mon, 28 Jul 2003 14:43:12 +0200
| | > | Lines: 24
| | > | X-Priority: 3
| | > | X-MSMail-Priority: Normal
| | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| | > | Message-ID: <[email protected]>
| | > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| | > | NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| | > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| | > | Xref: cpmsftngxa06.phx.gbl
| | > microsoft.public.dotnet.framework.compactframework:29464
| | > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| | > |
| | > | Hi group
| | > |
| | > | my app use massively the vb.net .ShowDialog methode.
| | > |
| | > | in form1 code :
| | > |
| | > | dim form2 as new form
| | > | form2.showdialog()
| | > |
| | > |
| | > | when i close a form2 called with this methode, the form1 which call
| this
| | > | ShowDialog is not the one which get the focus.
| | > | if there is some windows explorer (for example) it get the focus in
| | place
| | > of
| | > | the form1.
| | > | how can i re-get the focus on form1 after calling the
| form2.ShowDialog ?
| | > | i try a few things like me.focus ... but the windows explorer
continue
| | to
| | > | take the focus ...
| | > |
| | > | i think this will easy for you ... :p
| | > | thanks for help
| | > |
| | > | ROM
| | > |
| | > |
| | > |
| | >
| | > This posting is provided "AS IS" with no warranties, and confers no
| | rights.
| | >
| |
| |
| |
|
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
|

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

Katie Schaeffer [MSFT]

Hi Romain,

I responded to your other post. If you change your form border style to
something other then 'None'...you shouldn't need 'BrintToFront()' at all.
Also, ensure that your are not calling 'ShowDialog from a constructor (use
the OnLoad event instead if possible.

Let me know if you're still stuck,
-Katie

--------------------
| From: "Romain TAILLANDIER" <[email protected]>
| References: <[email protected]>
<0NY#[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: change form, return to the last form ...
| Date: Thu, 7 Aug 2003 09:14:24 +0200
| Lines: 170
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30347
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi katie
|
| OK, i understand that the bug i found is a native bug of the compact
| framework, isn't it ?
| I really need to fix it. I don't care about how. is there a tips or
| something to pass trhow this ?
| is there some stuff which could indirectly fix that ?
|
| Thanks
| ROM
|
|
|
| | > Hi Romain,
| >
| > Nevermind my last post...Found it. Thanks for the detailed repro...I'll
| > have a bug entered in our database.
| >
| > Thanks,
| > -Katie
| > --------------------
| > | X-Tomcat-ID: 639832932
| > | References: <[email protected]>
| > <0NY#[email protected]>
| > <[email protected]>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: (e-mail address removed) (Katie Schaeffer [MSFT])
| > | Organization: Microsoft
| > | Date: Tue, 05 Aug 2003 22:34:28 GMT
| > | Subject: Re: change form, return to the last form ...
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | Lines: 89
| > | Path: cpmsftngxa06.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:30224
| > | NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
| > |
| > | Hi Romain,
| > |
| > | I couldn't find the message you're talking about. Could you repost
the
| > | repro code here?
| > |
| > | Thanks,
| > | -Katie
| > |
| > | --------------------
| > | | From: "Romain TAILLANDIER" <[email protected]>
| > | | References: <[email protected]>
| > | <0NY#[email protected]>
| > | | Subject: Re: change form, return to the last form ...
| > | | Date: Tue, 5 Aug 2003 10:19:58 +0200
| > | | Lines: 77
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| > | | Message-ID: <[email protected]>
| > | | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | | NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| > | | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | | Xref: cpmsftngxa06.phx.gbl
| > | microsoft.public.dotnet.framework.compactframework:30158
| > | | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > | |
| > | | thank you katie,
| > | |
| > | | i post a new message for this problem, please look at :
| > | | "bring to front" posted by me Romain TAILLANDIER on 04\08\2003 17:14
| > | |
| > | | you will found my bug, with a sample code, and the test i done to
| > localise
| > | | it. you will see, i think it is anderstandable :)
| > | |
| > | | i know about my english :p i am sorry
| > | |
| > | | thanks for your help
| > | | ROM
| > | |
| > | |
| message
| > | | | > | | > Hello Romain,
| > | | >
| > | | > It sounds like you may have found a bug...can you post your code
for
| > me
| > | to
| > | | > look at? What platform are you running on?
| > | | > Meanwhile, you may be able to use Form1.BringToFront() to
workaround
| > | your
| > | | > problem.
| > | | >
| > | | > Thanks,
| > | | > -Katie
| > | | >
| > | | > --------------------
| > | | > | From: "Romain TAILLANDIER" <[email protected]>
| > | | > | Subject: change form, return to the last form ...
| > | | > | Date: Mon, 28 Jul 2003 14:43:12 +0200
| > | | > | Lines: 24
| > | | > | X-Priority: 3
| > | | > | X-MSMail-Priority: Normal
| > | | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| > | | > | Message-ID: <[email protected]>
| > | | > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | | > | NNTP-Posting-Host: mfactories-02.univ-mlv.fr 193.50.159.155
| > | | > | Path:
| cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| > | | > | Xref: cpmsftngxa06.phx.gbl
| > | | > microsoft.public.dotnet.framework.compactframework:29464
| > | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > | | > |
| > | | > | Hi group
| > | | > |
| > | | > | my app use massively the vb.net .ShowDialog methode.
| > | | > |
| > | | > | in form1 code :
| > | | > |
| > | | > | dim form2 as new form
| > | | > | form2.showdialog()
| > | | > |
| > | | > |
| > | | > | when i close a form2 called with this methode, the form1 which
| call
| > | this
| > | | > | ShowDialog is not the one which get the focus.
| > | | > | if there is some windows explorer (for example) it get the focus
| in
| > | | place
| > | | > of
| > | | > | the form1.
| > | | > | how can i re-get the focus on form1 after calling the
| > | form2.ShowDialog ?
| > | | > | i try a few things like me.focus ... but the windows explorer
| > continue
| > | | to
| > | | > | take the focus ...
| > | | > |
| > | | > | i think this will easy for you ... :p
| > | | > | thanks for help
| > | | > |
| > | | > | ROM
| > | | > |
| > | | > |
| > | | > |
| > | | >
| > | | > This posting is provided "AS IS" with no warranties, and confers
no
| > | | rights.
| > | | >
| > | |
| > | |
| > | |
| > |
| > | This posting is provided "AS IS" with no warranties, and confers no
| > rights.
| > |
| > |
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
|
|
|

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top