A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

questions about windows relationship and always on top.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 17th 08, 03:14 AM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default questions about windows relationship and always on top.

Hi,

I created a preference window for my outlook add-in with windows forms. I
have 2 questions.

1. should the preference window be the child window of outlook main window?
if Yes how to make it move outside the outlook window? If I set the parent
window as outlook window, then my window cannot move outside and my window is
kind of flicking and got overlapped by outlook windows (just partially. it
seems outlook is try to draw over my preference window). However if I use
Spy++ and look at the option window of outlook, it is a child window of
outlook and can still move outside. (I am a noob here. but the tree structure
in spy++ is different for this kind of child window. it is not a sub tree
item under outlook window. However in the property's windows tab, it shows
outlook as the parent window).

2. How can I make my preference window always on top of the outlook window
so that if it is not closed, user cannot focus back to outlook. this is just
like the option window in outlook.


Thanks.
Ads
  #2  
Old December 17th 08, 02:27 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default questions about windows relationship and always on top.

What version of Outlook, what development platform and language, what code
are you using to do what you're doing?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Hi,

I created a preference window for my outlook add-in with windows forms. I
have 2 questions.

1. should the preference window be the child window of outlook main
window?
if Yes how to make it move outside the outlook window? If I set the parent
window as outlook window, then my window cannot move outside and my window
is
kind of flicking and got overlapped by outlook windows (just partially. it
seems outlook is try to draw over my preference window). However if I use
Spy++ and look at the option window of outlook, it is a child window of
outlook and can still move outside. (I am a noob here. but the tree
structure
in spy++ is different for this kind of child window. it is not a sub tree
item under outlook window. However in the property's windows tab, it shows
outlook as the parent window).

2. How can I make my preference window always on top of the outlook window
so that if it is not closed, user cannot focus back to outlook. this is
just
like the option window in outlook.


Thanks.


  #3  
Old December 17th 08, 07:45 PM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default questions about windows relationship and always on top.

Outlook 2003 and 2007. VS 2008 with C# and Shared Add-in is what I am doing.

What I try to do is at some point the my code will create a preference
window. So I created a Form window with some controls on it. this part is
straight forward. but I want the window act like application's preference
window. (for example, outloook's option window).

thanks.


"Ken Slovak - [MVP - Outlook]" wrote:

What version of Outlook, what development platform and language, what code
are you using to do what you're doing?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Hi,

I created a preference window for my outlook add-in with windows forms. I
have 2 questions.

1. should the preference window be the child window of outlook main
window?
if Yes how to make it move outside the outlook window? If I set the parent
window as outlook window, then my window cannot move outside and my window
is
kind of flicking and got overlapped by outlook windows (just partially. it
seems outlook is try to draw over my preference window). However if I use
Spy++ and look at the option window of outlook, it is a child window of
outlook and can still move outside. (I am a noob here. but the tree
structure
in spy++ is different for this kind of child window. it is not a sub tree
item under outlook window. However in the property's windows tab, it shows
outlook as the parent window).

2. How can I make my preference window always on top of the outlook window
so that if it is not closed, user cannot focus back to outlook. this is
just
like the option window in outlook.


Thanks.



  #4  
Old December 18th 08, 02:15 AM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default questions about windows relationship and always on top.

I figure out how to make my window as a Modal Dialog. using showDialog() is
the way to go.

so my only question is, should I still set outlook main window as the parent
window? or just leave it as is now which desktop window is the parent window.

thanks.

"BatKing" wrote:

Outlook 2003 and 2007. VS 2008 with C# and Shared Add-in is what I am doing.

What I try to do is at some point the my code will create a preference
window. So I created a Form window with some controls on it. this part is
straight forward. but I want the window act like application's preference
window. (for example, outloook's option window).

thanks.


"Ken Slovak - [MVP - Outlook]" wrote:

What version of Outlook, what development platform and language, what code
are you using to do what you're doing?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
Hi,

I created a preference window for my outlook add-in with windows forms. I
have 2 questions.

1. should the preference window be the child window of outlook main
window?
if Yes how to make it move outside the outlook window? If I set the parent
window as outlook window, then my window cannot move outside and my window
is
kind of flicking and got overlapped by outlook windows (just partially. it
seems outlook is try to draw over my preference window). However if I use
Spy++ and look at the option window of outlook, it is a child window of
outlook and can still move outside. (I am a noob here. but the tree
structure
in spy++ is different for this kind of child window. it is not a sub tree
item under outlook window. However in the property's windows tab, it shows
outlook as the parent window).

2. How can I make my preference window always on top of the outlook window
so that if it is not closed, user cannot focus back to outlook. this is
just
like the option window in outlook.


Thanks.



  #5  
Old December 18th 08, 03:06 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default questions about windows relationship and always on top.

I still have no idea how you were setting the parent/child relationship.

Is your window appearing behind the main Outlook window (Explorer)?

When I open a Windows form in an addin, let's say from a button on a
toolbar, the window appears in front of the main Outlook window and since
it's modal I can't click on the main Outlook window due to the modality.
What are you seeing that's different?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
I figure out how to make my window as a Modal Dialog. using showDialog() is
the way to go.

so my only question is, should I still set outlook main window as the
parent
window? or just leave it as is now which desktop window is the parent
window.

thanks.


  #6  
Old December 18th 08, 08:36 PM posted to microsoft.public.outlook.program_forms
BatKing
external usenet poster
 
Posts: 24
Default questions about windows relationship and always on top.

Sorry Ken,

I was confused by myself and that's why I asked this funny yet stupid
questions. Because I started to learn C# (and even all the windows
programming) just 2 months ago and the worst part is I have to add button in
the preview pan which outlook object model not supported. so for all my
windows, forms ...... I used win32 API to add the windows and forms on
outlook. Anyway, I knew how to add a button in preview pan but I didn't know
the basic stuff as how to create a modal dialog.

"Ken Slovak - [MVP - Outlook]" wrote:

I still have no idea how you were setting the parent/child relationship.

Is your window appearing behind the main Outlook window (Explorer)?

When I open a Windows form in an addin, let's say from a button on a
toolbar, the window appears in front of the main Outlook window and since
it's modal I can't click on the main Outlook window due to the modality.
What are you seeing that's different?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"BatKing" wrote in message
...
I figure out how to make my window as a Modal Dialog. using showDialog() is
the way to go.

so my only question is, should I still set outlook main window as the
parent
window? or just leave it as is now which desktop window is the parent
window.

thanks.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanted Contact Relationship Manager for Outlook 2003 John Outlook - General Queries 1 April 22nd 07 09:58 PM
How do I import OE6 messages to Windows Mail on Windows Vista? Steve Gardner Outlook Express 1 February 19th 07 01:06 PM
Windows Easy Transfer for Windows Vista/Outlook2007 GoldCoaster Outlook - Installation 1 February 5th 07 04:16 AM
how do I sync my windows mobile device with windows vista? Nplatzer Outlook - Installation 2 February 2nd 07 11:54 PM
Windows Live Mail Desktop Beta & Windows Messenger Djc_74 Outlook Express 6 June 7th 06 09:03 PM


All times are GMT +1. The time now is 06:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.