Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2005, 10:42 PM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
 
Old May 17th, 2005, 06:18 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you talking about the RichTextBox control on a web form?
 
Old May 17th, 2005, 06:47 AM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old May 17th, 2005, 02:29 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
 
Old May 18th, 2005, 03:44 AM
Authorized User
 
Join Date: May 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old May 19th, 2005, 03:58 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

put a temp textBox on the form..

_____________
Mehdi.
software student.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel/Access interaction SarahDC Access VBA 0 September 24th, 2008 01:41 PM
.dll interaction with an application DavidStowell Visual Basic 2008 Essentials 2 March 3rd, 2008 04:33 PM
User interaction... Don Herman Access 3 January 31st, 2006 08:48 AM
Problem reagrding windows authentication CsharpHelp C# 0 October 25th, 2005 11:38 PM
INTERACTION anil_soma ADO.NET 2 September 23rd, 2004 01:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.