Form Script: Generate a clic event on text ?

B

bbnimda

Hi all,

I use a modified form script and try to generate a click event on label or
textbox I search for a long time but didn't found, is that possible or
I loosing my time

Thks
 
S

Sue Mosher [MVP-Outlook]

Text boxes don't fire a click event on custom forms, even if they're unbound. A label that is not bound to an Outlook property would fire a Click event, though. Of course, only forms published with the "send form definition with item" box unchecked will run code at all.
 
B

bbnimda

Hi Sue,

Unfortunately It doesn't work, I tryed many ways without success, perhaps I
didn't understand every thing (my english is too poor :(( )

1) Witch properties of the label do I have to select (in right click =>
properties)
2) What parameters of the label do I have to modify t (in right click =>
Advanced properties)

Nb: In my form I dont need to attach the label to any value (I use it only
to increment an index), am I right to use it in this way

Thks in advance.




"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
Text boxes don't fire a click event on custom forms, even if they're
unbound. A label that is not bound to an Outlook property would fire a Click
event, though. Of course, only forms published with the "send form
definition with item" box unchecked will run code at all.
 
S

Sue Mosher [MVP-Outlook]

No properties are involved. If the label is not bound to an Outlook field, it will automatically generate a Click event. See http://www.outlookcode.com/d/tips/formhyperlink.htm for a code example.

The most important issue, however, is the one I stated: Only forms published with the "send form
definition with item" box unchecked will run code at all. See http://outlookcode.com/article.aspx?id=67
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


bbnimda said:
Hi Sue,

Unfortunately It doesn't work, I tryed many ways without success, perhaps I
didn't understand every thing (my english is too poor :(( )

1) Witch properties of the label do I have to select (in right click =>
properties)
2) What parameters of the label do I have to modify t (in right click =>
Advanced properties)

Nb: In my form I dont need to attach the label to any value (I use it only
to increment an index), am I right to use it in this way

Thks in advance.




"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
Text boxes don't fire a click event on custom forms, even if they're
unbound. A label that is not bound to an Outlook property would fire a Click
event, though. Of course, only forms published with the "send form
definition with item" box unchecked will run code at all.

bbnimda said:
Hi all,

I use a modified form script and try to generate a click event on label
or
textbox I search for a long time but didn't found, is that possible
or
I loosing my time
 
B

bbnimda

Hi Sue,

Yes you were rigth, I probably did something wrong the first time,

Tks a lot


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de %[email protected]...
No properties are involved. If the label is not bound to an Outlook field,
it will automatically generate a Click event. See
http://www.outlookcode.com/d/tips/formhyperlink.htm for a code example.

The most important issue, however, is the one I stated: Only forms published
with the "send form
definition with item" box unchecked will run code at all. See
http://outlookcode.com/article.aspx?id=67
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


bbnimda said:
Hi Sue,

Unfortunately It doesn't work, I tryed many ways without success, perhaps
I
didn't understand every thing (my english is too poor :(( )

1) Witch properties of the label do I have to select (in right click =>
properties)
2) What parameters of the label do I have to modify t (in right click =>
Advanced properties)

Nb: In my form I dont need to attach the label to any value (I use it
only
to increment an index), am I right to use it in this way

Thks in advance.




"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de news: (e-mail address removed)...
Text boxes don't fire a click event on custom forms, even if they're
unbound. A label that is not bound to an Outlook property would fire a
Click
event, though. Of course, only forms published with the "send form
definition with item" box unchecked will run code at all.

bbnimda said:
Hi all,

I use a modified form script and try to generate a click event on label
or
textbox I search for a long time but didn't found, is that possible
or
I loosing my time
 

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

Top