Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to adding icon inside textbox
Posted

You may want to draw an image (for search or to show busy)

see this link:
http://www.codeproject.com/Messages/3010929/Re-Icon-in-a-textbox.aspx[^]
 
Share this answer
 
You cannot put an icon inside a TextBox: the clue is in the name. TextBox.

It only holds Text.

You can do it if you use a RichTextBox, or if you derive a user control from a TextBox. The former would probably allow the user to delete the icon, the latter would put it under your control.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Jul-11 0:34am    
Of course not, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900