Change the position of a field access

Solved
binouzzz19 Posted messages 23 Status Member -  
binouzzz19 Posted messages 23 Status Member -
Hello,

I have a small issue which is as follows:

I have a trainer input form that I can use twice! Once following a training form and another time following a managementFormateurs form!! The thing is, I test the value of openArgs after opening the form to know which form has opened the one I want to work on!! It works perfectly, the thing is, depending on which form triggered the opening of the one I want to work on, I hide a button, and I would like the other buttons to change position!! The thing is, I don't know the command that can do that.

I repeat, my only problem is being able to change the position of certain buttons (close and delete).

Best regards
Configuration: Windows XP Internet Explorer 6.0

2 answers

EBasta
 
Hello,

A button is positioned in a form based on two coordinates: TOP (for vertical) and LEFT (for horizontal).

The starting position is located in the upper left corner of the form at (0,0). The higher the TOP value increases, the further down the button moves vertically - The higher the LEFT value increases, the further the button moves to the right.

So, in a form, to place a button at a specific location, you need to:

Me.MyButton.Top = 567
Me.MyButton.Left = 1134

The entered values are expressed in twips (which is 1/1440 of an inch): 1cm corresponds to 567 twips.

In the previous example, the upper left corner of MyButton will be positioned 1cm from the top edge and 2cm from the left side of the form.

I hope I answered correctly!
0
binouzzz19 Posted messages 23 Status Member
 
Thank you very much, I had actually succeeded before and was going to mark this topic as resolved, but your method works perfectly.

Thanks anyway.
0