VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



PictureFrame UserControl v2

by Roger Gilchrist (50 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

Version 2
This is a response to Jorge who asked how to save the picture including the frame. Uses code from 'Screen Capture Class Module' https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=24651&lngWId=1 .
The class code has been merged into the UserControl.
I also added UniqueName routine which creates numbered file names to simplify saving files, it simply adds bracketed numbers to a preset filename. I semi-hard coded it to App.Path & "\PicFrameCapture.bmp" you could edit it in VB or add a property that allows you to specify the name(be careful to include a default filename in case users don't supply a name.

Version 1
This is a response to Ralnautikuus upload 'BackBorders' txtCodeId=55728. Still not perfect but cute.
You can create a decorative form which conceals additional controls behind the decorations, by modifying the menu
on the UserControl you can extend or limit the end-users ability to interact with the control.
-----------------------------------------
Suggestions, bugs gratefully accepted.

Rate PictureFrame UserControl v2

Upload

Download this snippet    Add to My Saved Code

PictureFrame UserControl v2 Comments

No comments have been posted about PictureFrame UserControl v2. Why not be the first to post a comment about PictureFrame UserControl v2.

Post your comment

Subject:
Message:
0/1000 characters