473,388 Members | 1,277 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

changing text color in edit box


Dear All,

i still cant solve it. i have attached a sample of my program. how can
i change the number in the edit box to other color when i click OK
button?

thanks alot....
wayne
wayne wrote:
*Dear all,

how can i change the text color in an edit box? apparently, my edit
box variables are classified as CString so that i m able to output
decimal point number.

i knew that SetTextColor is one of the command to do it, but the
error i got when i compile it is that SetTextColor is not a member of
CString. Hence, i would like to know with CString, wat is the command
that allows me to change the text color...

thanks alot *

+----------------------------------------------------------------+
| Attachment filename: editcolor.zip |
|Download attachment: http://www.codecomments.com/attachme...postid=1562354 |
+----------------------------------------------------------------+
--
wayne
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #1
2 1830

wayne wrote:
*Dear All,

i still cant solve it. i have attached a sample of my program. how
can i change the number in the edit box to other color when i click
OK button?

thanks alot....
wayne *


Here is your attached example
+----------------------------------------------------------------+
| Attachment filename: changeeditcolor.zip |
|Download attachment: http://www.codecomments.com/attachme...postid=1562360 |
+----------------------------------------------------------------+
--
thatsalok
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #2

wayne wrote:
*Dear All,

i still cant solve it. i have attached a sample of my program. ho
can i change the number in the edit box to other color when i clic
OK button?

thanks alot....
wayne *


Here is your attached Exampl

+----------------------------------------------------------------
| Attachment filename: changeeditcolor.zip
|Download attachment: http://www.codecomments.com/attachme...postid=1562361
+----------------------------------------------------------------

-
thatsalo
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I'm having problems changing the text colors in an edit box in my program. Here's what I'm trying to do, under WM_CREATE I have the following: ClockFace = CreateWindowEx(0, "EDIT", "0.0.00",...
10
by: Marizel | last post by:
I'm not sure there's an easy solution to this, but thought I'd ask. I often find myself with a query which I'd like to reuse, but with a different datasource. These datasources generally have...
5
by: Cecilia Bergengruen | last post by:
2 questions: 1)I inserted a menu in an mdi window form. I right clicked on a menu item and pressed edit names. I therefore edited all my menu item names. Then I right clicked and pressed edit...
1
by: dotnettester | last post by:
Hi, I have implemented a datagrid where users can change the value of one column. But I have a problem, when a user clicks the 'edit' button and the column to edit changes into a text box. If...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
15
by: phillip.s.powell | last post by:
<style> div div table tr td a.navbar, div div table tr td font {display: none;} </style> <div class="navigationbar" style="background-color:Black; position: absolute; left:50%; top:127px;...
10
by: 7stud | last post by:
Hi, I'm experimenting with a basic socket program(from a book), and both the client and server programs are on my computer. In both programs, I call socket.gethostname(), but I discovered that...
1
by: peck2000 | last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ... This is a brainteaser that should have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.