|
-
Feb 20th, 2003, 07:52 PM
#1
Thread Starter
Member
editing string to recognize .hDC
I have a BUNCH of pictureboxes with pictures in them, each with just a little different name.. for instance.
paperred
paperblue
papergreen
paperorange
Now what im tryin to do it BitBlt then into a larger picture box as I need them. I tried to do it this way.. paraphrased
-------------------------------------------------------------------------
dim colorn as string
if color=1 then colorn="red"
firstdc= "paper" & colorn & ".hDC"
bitblt carscreen.hDC, 0, 0, 50, 50, firstdc, 0, 0, SRCCOPY
--------------------------------------------------------------------------
Now, I know everything works, cause I replaced firstdc with just paperred.hDC and it worked fine. How do I go about combining the string so the VB can recognize it as the actual paperred picture box and paperred.hDC im really confused and have been trying to get this to work for days.
Also I did this
firstdc= paperred.hDC
Please dont give me different ways to do this like making it one big picture box, I need to do it this way.. Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|