Adding an About Property in UserControl

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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.
 
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
 
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.
 
Back
Top