PC Review


Reply
Thread Tools Rate Thread

Controls in VBA

 
 
Alberto
Guest
Posts: n/a
 
      28th Dec 2009

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.



 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      28th Dec 2009
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" <(E-Mail Removed)> wrote in message
news:038DAC3A-1282-4D59-AB06-(E-Mail Removed)...
>
> 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.
>
>
>


 
Reply With Quote
 
Alberto
Guest
Posts: n/a
 
      28th Dec 2009

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" <(E-Mail Removed)> wrote in message
> news:038DAC3A-1282-4D59-AB06-(E-Mail Removed)...
> >
> > 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.
> >
> >
> >

>
> .
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      28th Dec 2009
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" <(E-Mail Removed)> wrote in message
news:62744C03-F20D-4732-B668-(E-Mail Removed)...
>
> 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...
>


 
Reply With Quote
 
Alberto
Guest
Posts: n/a
 
      29th Dec 2009


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" <(E-Mail Removed)> wrote in message
> news:62744C03-F20D-4732-B668-(E-Mail Removed)...
> >
> > 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...
> >

>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski Microsoft ASP .NET 4 5th Sep 2007 04:27 AM
Why the properties of web user controls which inherted from my custom base UI controls MISSED? ABC Microsoft C# .NET 0 21st Nov 2005 04:08 AM
Message box breaks owner draw controls in .NET controls used as ActiveX controls (again) Clive Dixon Microsoft Dot NET Framework Forms 0 26th May 2004 10:15 AM
Multiple controls with the same ID '_ctl24' were found. Trace requires that controls have unique IDs Jeff Tolman Microsoft ASP .NET 0 4th Nov 2003 09:53 PM
How to force the child controls OnClick event before the parent controls CreateChildControls method? Arulraja Microsoft ASP .NET 3 17th Oct 2003 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:08 AM.