Solved

Font size and Color

Posted on 1998-11-04
2
211 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
Comment Utility
here the code you needed to:


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

Author Comment

by:poorboy
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now