Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 30th, 2004, 08:52 AM
Registered User
 
Join Date: Sep 2004
Location: Scarborough, Ontario, Canada.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default can I change the forecolor and backcolor of text

after i create a text editor with a pop up menu enable.

in the popup menu i have to choice black on white and white on black..

i can check the textbox forecolor and backcolor by using the following code

textbox.forecolor =color.black
textbox.backcolor=color.white

i just wonder can i just change the forecolor and backcolor of selectedText, not the entire textbox


any idea i will greatly appreciate

Hui Deng
Reply With Quote
  #2 (permalink)  
Old October 7th, 2004, 10:23 PM
Registered User
 
Join Date: Aug 2004
Location: Anderson, South Carolina, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Mosquito109
Default

I haven't tried this but this may work:

textbox1.text = color.white
textbox1.text = color.black



Reply With Quote
  #3 (permalink)  
Old October 11th, 2004, 10:42 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

No you cant change the forecolor and backcolor of the selectedText.
and neither this will work
textbox1.text = color.white
textbox1.text = color.black



Reply With Quote
  #4 (permalink)  
Old October 11th, 2004, 11:18 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Is this a windows application and, if so, is this a richtextbox you are using?

J
Reply With Quote
  #5 (permalink)  
Old October 11th, 2004, 02:38 PM
Registered User
 
Join Date: Sep 2004
Location: Scarborough, Ontario, Canada.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yup.. it is a simple window application... and just use textbox with multiline enabled.



Hui Deng
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change TextBox.BackColor property onFocus event drasko ASP.NET 1.0 and 1.1 Basics 8 January 26th, 2009 12:23 AM
Change Textbox Backcolor for certain records only camehere Access VBA 5 April 28th, 2008 06:28 AM
Change the ForeColor in a ListBox?? thomaz C# 0 November 23rd, 2006 01:35 PM
ComboBox BackColor change LoorD C# 4 October 6th, 2005 12:44 AM
Dynamic Backcolor change in VB caltito Access VBA 0 August 22nd, 2004 09:16 AM



All times are GMT -4. The time now is 09:22 AM.


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