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

2 posts, 0 answers
  1. Muhammad Naveed
    Muhammad Naveed avatar
    12 posts
    Member since:
    Jul 2017

    Posted 30 Aug 2017 Link to this post

    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).
  2. Albert
    Albert avatar
    1 posts
    Member since:
    Oct 2018

    Posted 14 Oct 2018 in reply to Muhammad Naveed Link to this post

    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
Back to Top