P
PhilmyBush
Guest
I can not seem to figure this out, any help would be greatly appreciated.
Background:
I am trying to create a simple project management tool that consists of a series of images. When the user right clicks on one of these images there is a contextmenu option that changes the image in a secondary picturebox to denote the progression of the task.
Problem:
I want these secondary pictureboxes to save the image loaded in them when the application is closed and store to my project settings, so that they load again when the project is re-opened or refreshed.
Example code:
'Project currently running and user has right clicked on the primary picturebox (for the task) and selected one of the status of the secondary pictureboxes to denote the progression.
me.picturebox1.backgroundimage=my.resources.complete
my.settings.picturebox1_setting=system.drawing.image.fromfile("my file pathway")
my.settings.save
'open or refresh project
me.picurebox1.backgroundimage=my.settings.picturebox1_setting
Various errors. Brain ready to explode. Any help would be appreciated please, a simple example even better.
Thank you in advance
PS. vb.net, 2019 community version
Continue reading...
Background:
I am trying to create a simple project management tool that consists of a series of images. When the user right clicks on one of these images there is a contextmenu option that changes the image in a secondary picturebox to denote the progression of the task.
Problem:
I want these secondary pictureboxes to save the image loaded in them when the application is closed and store to my project settings, so that they load again when the project is re-opened or refreshed.
Example code:
'Project currently running and user has right clicked on the primary picturebox (for the task) and selected one of the status of the secondary pictureboxes to denote the progression.
me.picturebox1.backgroundimage=my.resources.complete
my.settings.picturebox1_setting=system.drawing.image.fromfile("my file pathway")
my.settings.save
'open or refresh project
me.picurebox1.backgroundimage=my.settings.picturebox1_setting
Various errors. Brain ready to explode. Any help would be appreciated please, a simple example even better.
Thank you in advance
PS. vb.net, 2019 community version
Continue reading...