Solved

Font size and Color

Posted on 1998-11-04
2
216 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 122
Problem to With line 4 63
MS Access 03, TransferText, decimal places 8 78
Excel Automation VBA 19 88
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
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…

856 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