VB 2008 2 textboxes = 1 richtexbox

Discussion in 'Programming' started by scottlpool2003, Oct 10, 2009.

  1. #1
    Any idea on how to do this?

    I need the values from textbox1.text and textbox2.text to be entered into form2.richtextbox1.text without altering any of the content in form2.richtextbox1.text.

    Please help,

    Many thanks in advance.
     
    scottlpool2003, Oct 10, 2009 IP
  2. Ketan Deshmukh

    Ketan Deshmukh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi.

    form2.richtextbox1.text = form2.richtextbox1.text + textbox1.text + textbox2.text

    i.e concatenate all string values from richtextbox & textboxes & assign this value to richtextbox
     
    Ketan Deshmukh, Oct 16, 2009 IP
  3. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #3
    Cheers Ketan, solved the problem. I had another one too, these cleared whatever was already in richtextbox1 but I've solved this one too. thanks again.
     
    scottlpool2003, Oct 17, 2009 IP