rahavtom Posted October 1, 2004 Posted October 1, 2004 Hi! I would like to know how can I insert pictures into a win form during runtime. I guess I need to use OLE picture command and than to add some code to it in run time, but I'm not sure, and I conuldn't find any place to put code in. Thanks! Tom. Quote
Administrators PlausiblyDamp Posted October 1, 2004 Administrators Posted October 1, 2004 What kind of pictures and where would they be comming from? If it is simply a file on disk then you could load the file into an image object and assign that to the picturebox control's image property. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rahavtom Posted October 1, 2004 Author Posted October 1, 2004 What kind of pictures and where would they be comming from? If it is simply a file on disk then you could load the file into an image object and assign that to the picturebox control's image property. Hi! These files are located in the local hard-drive. The reason why I can't just choose them in the picturebox control, is that I want to create it in run-time. As far as I know, Crystal lets you choose files only in design time, so this is not what I need... moreover, I don't know the file names in advanced, so I my program go and search for relevant files and then print them (JPG pictures). Thanks, Tom. Quote
Administrators PlausiblyDamp Posted October 1, 2004 Administrators Posted October 1, 2004 Are you trying to load them into a crystal report or a windows form?? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rahavtom Posted October 2, 2004 Author Posted October 2, 2004 Are you trying to load them into a crystal report or a windows form?? Yes, I need it for Crystal report... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.