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

Unbound Controls



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 10th 07, 09:48 AM posted to microsoft.public.outlook.program_forms
Alexander Mueller
external usenet poster
 
Posts: 5
Default Unbound Controls

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  
Old December 10th 07, 01:23 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Unbound Controls

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  
Old December 12th 07, 11:09 PM posted to microsoft.public.outlook.program_forms
Alexander Mueller
external usenet poster
 
Posts: 5
Default Unbound Controls

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


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