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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Keypress and OLKCombobox on form region



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 23rd 07, 02:10 PM posted to microsoft.public.outlook.program_vba
shubhangi
external usenet poster
 
Posts: 28
Default Keypress and OLKCombobox on form region

hi
I've adjoined form region to compose message.On the form region I've placed
2 comboboxes(OLKComboboxes) & handling their keypress event in VSTO Add In.
In one scenario ,I need to set keyascii=0 ,but though in keypress event
I set keyascii= 0 ,still the char being pressed is displayed in combobox.
I also tried to set combobox text="" in keypress event but invain.
Keypress event also doesn't get fired when ENter key is pressed.
Is there any way to discard the char pressed & modify the text in combobox
in keypress event?

Thanks
-shubhangi


  #2  
Old October 23rd 07, 04:14 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Keypress and OLKCombobox on form region

I'm not sure that anything much other than a Change event is really a valid
way of handling an OLKCombo.

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


"shubhangi" wrote in message
...
hi
I've adjoined form region to compose message.On the form region I've
placed
2 comboboxes(OLKComboboxes) & handling their keypress event in VSTO Add
In.
In one scenario ,I need to set keyascii=0 ,but though in keypress event
I set keyascii= 0 ,still the char being pressed is displayed in combobox.
I also tried to set combobox text="" in keypress event but invain.
Keypress event also doesn't get fired when ENter key is pressed.
Is there any way to discard the char pressed & modify the text in
combobox
in keypress event?

Thanks
-shubhangi


 




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
form region not shown properly sd[_2_] Outlook and VBA 4 October 17th 07 09:09 PM
'adjoining' form region Alan Outlook - Using Forms 1 May 29th 07 05:42 PM
Communicate with a Form Region Vbasiccode Outlook - Using Forms 5 May 9th 07 10:51 PM
forward an attachment with form region Nikolas Outlook - Using Forms 4 March 16th 07 10:44 AM
only one instance of form region is displayed Nikolas Outlook - Using Forms 4 October 6th 06 03:37 PM


All times are GMT +1. The time now is 12:29 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.