Conversion from C# to VB

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

30 Replies - 1178 Views - Last Post: 04 March 2012 - 08:22 PM Rate Topic: -----

#31 DimitriV  Icon User is offline

  • They don't think it be like it is, but it do
  • member icon

Reputation: 584
  • View blog
  • Posts: 2,738
  • Joined: 24-July 11

Re: Conversion from C# to VB

Posted 04 March 2012 - 08:22 PM

Put a picture where you can inside a folder. Memorize the path, then do this:
  Me.toolStripButtonOpenFile.Image = Image.FromFile(<path>)

Or add it to resources like so: My Project -> Resources -> Add Existing File, then memorize the name.
Me.toolStripButtonOpenFile.Image = My.Resources.<image>

Cheers :)
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3