Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2006

Tip: Looking for answers? Try searching our database.

Richtextbox beep?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 16 Jan 2006 20:49 GMT
As part of an application I feed text into a richtextbox in readonly mode.
If I feed in an empty string the application beeps e.g.:

String blah = "";

richTextBox1.SelectedText = blah;

result:

<beep>

Why is this?

Chris
Mike Rand - 16 Jan 2006 21:42 GMT
Chris,
Because the Richtextbox is in ReadOnly mode. Set ReadOnly to False and you
don't get the beep. Essentially, the beep tells you that you have tried to
access something that you can't, or enter data where you can't.
Thanks,
- Mike
Chris - 16 Jan 2006 23:03 GMT
> Chris,
> Because the Richtextbox is in ReadOnly mode. Set ReadOnly to False and you
> don't get the beep. Essentially, the beep tells you that you have tried to
> access something that you can't, or enter data where you can't.
> Thanks,
> - Mike

Hi Mike,
I should of been more clear. If I enter anything else into the textbox
there is no beep:

String blah = "test";

richTextBox1.SelectedText = blah;

causes no bleep. Even entering only escape characters causes no bleep.

It only ever occurs if string == "";

Chris.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.