Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Best Way for Pictures

0 views
Skip to first unread message

Dongo!

unread,
Oct 28, 2003, 10:01:34 AM10/28/03
to
Hi Again Group Sorry to bother you again!

On my project I have several Command Buttons, As these looking boaring im
looking at replacing these with Pictures/Icons could anybody suggest the
best way of going about this, on average there is 5 command buttons on each
for.

Regards
Si


J French

unread,
Oct 28, 2003, 10:49:45 AM10/28/03
to

I would replace them with UserControls
- make user controls with the same properties and events as Buttons

Dongo!

unread,
Oct 28, 2003, 11:00:11 AM10/28/03
to
sorry im new to VB - could you explain a little bit more, sorry to be thick!

Regards
Si

"J French" <ere...@nowhere.com> wrote in message
news:3f9e8ff4....@news.btclick.com...

Martin Trump

unread,
Oct 28, 2003, 11:43:14 AM10/28/03
to
In article <bnm06c$dmk$1...@newsreaderg1.core.theplanet.net>, Dongo!
<s_j_gre...@yahoo.co.uk> writes

>On my project I have several Command Buttons, As these looking boaring im
>looking at replacing these with Pictures/Icons could anybody suggest the

Check out the DisabledPicture, DownPicture and Picture properties of the
command button.

HTH

Regards
--
Martin Trump

BeastFish

unread,
Oct 28, 2003, 12:23:42 PM10/28/03
to
I generally just use MS Paint, and save them as bitmaps. I'll either save
them with as small a color palette as possible (ie, 16 color), or run them
through a graphics program to reduce the palette as far down as possible.
It may take some experimentation to get them sized and looking good (may
need some blank pixel lines on top, etc.).

To add to the properties Martin mentioned, you'll also need to set the Style
(Graphical), MaskColor, and UseMaskColor properties, using the latter two to
set the transparent background color.

"Dongo!" <s_j_gre...@yahoo.co.uk> wrote in message
news:bnm06c$dmk$1...@newsreaderg1.core.theplanet.net...

Martin Trump

unread,
Oct 28, 2003, 1:53:13 PM10/28/03
to
In article <bnm8j0$13pij6$1...@ID-201199.news.uni-berlin.de>, BeastFish
<beas...@for-president.com> writes

>To add to the properties Martin mentioned, you'll also need to set the Style
>(Graphical), MaskColor, and UseMaskColor properties, using the latter two to
>set the transparent background color.

Thanks, BeastFish. Answering probs here is a two way process.

I live and learn.

Regards.
--
Martin Trump

J French

unread,
Oct 29, 2003, 4:02:42 AM10/29/03
to
On Tue, 28 Oct 2003 16:00:11 -0000, "Dongo!"
<s_j_gre...@yahoo.co.uk> wrote:

>sorry im new to VB - could you explain a little bit more, sorry to be thick!
>

UserControls are like Forms that can be added to other Forms

They have all the functionality of a Picturebox

If you do want to replace Buttons with something 'home grown', then
the simplest method is to use UserControls

0 new messages