What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

PictureBox from Embedded Resource

Status
Not open for further replies.

GomuGomu

Member
Joined
Nov 9, 2014
Messages
57
PictureBox Embedded Resource

Hello

Have anyone know how to use PictureBox on Windows Form and use ImageLocation like Embedded Resource ?
(I mean not FromFile or physical path location)
because Embedded Resource made from Visual Studio
but our code have to compile on AB and cannot refer to Embedded Resource
 
Last edited:
Thanks for answer me Aeon

It's work fine on normal Windows Form that's compile on Visual Studio

But when I compile Plugin with AB it's not work and auto stop.

current I use on Form1.cs

pictureBox1.Image = Image.FromFile(Application.StartupPath + "\\Plugins\\MyPlugin\\Images\\); // Image Location on Physical Address

I need to do something like this but still not work

pictureBox1.Image = Properties.Resources.MyImage;

help me please T-T
 
Thanks for answer me Aeon

It's work fine on normal Windows Form that's compile on Visual Studio

But when I compile Plugin with AB it's not work and auto stop.

current I use on Form1.cs

pictureBox1.Image = Image.FromFile(Application.StartupPath + "\\Plugins\\MyPlugin\\Images\\); // Image Location on Physical Address

I need to do something like this but still not work

pictureBox1.Image = Properties.Resources.MyImage;

help me please T-T

Hey, I'm not quite sure what's the cause, as you can't debug when compiling with AB Editor, I would really suggest you to go with VS. If need any help there, lemme know...

And in VS, you have to create a new project, Class Library, import ArcheBuddy.dll as a reference, as well System.Windows.Forms. Then copy default start code from AB Editor, place it in VS and that's pretty much it, should work that way :)
 
Status
Not open for further replies.
Back
Top