martinandrovich
Member
- Joined
- Sep 15, 2011
- Messages
- 17
- Programming Experience
- 3-5
Hello dear forum,
My question is a bit hard to explain, but I will try my best:
Imagine a have a painting program with a PictureBox, which I can paint on.
I would like to have the ability to press "Next Page", and the program shall store my current image/page as "Page#" (where # is the number), and create a new one, which I can draw on. I should then be able to click "Previous Page", and get my previous image/page (in this case, "Page1"), and be able to edit/view that.
So I have a PictureBox which is the "viewer", and then I have a lot of images, which are the pages.
The way I would do it, is that I would store them locally as files, and call them "Page1", "Page2" and etc. in a folder.
But I would assume, that this will require a bit processing power, and slow down the program - it will also cause problems, if for example "Page3" would be deleted - then the current "Page4" should be renamed to "Page3" and etc and etc....
IS THERE AN EASIER WAY OF DOING THIS?
Like maybe storing these images as variables, or something?
Is it even possible to declare a variable like:
So, now I would have "page2" as a new PictureBox?
As far as I know, that's not possible - well, not the way I do it.
Any help would be appreciated - Thanks in advance!
Martin.
My question is a bit hard to explain, but I will try my best:
Imagine a have a painting program with a PictureBox, which I can paint on.
I would like to have the ability to press "Next Page", and the program shall store my current image/page as "Page#" (where # is the number), and create a new one, which I can draw on. I should then be able to click "Previous Page", and get my previous image/page (in this case, "Page1"), and be able to edit/view that.
So I have a PictureBox which is the "viewer", and then I have a lot of images, which are the pages.
The way I would do it, is that I would store them locally as files, and call them "Page1", "Page2" and etc. in a folder.
But I would assume, that this will require a bit processing power, and slow down the program - it will also cause problems, if for example "Page3" would be deleted - then the current "Page4" should be renamed to "Page3" and etc and etc....
IS THERE AN EASIER WAY OF DOING THIS?
Like maybe storing these images as variables, or something?
Is it even possible to declare a variable like:
VB.NET:
Dim intNumber As New Integer = 2
Dim page + intNumber As New PictureBox
So, now I would have "page2" as a new PictureBox?
As far as I know, that's not possible - well, not the way I do it.
Any help would be appreciated - Thanks in advance!
Martin.