trying to convert selected text in a textbox to bold font.
can someone provide me code sample?
thanks. 6 1923
Mike,
In my idea is what you want with a textbox impossible (or you should set
your computer in any way only displaying bold characters).
Use for your purpose the richtextbox.
Cor
On Nov 29, 10:35 am, mike <m...@discussio ns.microsoft.co mwrote:
trying to convert selected text in a textbox to bold font.
can someone provide me code sample?
thanks.
Just to make sure you understand Cor's message... He's telling you,
correctly, that you can't get there from here. In a normal TextBox
contorl, the font is either bold or it's not. You can't have some
bold, some not bold. To accomplish that, you need to use a
RichTextBox control.
--
Tom Shelton
On Thu, 29 Nov 2007 09:35:01 -0800, mike
<mi**@discussio ns.microsoft.co mwrote:
>trying to convert selected text in a textbox to bold font.
can someone provide me code sample?
You can't do that. A Textbox has one Font property that applies to
all of the text.
"mike" <mi**@discussio ns.microsoft.co mwrote in message
news:AE******** *************** ***********@mic rosoft.com...
trying to convert selected text in a textbox to bold font.
can someone provide me code sample?
You can do it with a richTextbox control. I have just done that with a
project where I had to search the textbox, find keywords or a character in
a Textbox, and bold the word or single character in the textbox.
<http://www.google.com/search?hl=en&q= how+to+bold+a+w ord+in+a+richTe xtBox+VB.net&bt nG=Search>
"mike" <mi**@discussio ns.microsoft.co mschrieb:
trying to convert selected text in a textbox to bold font.
Take a look at the richtextbox control and its 'SelectionFont' property.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Herfried,
It is long ago that we have heare "YodaLeay ahoe" or whatever they do it in
Austria.
:-)
(just smiling friday as you know)
Cor
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.atschre ef in bericht
news:%2******** **********@TK2M SFTNGP05.phx.gb l...
"mike" <mi**@discussio ns.microsoft.co mschrieb:
>trying to convert selected text in a textbox to bold font.
Take a look at the richtextbox control and its 'SelectionFont' property.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Imaya Kumar |
last post by:
Hi,
i'm developing an editor in VS.NET using Rich Text Box
Control. I need to make a selected text Bold. how can i do
this? also i will have an Italic Button too. If i click
Bold button the selected text has to become bold, and if i
click italic button, the bolded text has to become Italic
too with the bolded attribute. how can i do this?...
|
by: Ronny sigo |
last post by:
Hello all,
I have made a form with a lot of entryfields and one button which, when
clicked on, transforms all of the entryfields values into a MS Word
document.
All the formatting is done programatically and all works well, except for
one thing:
I don't seem to be able to make a paragraph apear in bold.
I have tried: Selection.Font.Bold =...
|
by: TM |
last post by:
I have a messagebox and I would like to display a message along with the
some selected text I am searching for.
But I would like the selected text to appear as bold.
I would like my message box to show:
No more items found for: (this text in bold)
Is there any way to do that ?
Thanks
|
by: Mano |
last post by:
When settiing a TreeNode to bold the text label of that node is clipped. As
describedin in the Bug Rebort FDBK16963 I set the underliying TreeView Fond
to be bold.
Now I have the strange behavior, if I delete all childnodes, when the parent
node is expanted, and rebuild all child treenodes, I can make an childnode
bold without clipping it....
|
by: Jason |
last post by:
If I've got
Me.RichTextBox1.Text = "In Ricn Tex Box"
Me.RichTextBox1.Text &= "Line two" & vbCrLf
How do I make the first line appear BOLD?
| |
by: andreas |
last post by:
When I select a text in a richtextbox to set de selected text in bold,
regular, italic .. or non I want to do that with one click
Thus I must find out if the selected text is already in bold, regular,
italic......
Is there any code for this
Thanks for any response
|
by: Prose |
last post by:
Okay i already made a discussion about this but this time.. i thought id be more acurate soo:
Im Using VB 2005 Express Edition
Im Making a Text Editor kinda like MS Word and Notepad Combined, So far i have Coded These Buttons:
New File
Open
Save
Save As
Close
Undo
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
I have code to bold text in a datagridviewcell:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim cs As DataGridViewCellStyle, fnt As Font
For Each c As DataGridViewCell In dgrv1.SelectedCells
cs = c.Style
Console.WriteLine(c.Style.Font)
fnt = dgrv1.Font...
|
by: jamesd0142 |
last post by:
Hi,
im using a rich text box called "main", a button called "bold".
when my program is running i want to be able to type in the rich text box, then when i highlight some text and press the bold button it changes the selected text to bold
how is this done?
im using vb express 2005
found it:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |