Daniel Lip
Daniel Lip

Reputation: 11319

How do i set the Focus to be on the Form1?

I have a richTextBox1 on Form1 in the designer set to ReadOnly true. But when i run the program the focus is on the richTextBox the input is in the richTextBox like the user can type something inside. He cant but it looks like.

Is there any way to avoid it or to set that when im running the program or if the user will click on the richTextBox it will never enter it like he can write inside ?

Upvotes: 1

Views: 144

Answers (2)

Yan Brunet
Yan Brunet

Reputation: 4897

If you really don't want the user to access it, you should probably just set it Enabled = false.

Upvotes: 1

Vijaychandar
Vijaychandar

Reputation: 714

May be you can set focus on the next control in the form.

Upvotes: 0

Related Questions