Solved

Font size and Color

Posted on 1998-11-04
2
217 Views
Last Modified: 2013-12-03
I am trying to make a program that copies the exact text size and the exact text color from one textbox to anougher textbox (via keystroke). Sort of like a source and destination program. The text copies fine, except when the
second textbox receives the text the font size and color
are set in the second textbox default settings. Is there a
way to send exact text size and color from one text box to
anougher one?
0
Comment
Question by:poorboy
2 Comments
 
LVL 2

Accepted Solution

by:
schild earned 50 total points
ID: 1443260
here the code you needed to:


    Text1.Text = Text2.Text
    Text1.ForeColor = Text2.ForeColor
    Text1.FontSize = Text2.FontSize
 
0
 

Author Comment

by:poorboy
ID: 1443261
You dont understand what i am saying. Using this sentence( All tree FROGS are green.)
If i made the word FROGS ( BOLD ) and changed  the Forecolor of the word green to
GREEN, how could i get the exact same thing into the other text box? Remember! This
is like a source and destination program, so the contents of one textbox will be sent to
the other textbox via keystroke.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

713 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