Pasting into multiple text boxes

前端 未结 5 1328
小蘑菇
小蘑菇 2020-12-22 03:28

I have a .net application which includes search screen which has a panel with has three text boxes, each with a varying character lengths.

What I\

5条回答
  •  囚心锁ツ
    2020-12-22 03:52

    Capture the paste event:

    protected override void WndProc(ref Message m) {
        // Did paste occur?
        if (m.Msg == 0x302) {
            //Paste occurred, add your logic here
        }
        base.WndProc(ref m);
    }
    

    Then, access the Clipboard object to get the desired text.

提交回复
热议问题