in

Share your IT thoughts...

I N F O R M A T I O N   T E C H N O L O G Y   P O R T A L   O F   E X P E R T S
Latest post Wed, May 27 2009 3:13 AM by NinethSense. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • Thu, May 14 2009 12:32 AM

    • sjose
    • Top 25 Contributor
    • Joined on Thu, May 14 2009
    • Beginner
    • Points 82

    Richtextbox problem in C#

     Hi

    I'm developing a windows forms application that uses Richtextbox to display multiple font text. I want to place a checkbox infront of each record in Richtextbox control that help the user to copy the selected checkbox records.

    I have added the checkbox with the following method.

      Richtextbox.Controls.Add(Checkbox);

    But the problem is that checkbox appears to be top of the richtextbox screen and is not associated with scrollable property neither data.

    Please help.

    Thank You,

    Sjose.

     

    • Post Points: 41
  • Thu, May 14 2009 1:21 AM In reply to

    • NinethSense
    • Top 10 Contributor
    • Joined on Tue, Jul 1 2008
    • India
    • Master
    • Points 7,887

    Re: Richtextbox problem in C#

    Not sure what are you trying to achieve. Anyway, I assume by a record you meant a line in RichTextBox.

    In this case you can add Label controls also along with CheckBox. and use these label controls to use as column content in the record.

    Please give more details so that we can suggest a better way.

    • Post Points: 41
  • Thu, May 14 2009 5:19 AM In reply to

    • sjose
    • Top 25 Contributor
    • Joined on Thu, May 14 2009
    • Beginner
    • Points 82

    Re: Richtextbox problem in C#

    HI,

     Thanks for your reply.

     Your assumption is right. I meant record for line.

    I cannot add label along with Checkbox as label does not support multiple fonts.

    I like to create a control that have an appearance of a "checked listbox", and it should support all the richtextbox functionalities like 

    1.      It should support multiple fonts (Greek, Hebrew etc) and formatting styles.

    2.      It should support copy and paste functionalities of selected text / windows entire content.

    3.      When we paste the copied content to Word, it should preserve all the formatting.

    4.      It should support link functionality.

    I can do all the above stuffs with richtextbox. But am in  trouble in placing a checkbox infront of each line.

    Thanks,

     Sjose.

    • Post Points: 41
  • Fri, May 15 2009 4:18 AM In reply to

    • NinethSense
    • Top 10 Contributor
    • Joined on Tue, Jul 1 2008
    • India
    • Master
    • Points 7,887

    Re: Richtextbox problem in C#

    I will try some experiments and let you know.

    • Post Points: 15
  • Wed, May 27 2009 3:13 AM In reply to

    • NinethSense
    • Top 10 Contributor
    • Joined on Tue, Jul 1 2008
    • India
    • Master
    • Points 7,887

    Re: Richtextbox problem in C#

    Did you solve the issue?

    • Post Points: 15
Page 1 of 1 (5 items)