Solved

VB 5.0 Rich Text Box Command

Posted on 1997-07-22
12
217 Views
Last Modified: 2010-07-27
I want to find a way to display a string (say a single
word) in a rich text box control such that the user can
only interact with it (e.g., select or delete) as a single
unit.

[I have a program that displays various "paragraphs" of information in a rich text box at the click of a command button.  It is my desire to make the headings of these paragraphs (which will be in bold type) uneditable by the end-user.  I anticipate there being an RTF code similar
to \protect, but that will not allow selection of part of
the word.]
0
Comment
Question by:chem7
  • 5
  • 4
  • 2
  • +1
12 Comments
 

Expert Comment

by:Todd21
ID: 1428717
Do you mean they click on an option button or they click on a check box and it displays something in a text box?
0
 

Author Comment

by:chem7
ID: 1428718
Edited text of question
0
 

Expert Comment

by:Todd21
ID: 1428719
Reply with all the info you want to Todd@Programmer.net and I can help you out and send you a file then you can tell me if that is what you want
0
 
LVL 1

Expert Comment

by:olx
ID: 1428720
please send email to olx@hotmail.com explaining what do you need


0
 

Author Comment

by:chem7
ID: 1428721
Edited text of question
0
 

Author Comment

by:chem7
ID: 1428722
Adjusted points to 100
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:chem7
ID: 1428723
Adjusted points to 210
0
 
LVL 3

Accepted Solution

by:
vmpn earned 210 total points
ID: 1428724
In the properties of textbox there are seltext,selstart and sellength you can use this values to check if user selected one of the headers in keydown event, if it is a header you can set keyascii=0 to cancel any edition by user for selection or place.

Sincerely,
VMPN
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1428725
I ment keycode not keyascii

Sincerely,
VMPN
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1428726
Sorry,I meant keycode not keyascii

Sincerely,
VMPN
0
 

Author Comment

by:chem7
ID: 1428727
  I should be able to implement this in code.  I'm giving
the solution a 'B' (and not an 'A') only because I was hoping
for a more elegant solution.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1428728
I understand.  If you'll need further assistance regarding this question,you can email me at vmpn@aol.com.

Sincerely,
VMPN
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…

743 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

9 Experts available now in Live!

Get 1:1 Help Now