Skip to content

Loading button image from file path string #15574

Closed Answered by maxkatz6
itslyn asked this question in Q&A
Discussion options

You must be logged in to vote

Make IconImage a Bitmap type:

public Bitmap IconImage { get; set; }

then you can create a bitmap like:

IconImage = new Bitmap("D:/Pictures/216.png"); // (adjust the code to use IconPath)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@maxkatz6
Comment options

@itslyn
Comment options

@stevemonaco
Comment options

@itslyn
Comment options

Answer selected by itslyn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants