Resize ink picture control (1 Viewer)

Rowey

Registered User.
Local time
Today, 17:51
Joined
Oct 18, 2018
Messages
20
Hi all
I am having a lot of trouble finding a solution to changing the size of the input area of the MS InkPicture control size (ink input area) on a form in an MS Access project I have developed for an NFP I support.

If you resize the control in form design mode, the minute you open the form the control reverts to a set (smaller size).

I have hunted high and low for VBA code samples that address sizing but have not found a solution.

The reason for wanting to resize is that the form is displayed on a tablet that is carried around to people to sign and the default size of the input area is very small, and most of the people signing are elderly and consequently have trouble signing inside the small area.

Any help would be greatly appreciated. PS - the rest of the application works well with capturing the signature and saving it to the database.
 

JHB

Have been here a while
Local time
Today, 11:51
Joined
Jun 17, 2012
Messages
7,732
You can set the in the event On Open, (change the YourInkPictureControlName to the name of your control):
Code:
Private Sub Form_Open(Cancel As Integer)
  Me.YourInkPictureControlName.Height = 4000 'Change it to your size
  Me.YourInkPictureControlName.Width = 4000 'Change it to your size
End Sub
 

Rowey

Registered User.
Local time
Today, 17:51
Joined
Oct 18, 2018
Messages
20
Thanks job will give this a try
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:51
Joined
May 7, 2009
Messages
19,230
is there a Horizontal Anchor and Vertical Anchor property of the ink Control?
 

Rowey

Registered User.
Local time
Today, 17:51
Joined
Oct 18, 2018
Messages
20
Thanks everyone for your support- JHB’s answer was the solution for me. I appreciate all answers, as I spent hours searching the web with no luck. This is a great forum.
 

Rowey

Registered User.
Local time
Today, 17:51
Joined
Oct 18, 2018
Messages
20
Sorry just realised I didn’t mark as SOLVED
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:51
Joined
May 7, 2009
Messages
19,230
it does have a Horizontal/Vertical anchor property.
you can experiment with it (using Both value).
your pic will resize in proportionate to the size of the form.
 

Users who are viewing this thread

Top Bottom