Import multimedia files (.png, .mp3) into the project
Posted
#1
(In Topic #417)
Trainee

My questions are as follows:
1). How can I do this same operation in Gambas 3, so that these files are incorporated into my compiled application?
2). How can I load a ".png" located inside my project into a PictureBox?
Thank you all
Posted
Guru


Place the files you want in the application's folder (From the menu Tools > Browse project..)How can I do this same operation in Gambas 3, so that these files are incorporated into my compiled application?
You can add it in the IDE through the PictureBox property Picture or if the picture is in the application folder: -How can I load a ".png" located inside my project into a PictureBox?
PictureBox1.Picture = Picture["MyPict.png"]
See the 'no code used' example attached.
Posted
Trainee

Code
PictureBoxName.Picture = Picture.Load("Hours_CircleProgress/Hours_CircleProgress_" & 1 & ".png")
1 guest and 0 members have just viewed this.



