This is a migrated thread and some comments may be shown as answers.

POS (Point Of Sale) Software on c# windows form

1 Answer 616 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Muhammad Naveed
Top achievements
Rank 1
Muhammad Naveed asked on 30 Aug 2017, 07:26 AM
How can i add textbox1_textchanged event for a textbox which works for 2 forms or dual monitor means when i am working on 2 Forms (one is for user entry(User_Form) and second is for customer display(Customer_Form)), the textbox1_textchanged event fires when start typing on user's screen(User_Form) textbox and textbox2 text should be changed on customer display textbox(Customer_Form).

1 Answer, 1 is accepted

Sort by
0
Albert
Top achievements
Rank 1
answered on 14 Oct 2018, 09:28 PM

For vb.net, try this

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
        If Form2.Visible Then
            Form2.TextBox1.Text = TextBox1.Text
        End If
End Sub
Tags
General Discussions
Asked by
Muhammad Naveed
Top achievements
Rank 1
Answers by
Albert
Top achievements
Rank 1
Share this question
or