![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |