Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Convert String to set it on richBox

Convert String to set it on richBox

Scheduled Pinned Locked Moved C#
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abbd
    wrote on last edited by
    #1

    Hello, How we can Convert String to set it on richBox, i try for MailMessage2.Text = "eeeeeeee"; but there are an exception : Object reference not set to an instance of an object, thank you verry mutch.

    D C F 3 Replies Last reply
    0
    • A abbd

      Hello, How we can Convert String to set it on richBox, i try for MailMessage2.Text = "eeeeeeee"; but there are an exception : Object reference not set to an instance of an object, thank you verry mutch.

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Have you actually created an instance of MailMessage2?

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

      A 1 Reply Last reply
      0
      • D DaveyM69

        Have you actually created an instance of MailMessage2?

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

        A Offline
        A Offline
        abbd
        wrote on last edited by
        #3

        no, how i van make this?? thank you verry mutch.

        D 1 Reply Last reply
        0
        • A abbd

          no, how i van make this?? thank you verry mutch.

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          This is very basic stuff - you really should work through some online getting started articles/blogs and buy a book or ten. Assuming MailMessage2 is your RichTextBox: RichTextBox MailMessage2 = new RichTextBox();

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

          1 Reply Last reply
          0
          • A abbd

            Hello, How we can Convert String to set it on richBox, i try for MailMessage2.Text = "eeeeeeee"; but there are an exception : Object reference not set to an instance of an object, thank you verry mutch.

            C Offline
            C Offline
            c0ax_lx
            wrote on last edited by
            #5

            Does your code look like this: public Form1() { MailMessage2.Text = "eeeeeeee"; InitializeComponent(); }? change it to public Form1() { InitializeComponent(); MailMessage2.Text = "eeeeeeee"; }

            If it' stuck, DO NOT pull harder!

            1 Reply Last reply
            0
            • A abbd

              Hello, How we can Convert String to set it on richBox, i try for MailMessage2.Text = "eeeeeeee"; but there are an exception : Object reference not set to an instance of an object, thank you verry mutch.

              F Offline
              F Offline
              fly904
              wrote on last edited by
              #6

              abbd wrote:

              thank you verry mutch.

              "Thank you very much." I've noticed it on all you're posts.

              hmmm pie

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups