|
-
Oct 17th, 2008, 05:37 PM
#1
Thread Starter
Lively Member
Yahooo... got it working
Longwolf, thanks for the "project".
I had actually gotten all that done by myself.
Created 3 more functions.
Figured out the correct X and Y, and had to initialize the boolean "bFound" for each function.
That is what was causing me to burp out with a -1.
And.. I am using a Picturebox, not an Image.
And... when using the "PaintPicture" method, if the Picturebox you are copying/painting from does NOT contain a "picture" (as in some image or bitmap) you get an ERROR.
So I have opted to use 2 pictureboxes, and I then do a BitBlt from one box to the other.
It all works GREAT.
Of course, I have spent most of today working on this, building a little test project I can set up for you to see.
One problem I am encountering....
To ensure the user-provided text actually fits in to the Picturebox, I resize it once I determine how long the text string is. I resize it to the same width and height as the text string, so I can actually fit it all into the picturebox.
Well, if during this resizing, the picturebox now overlays some other form objects....OhBoy... CRASH time. (I'm running Vista).
So I have spent the last few hours trying to figure out how to circumvent this issue.
The easiest solution is to limit the length of the text string, to ensure it fits into a maximum picturebox size.
But I would prefer to NOT do that.
So I am working on that process right now.
Once I get it all working pretty good, I'll post the project code for you (and anyone else who might be interested).
Thanks again
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
|