Unbound Controls

A

Alexander Mueller

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).
 
A

Alexander Mueller

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Cannot select items in listbox 1
Run-time error '2115' 4
How to bound an unbound listbox 2
Listbox bound 6
Unbound ListBox 1
Listboxes and select items in it 6
Access 2 Digit year in Access Text Box 3
Set form dirty through unbound control 2

Top