|
|
 |
| C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

May 16th, 2005, 11:42 PM
|
|
Authorized User
|
|
Join Date: May 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Reagrding the mouse interaction in C#
I want to disable the mouse interaction on the RichTextBox not on the form in C# But still i want to write on the RichTextBox Please give me the solution.
|

May 17th, 2005, 07:18 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Are you talking about the RichTextBox control on a web form?
|

May 17th, 2005, 07:47 AM
|
|
Authorized User
|
|
Join Date: May 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by planoie
Are you talking about the RichTextBox control on a web form?
|
No it is totally a desktop based application
I want to write it through the keyboard but want to disable the mouse interaction on the richtextbox only not on the any other element
|

May 17th, 2005, 03:29 PM
|
|
Friend of Wrox
|
|
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
we have some events for mouse
MouseEnter,MouseMove,MouseHover,MouseDown,MouseUp, MouseLeave
you can change the focus to another control in such events
(i.e textBox1.Focus();)
(or you can derive from richTextBox and in its WndProc function hook mouse messages and kill the focus..)
_____________
Mehdi.
software student.
|

May 18th, 2005, 04:44 AM
|
|
Authorized User
|
|
Join Date: May 2005
Location: , , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ok but if there is only one control ie RichTextBox in the whole form like a notepad type application then in that case what can be done
|

May 19th, 2005, 04:58 PM
|
|
Friend of Wrox
|
|
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
put a temp textBox on the form..
_____________
Mehdi.
software student.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |