| |

VerySource

 Forgot password?
 Register
Search
View: 10|Reply: 3

form embed panel problem

[Copy link]

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 Invalid IP Address

Post time: 2020-3-10 12:00:01
| Show all posts |Read mode
I embed a form in a panel, and the embedded code is as follows:
FormInput = new InputForm (this);
FormInput.TopLevel = false;
FormInput.Parent = this.panel2;
FormInput.Dock = DockStyle.Fill;
FormInput.Show ();


The function can be implemented, but this will cause an inexplicable problem with the textbox control:
1. Can't use the mouse to select any text on the textbox control. Either select all or not,
2. Use the keyboard to select any text on the textbox control. SHIFT + arrow.

This problem brings inconvenience to the input and modification of the textbox control, please master it.
Reply

Use magic Report

0

Threads

4

Posts

5

Credits

Newbie

Rank: 1

Credits
5

 China

Post time: 2020-6-2 10:30:01
| Show all posts
I really don't understand how good it is to make such a style with so much effort. . . .
Reply

Use magic Report

0

Threads

27

Posts

21

Credits

Newbie

Rank: 1

Credits
21

 China

Post time: 2020-6-5 17:30:01
| Show all posts
I tried it just now, and I do have this problem. I can’t think of a good solution for a while.
Reply

Use magic Report

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 Invalid IP Address

 Author| Post time: 2020-6-11 21:45:01
| Show all posts
The problem has been solved, it turns out that the embedded form cannot set any FormBorderStyle. Add statement

InputForm.FormBorderStyle = FormBorderStyle.None;
Just
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list