Setting the Image property of a Winforms button

Just another of one of those cool pieces of code that takes too long to Google.

This snippet of code will succinctly set the image property of a Winforms button.

The image needs to be in the Images folder under the application

Related Articles

... and you 'll find more on the NET Development Menu

Me.btnLoadHold.Image = New Bitmap(System.IO.Path.Combine(Application.StartupPath, "images\LoadHoldOff.png"))

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences