Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I work a program by vb.net 2008. The Program has include some drawing tools which are created writing program. For example, I want to draw a refrigerator with my program. And some information of refrigerator are entried by user for drawen refrigerator. The information of refrigerator are saved in a database in sql server. There is no problem saving data of refrigerator, but how can saved drawing parts of refrigerator saved in database. How can draw a refrigerator with vb.net?

Thanks to help
Posted
Comments
Varun Sareen 22-Feb-12 7:54am    
:(
Nikhil_S 22-Feb-12 8:03am    
please explain your problem properly it's not clear. more over if possible attach your code with this question.

I have assumed that you are talking about SQL Server for a moment.

Have a read of this code project article Store or save images into SQL Server[^]

but in a nutshell you will need to save your picture / images to file and then load into the database as BLOB.
 
Share this answer
 
there is no problem saving image to sql. the problem is How can I draw any product as refrigerator. As you know, AutoCad has lots of tool to draw anytihng. I want to derived tools which likes Aotucad tools and draw a product with these tools. Finally, Some information are associate with the drawing and then save the drawing and information.

thanks...
 
Share this answer
 
Comments
Richard MacCutchan 22-Feb-12 9:58am    
I may be wrong but I think you are asking how to create a CAD type program. This means that as the user draws on the screen you will need to capture every item drawn, including start and end point and length etc. If you want to create some templates so the user can call up a refrigerator and then modify it, then you need to start by creating your basic pictures and saving the information in your template database. You will not be surprised to see that there is a lot of information to store.
thanks Richard MacCutchan,

if you know,please give me some link about CAD type program
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900