Form Resize Event - vb.net

I am working on this program - VB. net and there is something I really don't understand it and I am really struggling with it.
The requirements of the program is when it comes to Form Resize Event, I have to do the following:
a.The three buttons are always aligned on the top without any space between. As a group, they are
always horizontally centered on the form.
b. The two labels are always aligned on top, so are the two textboxes.
c. Each label is left aligned with the textbox below it, and the space between a label and the textbox
below it is always 10.
d. When the form is resized, the bottom margin (the space below the buttons), the middle margin
(the space between the textboxes and buttons), and the top margin (the space above the labels)
are the same.
e. The left margin (the space to the left of the input textbox) is the same as the right margin (the
space to the right of the square root textbox). The space between the two textboxes is half of the
left/right margin.
Would anyone be able to explain to me and give me some examples please?
Thank you

Related

Vue - plot fixed points on an image that shrinks/grows

I am trying to make the numbers in this image hoverable, so on mouseenter on each yellow circled number, a card with some info appears, as shown.
All of the numbers (except for "1") are embedded in the image. I have made "1" absolute, with % values on bottom and left, so as the image shrinks and grows (responsive to screen width), the "1" loses it's position slightly.
Are there any more ways to do this which are much more accurate? Thanks!

FlowLayoutPanel bottom inner spacing

So I'm having troubles making my FlowLayoutPanel work the way I want.
When adding multiple controls to it so that vertical scroll appears and when scrolled to bottom I don't want controls to be touching the bottom border of FlowLayoutPanel.
Padding works properly for all but the bottom side, controls are properly spaced away from the edges of the FlowLayoutPanel, I don't know why bottom is special.
I need a solution that does not include adding invisible/transparent controls to it.
The closest I got to what I want was lowering the clientsize by some amount, but then in that area control doesn't repaint so it shows parts of added controls forever.
Kind of fixed with with larger margins on child controls, so I'm closing this.

vb.net unwanted richtextbox resizing

i have two richtextboxes of the exact same size located on my form. However, when I run it, one's height reduces. There are other controls around it so it leaves a weird space. What causes that?
Form in the Design tab
Form once I run it
I've tried constraining the control with the "same height" button, I've created a new richtextbox, but it keeps on happening.
It also depends on computers, on screens with unusual resolutions the box is the correct size.
Thank you
Its because scroll bar coming in picture. In order to uniformly set the positions and sizes of RichtextBoxes use DOCKING or Anchoring properly

UIButtons Alignment

I am trying to implement like word cloud in my app.
The image shown is like word cloud with left alignment.
What I did was, for placing the buttons I am checking whether the width of the text is greater than total width of the screen, if it is greater place the button in next row i.e increment the y position, if it is not just place the buttons. Everything is working fine. But what I want now is , i want to move the buttons alignment, like, I want to start the first button from center of the screen. Please help me to do this...

Vb.Net Label always centered

I'm using vb.net to make a screen saver.
I want my label where the text shows to always be centered no matter what screen size it is.
is there a way to get the screen resolution of the current monitor?
if i can get that then i can calculate the middle and set my label there.
Stretch the label to the whole width of the form and dock/anchor to left and right side within the label parameters. This will center your label whatever the size of the form.