Solved

Show info. in property window in VB5

Posted on 1998-09-04
4
175 Views
Last Modified: 2013-11-23
When you select an object at design time in VB5 and press F4 to see the properties for that object you can click one of the properties i.e if object is textbox you can click Text property which sets/gets textbox's text when yopu click you can on the property you can see the description of that property does at the bottom of the property window.

I would like to implement such functionality into my ActiveX (OCX) control in VB5.  I hope someone can help
0
Comment
Question by:gbzhhu
  • 2
4 Comments
 
LVL 2

Expert Comment

by:dabellei
ID: 1433083
Use the property of each control and show them in a text box

Like  text1.text  =  control.text  it will show you the value on the property and then you can change it after  control.text = text1.text.

Some property are read only at design time other are read only at run time.

Maybe i misunderstand your question it look to easy.
0
 
LVL 12

Author Comment

by:gbzhhu
ID: 1433084
Sorry Dabellei, but that is not what I meant. Look here
If I create a text box and select it and press F4 then the property window will appear..Right... now if I click property text in the property window, Visual Basic will display(below the property window)exactly the following:

Text
Returns/Sets the text contained in the control


Now this is the description of the property and every other property that you click on will have a different description

This is the functionality that I am after

Thanks for trying
0
 
LVL 2

Accepted Solution

by:
wj7ster earned 80 total points
ID: 1433085
On the menu in VB, click on 'Tools|Procedure Attributes' and in the description field type the text you want to appear.  You can also use this dialog box to set the default property, hide the property from the properties window etc. (click on the 'Advanced>>' button for more options.

I think this is what you are after.
0
 
LVL 12

Author Comment

by:gbzhhu
ID: 1433086
Thanks you have given a perfect answer and it works  just beautifully
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

777 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