Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
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 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 September 30th, 2004, 08:52 AM
Registered User
 
Join Date: Sep 2004
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
 
Old October 7th, 2004, 10:23 PM
Registered User
 
Join Date: Aug 2004
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



 
Old October 11th, 2004, 10:42 AM
Friend of Wrox
 
Join Date: Oct 2003
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



 
Old October 11th, 2004, 11:18 AM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old October 11th, 2004, 02:38 PM
Registered User
 
Join Date: Sep 2004
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





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





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