Home > Archive > Visual Basic > December 2005 > visual basic 6 newbie help please
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
visual basic 6 newbie help please
|
|
| solway 2005-12-14, 10:34 am |
| hi all.
I've just started learning VB6 and have come across a few problems I've can't seem to solve/work out :(.
i have a 3 questions:
1:
can you add pictures into one exe without having a dir with them in? for example, if i was making a timer, and each number was a picture. so you don't have a directory. its integrated into the .exe.
2:
is there a way to put a image over a textbox? i want a image with a transparent middle to go over the textbox (textbox doesnt get edited by user), so you can still see the information in the textbox.
3:
is there a way to enable a textbox, once a ticking clock reaches a certain value?
example: the clock is made of 5 textboxs (m m m : s s), and i would like a textbox to enable soon it reach 0 0 4 : 0 0 (4mins).
can you guys help? i know its a bit out of the blue. but I'm stuck :(
if you do help, can you explain in detail, since i don't know much about visual basic's advanced features yet.
regards
solway | |
| Bob Butler 2005-12-14, 9:55 pm |
| "solway" <solway.2023lo@mail.codecomments.com> wrote in message
news:solway.2023lo@mail.codecomments.com
> hi all.
>
> I've just started learning VB6 and have come across a few problems
> I've can't seem to solve/work out :(.
> i have a 3 questions:
>
> 1:
> can you add pictures into one exe without having a dir with them in?
> for example, if i was making a timer, and each number was a picture.
> so you don't have a directory. its integrated into the .exe.
You could use a resource file; you could also create an array of image or
picturebox controls and assign the pictures at design time.
> 2:
> is there a way to put a image over a textbox? i want a image with a
> transparent middle to go over the textbox (textbox doesnt get edited
> by user), so you can still see the information in the textbox.
Not sure I follow.... why wouldn't you just put the textbox over the image?
You could also just use the .PaintPicture and/or .Print methods to write
text directly on the displayed image
> 3:
> is there a way to enable a textbox, once a ticking clock reaches a
> certain value?
> example: the clock is made of 5 textboxs (m m m : s s), and i would
> like a textbox to enable soon it reach 0 0 4 : 0 0 (4mins).
Have a timer control running and update the controls when it fires; save
the value of "Now" when you start the timer and then use DateDiff to get the
elapsed time in the timer event (don't rely on the timer firing at exact
intervals -- it won't).
> can you guys help? i know its a bit out of the blue. but I'm stuck :(
> if you do help, can you explain in detail, since i don't know much
> about visual basic's advanced features yet.
the VB help and http://groups.google.com should let you find sample code and
explanations for most things; see what you can figure out and then come back
with more specific questions and you'll probably get a lot more help here
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
|
|
|
|
|