I have a Windows Forms (.Net 2.0) app and I have a request to embed some custom images into some textboxes(like the new version of Tortoise does).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t used OwnerDraw on a textbox, but I’ve used it on other controls such as the listbox and listview and I’ve seen other people do this with textboxes. I found a tutorial that should point you in the right direction, it’s not used for displaying images in the textbox per se, but it could be used for that:
http://www.codedblog.com/2007/09/17/owner-drawing-a-windowsforms-textbox/
Hopefully that gets you started at least…