I need a help with a Tag and image files. All my files are .gif files and all have the same format. However, some of my 'objects' are located at different positions on the image. I would like to store the position in a Tag and save the Tag with the file. I took a simple approach to it but its not working. This is what I did..
Code:
dim pathload As string = "C:\myfile.gif")
dim picViewer1 As New PictureBox
Sub graphlocationsave()
picViewer1.Tag = "116, 72"
picViewer1.Image.Save((pathload) & Tag) ' SAVING TAG TO .gif FILE....
End Sub
Sub graphlocationload()
picViewer1.Load((pathload) & Tag) ' LOADING FILE and TAG
Dim tag1 = (DirectCast(picViewer1, PictureBox).Tag)
MsgBox(tag1)
End Sub
My MsgBox is blank, there is no data...
I know the data get store in the Tag, but I do not know if its not saved, or I am not retriving it correctly or if this is the wrong way to do this altogether ?
Thanks for any help...

New Topic/Question
Reply




MultiQuote



|