Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Controls in VBA (http://www.outlookbanter.com/outlook-vba/98387-controls-vba.html)

Alberto[_2_] December 28th 09 01:35 PM

Controls in VBA
 

Hello, i'd like to make more smart my controls in my VBA project. Instead of
Windows Forms 2.0 which ist the primary option when using Windows Forms I am
trying to use the controls of Microsoft Windows Common Controls 6.0 (SP6).
In particular: ListView, ListviewControl, ImageList, ImageCombo... and I'm
experiencing problems when using these controls. I´d like to show a list of
mails and an special icon associated depending of the sender. This ist not
possible with Windows Forms 2.0 and that's why i'm exploring this option.

Is it maybe not recommend the use of these controls in a VBA project??

Thank you.




Ken Slovak - [MVP - Outlook] December 28th 09 02:57 PM

Controls in VBA
 
What problems are you experiencing, please be specific.

What version of Outlook and what version of Windows?

Where are you trying to use those controls, in an Outlook custom form or a
VBA UserForm?

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


"Alberto" wrote in message
...

Hello, i'd like to make more smart my controls in my VBA project. Instead
of
Windows Forms 2.0 which ist the primary option when using Windows Forms I
am
trying to use the controls of Microsoft Windows Common Controls 6.0
(SP6).
In particular: ListView, ListviewControl, ImageList, ImageCombo... and I'm
experiencing problems when using these controls. I´d like to show a list
of
mails and an special icon associated depending of the sender. This ist not
possible with Windows Forms 2.0 and that's why i'm exploring this option.

Is it maybe not recommend the use of these controls in a VBA project??

Thank you.





Alberto[_2_] December 28th 09 06:55 PM

Controls in VBA
 

So i'm using:

Outlook 2003 11.8217 (SP3).
Windows XP Professional (SP2)

I'm trying to use these forms in an VBA UserForm.

Basically the problem appears in design mode when trying to link an
ImageList to a control which could use symbols or icons, i.e. Toolbar
Control, ListView...

I add one or more pictures to the ImageList Control, that's no problem. The
problem comes when i go to the Toolbar Control, click on (custom) and the
property pages will show. On the General tab I select Imagelist but there's
anything else than None. I was expecting to see the previously fullfilled
ImageList1 as selectable but it's not there, so I cannot add pictures to the
project (i didn't really go further because adding pictures is the only thing
i'm at this point interested on)

So, i would be very very happy if it was possible to use properly these
controls in VBA Forms..

Any help?

Thank you in advance...





"Ken Slovak - [MVP - Outlook]" wrote:

What problems are you experiencing, please be specific.

What version of Outlook and what version of Windows?

Where are you trying to use those controls, in an Outlook custom form or a
VBA UserForm?

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


"Alberto" wrote in message
...

Hello, i'd like to make more smart my controls in my VBA project. Instead
of
Windows Forms 2.0 which ist the primary option when using Windows Forms I
am
trying to use the controls of Microsoft Windows Common Controls 6.0
(SP6).
In particular: ListView, ListviewControl, ImageList, ImageCombo... and I'm
experiencing problems when using these controls. I´d like to show a list
of
mails and an special icon associated depending of the sender. This ist not
possible with Windows Forms 2.0 and that's why i'm exploring this option.

Is it maybe not recommend the use of these controls in a VBA project??

Thank you.




.


Alberto[_2_] December 29th 09 11:48 AM

Controls in VBA
 


Thanks Ken,

Writting an adding will be the next stage. At the moment I'll try to
survive within this environmment.



"Ken Slovak - [MVP - Outlook]" wrote:

It's very hit or miss, some of the VB6 controls work OK in UserForms, others
not so much. For example a DTPicker is OK, the image controls and image
lists don't seem compatible.

I'd probably do the coding in VB as a COM addin, then all those common
controls would work correctly.

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


"Alberto" wrote in message
...

So i'm using:

Outlook 2003 11.8217 (SP3).
Windows XP Professional (SP2)

I'm trying to use these forms in an VBA UserForm.

Basically the problem appears in design mode when trying to link an
ImageList to a control which could use symbols or icons, i.e. Toolbar
Control, ListView...

I add one or more pictures to the ImageList Control, that's no problem.
The
problem comes when i go to the Toolbar Control, click on (custom) and the
property pages will show. On the General tab I select Imagelist but
there's
anything else than None. I was expecting to see the previously
fullfilled
ImageList1 as selectable but it's not there, so I cannot add pictures to
the
project (i didn't really go further because adding pictures is the only
thing
i'm at this point interested on)

So, i would be very very happy if it was possible to use properly these
controls in VBA Forms..

Any help?

Thank you in advance...


.



All times are GMT +1. The time now is 03:36 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-2006 OutlookBanter.com