[dba-VB] Icons on Buttons & form templates in VB 6

Jim DeMarco Jdemarco at hshhp.org
Wed Mar 5 09:27:23 CST 2003


I usually ship the icons with the app.  You could change their extensions if you don't want anyone to see them.  I believe you can store them in a resource file as well.  This way you don't have to ship the icons they become a part of the resource file.  Haven't used this method even though I've considered it a time or two.

HTH,

Jim DeMarco
Director of Product Development
HealthSource/Hudson Health Plan


-----Original Message-----
From: Mark L. Breen [mailto:subs at solution-providers.ie]
Sent: Wednesday, March 05, 2003 8:19 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] Icons on Buttons & form templates in VB 6


 Hello All,

 I am curious as to what is considered best practice when using icons or
 pictures on buttons etc

 When an icon is created onto a button, it appears that the application
 retains a link to the icon, or to put it another way, it is passed by ref
as
 opposed to by val.  If this is the case, I will probably get an error when
I
 roll out on a pc without the same paths as I have (which are the normal MS
 Office setups).

 So I wondered what others do.  Do you move the.ico files to the app.path
 directory and then ship then with the exe?

 The reason I noticed the problem is when I created a form from a template.
 The template lost it's icons.  I also got some other errors relating to
 class modules that were also referenced from the form, but I am not so
 worried about those as I know where they are.

 I am not so much asking one question here as wondering what you guys do
with
 your .ico files and also what your experience has been with template forms.

 Thanks in advance for your time,

Best Regards


Mark L. Breen
Solution Providers Ltd
Ireland



_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************




More information about the dba-VB mailing list