Solved

Textbox control

Posted on 1997-08-20
6
323 Views
Last Modified: 2013-12-16
I would like to create my own "Homesite" HTML Editor.  I am looking for a Text Edit control that allows me to have multicolor text in a single TextBox.
0
Comment
Question by:clintonm
  • 4
6 Comments
 
LVL 2

Expert Comment

by:msiman
ID: 1431559
whay not using picture contorl?

0
 
LVL 2

Expert Comment

by:msiman
ID: 1431560
whay not using picture contorl?

0
 

Author Comment

by:clintonm
ID: 1431561
Edited text of question
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Accepted Solution

by:
ccarlin earned 50 total points
ID: 1431562
Microsoft's Richtext control richtx32.ocx supports multicolor text.  Here is some sample code to change color and font of a portion of a richtext control.

txtControl.Text = txtControl.Text & vbCrLf & "Error Description Returned: " & strTemp
txtControl.SelStart = pos
txtControl.SelLength = Len(txtControl.Text) - pos
txtControl.SelBold = True
txtControl.SelColor = QBColor(12)
txtControl.SelLength = 0

All you have to do is set the selstart and sellength and change the color using selcolor.  
0
 
LVL 2

Expert Comment

by:msiman
ID: 1431563
again, you can type a diffrent color text into
a picture contorl, but ccarlin answer is better,
if you want to deal with ocx's
MSIMAN
0
 
LVL 2

Expert Comment

by:msiman
ID: 1431564
again, you can type a diffrent color text into
a picture contorl, but ccarlin answer is better,
if you want to deal with ocx's
MSIMAN
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question