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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Adding text to RichTextBox in form from another class

Adding text to RichTextBox in form from another class

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • N Offline
    N Offline
    NZSmartie
    wrote on last edited by
    #1

    Hi everyone how would i add text to a rich text box named 'richTextBox1' located in Form1 with the namespace "winApp1"... i am adding text from a function inside a different class like this: winApp1.Form1.richTextBox1.Text but all i get is: 'winApp1.Form1.richTextBox1' is inaccessible due to its protection level how can i remove the protection :confused: Thanks in advanced Roman

    J 1 Reply Last reply
    0
    • N NZSmartie

      Hi everyone how would i add text to a rich text box named 'richTextBox1' located in Form1 with the namespace "winApp1"... i am adding text from a function inside a different class like this: winApp1.Form1.richTextBox1.Text but all i get is: 'winApp1.Form1.richTextBox1' is inaccessible due to its protection level how can i remove the protection :confused: Thanks in advanced Roman

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Declare richTextBox1 as public or internal.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: Taking the Congressional Oath on the Bible The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      N 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Declare richTextBox1 as public or internal.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: Taking the Congressional Oath on the Bible The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        N Offline
        N Offline
        NZSmartie
        wrote on last edited by
        #3

        thanks, why didn't i think of that:rolleyes:

        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