On Tue, 07 May 2013 11:34:13 +0100, Deanna Earley
<
dee.e...@icode.co.uk> wrote:
>On 07/05/2013 07:15, MM wrote:
>> Book, web page etc?
>
>Personally, I just go to the "Project" menu, then "Add User Control".
>
>If you want any more specific advice, you're going to need to provide
>FAR more information.
Not having written any user controls, I'd like to read a well-written,
detailed "how to" of the process. I've got Dan Appleman's book on
ActiveX, but it's far too wordy. I just need to know the nitty-gritty,
without an in-depth study of how the name ActiveX came about or Bill
Gates' inside leg measurement or such other arcane filler material
with which Appleman pads out his books.
I've also browsed the Amazon book section and checked "Look Inside"
when available. So far, I have a few books on my short list (all
available used for as little as a penny, plus �2.80 postage, i.e.
cheap as chips):
Programming Microsoft� Visual Basic� 6.0 - Francesco Balena
Visual Basic 6 How To Programm - Harvey M Deitel
Visual Basic 6 Programming Blue Book - Peter G Aitken
All the above have chapters on ActiveX programming.
I mostly have books up to VB5 in my cupboard. I've got several
VB6-specific books, but they're all to do with database design and
ADO.
So I'd like to know what other books programmers have used to get
started with writing a user control and which ones they found really
useful. There are so many new concepts to learn about, one of which
being "PropertyBag".
What I finally want to achieve is a control, in this case the Vemod
SeeThroughPictureBox (see
http://www.musiker.nu/objectstudio/VBPage),
embedded in a user control that has extra properties added, so that I
don't have to store those extra values outwith the control as I have
done in the past. It's okay, until one has a control array and want to
add/remove new elements at runtime. Then managing the external
array/dictionary/collection/whatever becomes messy. Sure, one can use
the Tag property for some values, but storing several values of
different types in that one string property, although possible (I've
done it), again, it's messy.
Far better to just write the values into the extra properties designed
into the user control, so that if I remove an element from the control
array, that's it. I don't then have to faff around, removing related
data from external storage or setting some flag to -1 to denote
dead-ness.
Get my drift?
MM