mond007
Active member
Hi
I have spent quite some time developing a Maintenance application. See the following link if need be.
http://www.vbdotnetforums.com/xml/60658-create-effective-xml-schema-data-load-dilemma.html
I am now at the point where I need to know how to store hundreds of images within the Application. Clearly I will have an Open Dialogue box that will allow the locate/storage an image. I think I would store the identified ?image name? into the ?AnswerImage? field below and then assume a standard application path i.e. c:\project\images\
See highlighted line in the XML Schema Definition below. (i.e. AnswerImage)
The Question is how and where to store the images ?.
I have tried searching to see how I can import images into the ?Resources? but to no avail. And even so this would be built into the executable so no joy there when I want to change/add. Hmmm.
Since, the application comes with a few hundred images and allows the user to add images of their own, I guess the way to do this would be to have all the images within a ?Images? folder and the read the relevant image at run time.
Would appreciate some guidance. ?
Thanks in advance. Kuldip
I have spent quite some time developing a Maintenance application. See the following link if need be.
http://www.vbdotnetforums.com/xml/60658-create-effective-xml-schema-data-load-dilemma.html
I am now at the point where I need to know how to store hundreds of images within the Application. Clearly I will have an Open Dialogue box that will allow the locate/storage an image. I think I would store the identified ?image name? into the ?AnswerImage? field below and then assume a standard application path i.e. c:\project\images\
See highlighted line in the XML Schema Definition below. (i.e. AnswerImage)
VB.NET:
With QuestionAnswerData.Tables("Questions")
.Columns.Add("QuestionID", GetType(Integer))
.Columns.Add("QuestionNo", GetType(String))
.Columns.Add("Question", GetType(String))
.Columns.Add("AnswerSection", GetType(String))
.Columns.Add("AnswerSectionColor", GetType(String))
.Columns.Add("[B]AnswerImage[/B]", GetType(String))
.Columns.Add("AnswerHyperlink", GetType(String))
End With
With QuestionAnswerData.Tables("Answers")
.Columns.Add("QuestionID", GetType(Integer))
.Columns.Add("AnswerRef", GetType(String))
.Columns.Add("AnswerFormat", GetType(String))
.Columns.Add("AnswerColour", GetType(String))
.Columns.Add("AnswerDescription", GetType(String))
End With
The Question is how and where to store the images ?.
I have tried searching to see how I can import images into the ?Resources? but to no avail. And even so this would be built into the executable so no joy there when I want to change/add. Hmmm.
Since, the application comes with a few hundred images and allows the user to add images of their own, I guess the way to do this would be to have all the images within a ?Images? folder and the read the relevant image at run time.
Would appreciate some guidance. ?
Thanks in advance. Kuldip