Jump to content
leoretorico

[Resolvido] Mudar descrição de componente para Toolbox

Recommended Posts

leoretorico

Boa tarde Gostaria de saber como mudar a descrição de um componente para toolbox do Visual Studio.

A descrição do componente da imagem é : Raises an event when the user clicks it

Mas eu preciso dar outra descrição para este controle

apk0sp.png

Share this post


Link to post
Share on other sites
leoretorico

Descobri como:

Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms

Namespace Company.ItemConfigurationCS
   ' Set the display name and custom bitmap to use for this item.
   ' The build action for the bitmap must be "Embedded Resource".
   <DisplayName("ToolboxMember 1 CS")> _
   <Description("Custom toolbox item from package ItemConfiguration.")> _
   <ToolboxItem(True)> _
   <ToolboxBitmap(GetType(Control1), "Control1.bmp")> _
   Public Partial Class Control1
       Inherits UserControl
       Public Sub New()
           InitializeComponent()

           button1.Text = Me.Name & " Button"
       End Sub

       Private Sub button1_Click(sender As Object, e As EventArgs)
           MessageBox.Show("Hello world from " & Me.ToString())
       End Sub
   End Class
End Namespace

Edited by ribeiro55

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.