07. marts 2017 - 23:52Der er
11 kommentarer og 1 løsning
sætte boks i bunden af en formular og den skal vokse opad...ikke nedad - via VBA
Er lige i test-mode, hvor jeg prøver at lave lidt grafer på en formular.
Jeg har en boks der som standard er 1 x 1 cm
denne boks højdeværdi hentes via vba fra en tabel, højden selvfølgelig varierer fra post til post,- Det virker også fint med højden, men jeg vil gerne have boksen til at stå nederst og vokse opad ... som det er nu vokser den nedad...
If your box is in the form Footer and you want to place the bottom of your box so it is at the bottom of the footer then something like this might work.
NewHeight is obviously the value your getting from the dB which I am guessing is in twips. (567 twips per centimetre)
Received. I cant see any code where you try resizing pct_test_boks which I assume is the box in question? Even so, I think you need to take the forms height into account as I do in the example, so you can calculate top.
OK, I see its Soejle_1_Vertikal and 2 which you are having problems with. Same applies here, calculate top from height of formdetail and subtract new height
If you dont want to place boxes at bottom of form then you need to have a start point where bottom of boxes is to be placed so the top can be calculated from that
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.