Results 1 to 25 of 25

Thread: [PARTIALLY RESOLVED] RichTextBox

Threaded View

  1. #1

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Resolved [PARTIALLY RESOLVED] RichTextBox

    Hi

    I am sure there must be a very simple solution for this but guess what? I am stuck... I have tried to explain my problems in detail but if you still have a query, do ask.

    Lets say a RTB has the following text...

    johny went for a walk
    Today is monday
    Yesterday was sunday
    day after tomorrow will be Wednesday
    1) How do I loop through every line in the RTB and display the text in a messagebox? For example, it should first display "johny went for a walk" and then "Today is monday" and so on till the end of RTB is reached.

    2) How do I put a "#" sign before every sentence so that I get something like the below at a click of a button. If this is not possible which I doubt, an alternative for this would be what I have in mind (see Question 4)

    #johny went for a walk
    #Today is monday
    #Yesterday was sunday
    #day after tomorrow will be Wednesday
    3) How do I disable pasting of Ole objects in RTB? If a user copies text+image and presses Ctrl + V in the RTB, only the text should be copied. I know how to do it for simple text but I want to block Ole objects... In short I want selective "Paste" to happen

    and lastly,

    4) RichTextBox1.SelBullet = True will enable the bullet in RTB. Is there any way that I can change the type of bullet from the "Dot" to say a "#"?

    Sidz
    Last edited by Siddharth Rout; Feb 10th, 2009 at 02:50 AM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width