Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.12/5 (5 votes)
See more:
i want a picturebox for inserting bullets in richtextbox,when the user click on it the bullets get added and when the user again click on picture box then the bullets are not added.
Posted
Updated 13-Feb-21 15:20pm
Comments
Sergey Alexandrovich Kryukov 20-Aug-14 16:09pm    
How it is possibly could be related to PictureBox? Even if it contains a bitmap to be used for a bullet, this is unrelated to PictureBox...
—SA

Wh not add the bullet characters to the rich text box?
Why do they have to click on a picture box?
Couldn't it just be a bullets button like in Word that would update the rich text box?
Usually bullets are applied to a selected set of text.
Please clarify!
 
Share this answer
 
Comments
Nainaaa 21-Aug-14 4:05am    
ok so how to add bullet button??
C#
//To Add bullets
 richTextBox1.BulletIndent = 10;
 richTextBox1.SelectionBullet = true;


//To remove bullets
C#
richTextBox1.SelectionBullet = false;
 
Share this answer
 
v2

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