Image source at design time 
Author Message
 Image source at design time

Hi

When adding images to a project whether directly to a picture/image box or
image control, I have been putting the images in the windows directory and
then calling them from there. This is to avoid complications when an
application is installed on a users PC. Question is, if they were placed
within VB under say, images or samples or whatever, would they then become
part of the project when setup wiz is used and automatically placed within
the specified/default program files folder? This could of course apply to
any .mdb databases as well??

Many thanks

Mark



Thu, 03 May 2001 03:00:00 GMT
 Image source at design time

There are a couple ways you can do this. Depending on what version of VB
your using, you can store them in a resource file, which is compiled into
the exe. Then there is no need for actually sending the bitmaps.

You can also store them in invisible image boxs, and simply call them from
the program by matching the pictures, eg, picture5.picture=picture1.picture
(where picture1 is an invisble picturebox with the bmp loaded at design
time) This eats up more resources though.

Still again, if you want to send the files, have your setup make a sub
directory in you install directory andplace them there. eg,
"C:\MyApp\Bitmaps" then simply load them with
Picture1.picture=Loadpicture(App.Path + "\Bitmaps\Filename.BMP")

There are more ways I'm sure, but one of these should do what you need.

Hope it helps.

        Tommy

Quote:

>Hi

>When adding images to a project whether directly to a picture/image box or
>image control, I have been putting the images in the windows directory and
>then calling them from there. This is to avoid complications when an
>application is installed on a users PC. Question is, if they were placed
>within VB under say, images or samples or whatever, would they then become
>part of the project when setup wiz is used and automatically placed within
>the specified/default program files folder? This could of course apply to
>any .mdb databases as well??

>Many thanks

>Mark



Thu, 03 May 2001 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. DBCombo Control Crashes System at Design Time (Record Source Property)

2. Run Time vs Design Time - No Current Record

3. ADO Data Control - Design Time/Run Time database locations

4. New design editor for source code available for evaluation

5. pgsql/src/test/regress/input (create_function_1.source create_function_2.source misc.source)

6. pgsql/src/test/regress/output (create_function_1.source create_function_2.source misc.source)

7. Slightly OT: Open Source database design tool?

8. Open Source examples of good design/programming practice?[Java]

9. Image field as source for Email Attachment ?

10. image source tag

11. Request: sample source code to read/write image on MSSQL using VC++

12. changing a data report image control's source in code


 
Powered by phpBB® Forum Software