Adding an About Property in UserControl

G

Guest

Hello

I create a Windows custom control and i want to add a property "About" to display information about the control.

How can i do it?

Thenks
Christos
 
L

Lloyd Sheen

I think you want to create a method (sub) rather than a property. Make it
public and you can call it from the parent form. If you are looking to put
it into the ObjectDesigner then that is another question.

If you use a property then the syntax would look strange like :

About=1
which would seem strange. Since there is no value using a property is not
necessary.

Lloyd Sheen


ChristosX said:
Hello,

I create a Windows custom control and i want to add a property "About" to
display information about the control.
 
G

Guest

Simply, i want to show an aboutbox for my own control which i create. In VB6 i did it easily but in VB.NET i haven't idea.

The On-line help tells nothing about this.
 
G

Guest

I want to put it in the Properties Window and the user click on a browser button. When click on the browser button, the VB.NET open a form with information about the control.

How can i do it

Please help

Thenks
Christos
 
L

Lloyd Sheen

Try looking in MSDN under the topic :
Attributes and Design-Time Support.

I have never tried it but have seen other posts about this.

Lloyd Sheen


ChristosX said:
I want to put it in the Properties Window and the user click on a browser
button. When click on the browser button, the VB.NET open a form with
information about the control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top