?
Solved

properties of mouse marks

Posted on 1998-07-28
1
Medium Priority
?
144 Views
Last Modified: 2010-05-03
i would like to change one of a text box or other text control properties

for example : if my text box contain the line : eeeee ggggg sdfdfdf eyal web
i would like to bold the 'eyal' that is marked now by the mouse - i dont want to change the property to the all line
but only to the word that was marked by the mouse (like copy and paste does)
0
Comment
Question by:Brown072898
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
swilt earned 100 total points
ID: 1466908
Use a Rich Text Box ( RichTextBox1) on a form with a button (Command1)


Option Explicit

Private Sub Command1_Click()
    RichTextBox1.SelBold = True
End Sub

0

Featured Post

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!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month8 days, 1 hour left to enroll

765 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