Computing.Net > Forums > Programming > VB6 - very quick and simple questio

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6 - very quick and simple questio

Reply to Message Icon

Name: Col
Date: September 27, 2006 at 08:06:36 Pacific
OS: XP Home + SP2
CPU/Ram: 512MB DDR, 3.2GHz P4
Product: Custom-built
Comment:

Just a very quick question. I've got myself a book and am learning VB in my spare time. Not a course or anything, just out of interest.

I was just wandering: In some forms in Windows you can check a box by clicking the text next to it which relates to it, and the selection rectangle goes round the text as well as the checkbox.

How is that done?

Thanks!

Immitation is the sincerest form of copyright infringement.



Sponsored Link
Ads by Google

Response Number 1
Name: Sci-Guy
Date: September 28, 2006 at 05:59:47 Pacific
Reply:

This is the default behaviour for a checkbox.

Clicking on the caption will put a check in the box and the selection rectangle will surround both the checkbox and it's caption.

Make sure you are using the checkbox's caption property rather than using a label.

Please let us know if you found someone's advice to be helpful.


0

Response Number 2
Name: Col
Date: September 30, 2006 at 13:04:33 Pacific
Reply:

Ah, now I see.

Thanks a lot! I thought I had to put a seperate label in and link it somehow.

Immitation is the sincerest form of copyright infringement.


0

Response Number 3
Name: Col
Date: October 1, 2006 at 05:26:18 Pacific
Reply:

Okay, just one more thing (I think):

I have a Print button which, when clicked, prints text. But as well as that, I need an image. How do I print an image in VB?

Immitation is the sincerest form of copyright infringement.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


program handle windows/II... VB and Wget



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB6 - very quick and simple questio

perl - GUI for Win32 programing www.computing.net/answers/programming/perl-gui-for-win32-programing/1715.html

Programming in java www.computing.net/answers/programming/programming-in-java/7510.html

VB weak language??????? www.computing.net/answers/programming/vb-weak-language/2620.html