![]() |
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
|
|||
|
|||
![]()
Hi
I'd like to know two things: 1) How is it possible to not bind a control (TextBox/ListBox) on a Outlook form that edits a contact item to a certain field/Property? I want a ListBox to display a number of strings in checkbox-mode (Liststyle = 1, MultiSelect = 1) It seems not to be possible in the standard Property-page because the textbox field for possible values is disabled as long the control is not bound to a Property 2) How do I catch the click event of a ListBox? If I open the Script-Editor the Events-Pane displays only the events of the Form itself (Open/Read/Item_PropertyChanged etc..) Do I simply have to enter it the default VBA-way: Sub ListBox1_Click Msgbox "clicked" End Sub ? Any hints very much appreciated! MfG, Alex (Sorry for multiposting to the ol.forms-ng). |
#2
|
|||
|
|||
![]()
1) Use code behind the form to fill the list. See http://www.outlookcode.com/article.aspx?ID=32
2) A multi-select list box does not fire a Click event, only single-select list boxes. If it were a single-select list box, you'd type in the Click event handler as in your example. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Alexander Mueller" wrote in message ... Hi I'd like to know two things: 1) How is it possible to not bind a control (TextBox/ListBox) on a Outlook form that edits a contact item to a certain field/Property? I want a ListBox to display a number of strings in checkbox-mode (Liststyle = 1, MultiSelect = 1) It seems not to be possible in the standard Property-page because the textbox field for possible values is disabled as long the control is not bound to a Property 2) How do I catch the click event of a ListBox? If I open the Script-Editor the Events-Pane displays only the events of the Form itself (Open/Read/Item_PropertyChanged etc..) Do I simply have to enter it the default VBA-way: Sub ListBox1_Click Msgbox "clicked" End Sub |
#3
|
|||
|
|||
![]()
Sue Mosher [MVP-Outlook] schrieb:
[How to fill an unbound control] 1) Use code behind the form to fill the list. See http://www.outlookcode.com/article.aspx?ID=32 [How to catch the click event of a listbox-control] 2) A multi-select list box does not fire a Click event, only single-select list boxes. If it were a single-select list box, you'd type in the Click event handler as in your example. Hi Sue Thank you very much for your reply and the most helpful links. I did as you told and it works, thanks ;-) MfG, Alex |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ActiveX Controls in Outlook | Ron | Outlook - Installation | 1 | December 13th 07 04:46 PM |
Outlook form controls | Always Trying to Learn | Outlook - General Queries | 0 | August 28th 07 02:56 AM |
What controls the source visibility? | Michael Moser | Outlook Express | 3 | August 21st 06 01:27 PM |
Add controls with out publishing in C# | lg | Add-ins for Outlook | 12 | July 13th 06 02:49 PM |
Using MFC controls in Outlook Add-in (ATL/C++) | Kim, KiSong | Add-ins for Outlook | 0 | March 7th 06 07:03 AM |