Skip to content

Commit

Permalink
fix toolbox icon resource path (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
adegeo authored Aug 4, 2023
1 parent 1b4906f commit d54c1fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ The attribute is set on the control's class, and has three different constructor
- <xref:System.Drawing.ToolboxBitmapAttribute.%23ctor(System.Type,System.String)>&mdash;This constructor takes two parameters. The first parameter is a type, and the second is the namespace and name of the resource in the assembly of that type.

```csharp
// Loads the icon from the WinFormsApp1.Resources.CompasRoseIcon.bmp resource
// Loads the icon from the WinFormsApp1.Resources.CompassRoseIcon.bmp resource
// in the assembly containing the type CompassRose
[ToolboxBitmap(typeof(CompassRose), "WinFormsApp1.Resources.CompasRoseIcon.bmp")]
[ToolboxBitmap(typeof(CompassRose), "WinFormsApp1.Resources.CompassRoseIcon.bmp")]
public partial class CompassRose : UserControl
{
// Code for the control
Expand Down

0 comments on commit d54c1fb

Please sign in to comment.