c# - Access from a different classes to the RichTextBox of MainForm.cs (Windows Forms Application) -
For example, in the same class, I am using the word "this" but I am from another class in this RichTextBox How can I access The examples below are not working. or does not work try it, in its main form; from your calling class, :) Remove Private Zero Symbology Click (Object Sender, Event Argus E) {string text = this.dataTextBox.Text; This.dataTextBox.Text = text.Remove (0, 1); }
MainForm MF = new mainform (); Mf.dataTextBox.Text = text.Remove (0, 1);
MainForm MF; Mf.dataTextBox.Text = text.Remove (0, 1);
Public MainForm () {InitializeComponent (); Main = this; } Internal Stable MainForm Main; Receive internal string position {return {return dataTextBox.Text.ToString ()}} set {dataTextBox.Text = value; }}
MainForm.main.Status = "Your message";
Comments
Post a Comment