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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

About state of encrypt and sign button for outlook?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 14th 09, 11:56 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default About state of encrypt and sign button for outlook?

It is very strange that i couldn't get the buttons' state currently for first
time open an e-mail(draft) or create a new one. I firstly find the button
then get_State. return value is S_OK. but state is error.
When i open the second e-mail, all are ok?Why?Thank you.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1

  #2  
Old May 14th 09, 08:40 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default About state of encrypt and sign button for outlook?

I've often found with WordMail, if this relates to that, that Outlook loses
its references and I have to reinstantiate the button object when I want to
use something like State, even in the Click() event for that button.

--
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


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:960f46eac6e84@uwe...
It is very strange that i couldn't get the buttons' state currently for
first
time open an e-mail(draft) or create a new one. I firstly find the button
then get_State. return value is S_OK. but state is error.
When i open the second e-mail, all are ok?Why?Thank you.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1


  #3  
Old May 15th 09, 04:38 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default About state of encrypt and sign button for outlook?

Hi, ken, My case is not as the same as what you described. If in word editor
mode, get_State is always ok. If without word editor, i found it is error if
you open for first time, close one e-mail you opened, then open any ones it
will be ok. If you don't do "close" action, it may be not correct.

Ken Slovak - [MVP - Outlook] wrote:
I've often found with WordMail, if this relates to that, that Outlook loses
its references and I have to reinstantiate the button object when I want to
use something like State, even in the Click() event for that button.

It is very strange that i couldn't get the buttons' state currently for
first
time open an e-mail(draft) or create a new one. I firstly find the button
then get_State. return value is S_OK. but state is error.
When i open the second e-mail, all are ok?Why?Thank you.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1

  #4  
Old May 15th 09, 03:02 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default About state of encrypt and sign button for outlook?

I've never seen that with the Outlook editor in any version of Outlook.

When are you getting your button references? In what event? Is it the first
Inspector.Activate() event handler? That's where you should be creating your
UI.

--
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


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:961806bd4d44d@uwe...
Hi, ken, My case is not as the same as what you described. If in word
editor
mode, get_State is always ok. If without word editor, i found it is error
if
you open for first time, close one e-mail you opened, then open any ones
it
will be ok. If you don't do "close" action, it may be not correct.

Ken Slovak - [MVP - Outlook] wrote:
I've often found with WordMail, if this relates to that, that Outlook
loses
its references and I have to reinstantiate the button object when I want
to
use something like State, even in the Click() event for that button.

It is very strange that i couldn't get the buttons' state currently for
first
time open an e-mail(draft) or create a new one. I firstly find the
button
then get_State. return value is S_OK. but state is error.
When i open the second e-mail, all are ok?Why?Thank you.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1


  #5  
Old May 18th 09, 03:53 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default About state of encrypt and sign button for outlook?

Outlook editor? I mean outlook use internal editor, not word editor, i called
it "outlook editor", i'm sorry for that.

Yes, you're right, i create my UI in first inspecotr Active event, and get
outlook encrypt and sign button reference before create UI.

If it is word editor, state is ok, if it is not word editor, just like what i
mentioned, if you do not close an inspector before getstate, it is not
correct.


Ken Slovak - [MVP - Outlook] wrote:
I've never seen that with the Outlook editor in any version of Outlook.

When are you getting your button references? In what event? Is it the first
Inspector.Activate() event handler? That's where you should be creating your
UI.

Hi, ken, My case is not as the same as what you described. If in word
editor

[quoted text clipped - 16 lines]
then get_State. return value is S_OK. but state is error.
When i open the second e-mail, all are ok?Why?Thank you.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1

  #6  
Old May 18th 09, 03:57 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default About state of encrypt and sign button for outlook?

Everyone calls the internal editor the Outlook editor.

I haven't seen the problem you're having at all with the Outlook editor, but
I really don't work with the sign and encrypt stuff much since there really
isn't much you can do with it in code. Post some of the code you're using to
set up your UI and maybe someone can see something to indicate why you're
having the problem you're having.

--
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


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:963d59811277c@uwe...
Outlook editor? I mean outlook use internal editor, not word editor, i
called
it "outlook editor", i'm sorry for that.

Yes, you're right, i create my UI in first inspecotr Active event, and get
outlook encrypt and sign button reference before create UI.

If it is word editor, state is ok, if it is not word editor, just like
what i
mentioned, if you do not close an inspector before getstate, it is not
correct.


 




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
Encrypt and sign button while word is editor for outlook? ryotyankou via OfficeKB.com Add-ins for Outlook 6 May 14th 09 05:27 AM
Disable sign and encrypt buttons [email protected] Add-ins for Outlook 0 June 20th 07 09:18 PM
"Could not sign or encrypt" message in Outlook 2002 Steve Paulsson Outlook - General Queries 3 February 20th 07 02:13 PM
Sign, encrypt and decrypt in a Citrix session David H. Lipman Outlook - General Queries 0 August 25th 06 01:46 AM
Sign and Encrypt Emails on Custom Form [email protected] Outlook - Using Forms 0 June 26th 06 05:48 PM


All times are GMT +1. The time now is 12:59 PM.


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.