Help with Homemade Outlook Control **Resolved**
A friend of mine gave me a great idea on how I can create my own Outlook Control (see attached Project) by using two (2) Command Buttons, one (1) Listview and one (1) Image List. I am having two problems with the control that I can seem to solve.
1) When both Command Buttons are on the top of the listview the first item in the Listview is partially hidden, so what I did was to add blank item as the first item which moves the items down so that they are not hidden but there is a large space between the Action Buttons and the Feature Buttons (see image).
2) The items in the listview are not center left to right, I have used the PictureAlignment to lvwCenter but to no avail. The only way I can get them centered is to reduce the width of the listview but I think there is a better way (please no sub classing).
any help will be greatly appreciated.
Re: Help with Homemade Outlook Control
You should see the code examples of Outlook controls over at vbaccelerator.com. Lots of good ideas to go by. ;)
Re: Help with Homemade Outlook Control
Quote:
Originally Posted by RobDog888
You should see the code examples of Outlook controls over at vbaccelerator.com. Lots of good ideas to go by.
I have already, but I don't want to take on the task of adding a new control to my existing application. I have a lot of machines running this app (Win95, WIN98, WinME and WinXP machines). My existing application is using the controls I have used to construct this outlook control. Let me ask you a question, I have another Outlook control that works great :bigyello: :bigyello:. I constructed it using a picturebox and Image containers (for the items) instead of the listview which would be a better choice the picturebox or the listview as they relate to system resources? I have been told that the picture boxes don't utilize system resources very well.
Thanks again. :thumb:
Re: Help with Homemade Outlook Control
Attached is a copy of the control
Re: Help with Homemade Outlook Control
I havent heard that about pb's, but I think that listviews are more resource intense then pictureboxes depending
on the quanity of items added.
Re: Help with Homemade Outlook Control
About all you can do to center the items is use the Listview1.Arrange = lvwAutoTop and keep the lvw narrow enough to make
it appear centered. Then place a shape behind the lvw of the same color as to give the appearance of a wider listview that is centered.
Will you be giving any dragdrop functionality? if not you need to disable that too.
Re: Help with Homemade Outlook Control
That is a great idea, I never thought of that.
Thanks :wave: