VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

PictureFrame UserControl v2

Roger Gilchrist  (50 Submissions)   Custom Controls/Forms/Menus   VB Script   Intermediate   Wed 3rd February 2021

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 (9(9 Vote))
PictureFrame UserControl v2.bas

PictureFrame UserControl v2 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters