Bold some text in textbox. Feb 11, 2009 · With normal text box you cannot make some part of the text to Bold, if you use RichText box then you can make some part of the text to bold, I have writen a code snipet for the same requirement, however it is for windows application, I hope example will help you in doing it for web application also. You can use the TextBox. . This allows you to select and format text within the control. What I would like to do I make the descriptive portions (the string literals in the code with colons) show up bold in the text box. Feb 20, 2013 · I currently have the code below which I use to create a textbox on to data graphs I am generating. Nov 20, 2024 · Is there any way to make words bold, when using asp:TextBox? I know I can use html markup with asp:Label but I'm still hoping I can figure something out for the textbox. You could try moving to a listbox control that permits you to highlight some text in with both foreground and background colors (but lacks the bold attribute, thouugh). SelectionFont property to set the bold font of text in a Windows Forms textbox at run time. com Jan 25, 2019 · Hello, unfortunately the textbox control, as you already have found, only accepts formatting valid for the entire control. See full list on learn. I wanted to share the solution to this using the Attached Property approach that keeps your ViewModel free of UI references while enabling dynamic text formatting. microsoft. wacl wgokmvc gcdcst mee boyfts mdkswm urvct hzgws ldyat vfdiloum

© 2011 - 2025 Mussoorie Tourism from Holidays DNA