A visuality gap between text box and it scroll bar - c#

I'm creating my first windows forms app.
I've added a text box to the form and forced it to have a vertical scroll bar,
but it looks like there is a space between the text box and the scroll bar,
which of course does not look good:
AS you can see here
Appearance of the form
I've searched online and tried to "play" with the margins around the text box but i couldn't solve it
thank you.

I would try to resize the textbox (not in height but in length/width just to check if it changes anything). I had the same Issue once and could fix it with that.
~Fab

Related

How to make entire Link Label area clickable?

I've been trying to get to make the whole area clickable, in the picture you can see the size of the linklabel, but only text is clickable, I want to make the background of the link label(the whole area) clickable too, is that possible? How can I do that?
I've tried using
linklabel.LinkArea = new LinkArea();
But it only works for the text that i have. I've checked out StackOverflow Posts such as this or this but i couldn't get something out of it.
You can use a panel, with a mouseclick event on it, after that you can add a label or whatever you want
Panel

UWP Touch keyboard overlaps status bar

Im devoloping a UWP app and I came across a problem.
In my input page when I tap a textbox the keyboard just "pushes" the UI upwards and this happens.
Normal screen:
Check at the top of the page, you can see the problem:
Does anyone know a fix for this? Thanks!
I think this is default behaviour of the keyboard and can't be changed.
If the keyboard would not push the content upwards, it would overlap the actual TextBox, which you want to fill with text.
If your problem is the statusbar getting overlapped/underlapped with the page-content, you could try to change the color of the statusbar, it seems to be transparent at the moment.
See this.

Adjusting proper anchoring in windows form when you have labels and text boxes combined

I have this problem when i want to put a few labels and text boxes in a row in a Windows Form.
My idea is when I resize the window I want all text boxes to resize equally and to be proportional to the new window size. I tried to do this with Panels and basically this is an example of that
When i change the size of the window what i get is
So basically my text boxes expand equally till they reach one of the other two Panels and after that only the right text box expands. What I did is set anchor to left and right to all components.
Has anyone solved this problem, i would really appreciate the help?
Try the TableLayoutPanel with a single row and 3 (or 6) columns instead.

How to scroll two components with one's vertical scroll bar only

I'm working on displaying lines numbers for a richTextBox on C#, I tried many components but non of them worked with me, so I'm working on my own one.
I implemented that using the richTextBox + ListBox.
But, I'm having a problem when scrolling the richtextbox,the ListBox wont scroll, also I need not the vScrollBar of the List box to appear during scroll how can I accomplish this?
I mean scrolling both (richTextBox+listBox) when scrolling the richTextBox only, any suggestions?
You can't make this reliable. RichTextBox allows continuous scrolling where only a portion of a line is in view. ListBox does not. The line numbers will not line up with the lines most of the time.
Use a real text editor, like ScintillaNET. It supports showing line numbers.
Add a listener on an OnScroll* event and update the other control as one of them is scrolled.

Is it possible to get your user control to display those alignment guides when placing them on a WinForm?

In Visual Studio (2008) when you place a textbox on a Windows Form, and drag it around, you see very helpful guidelines which help you align it (left, right, top or bottom) to other controls. You also see a line the represents the bottom of the text in that control helping you align the text within your textbox, to the text within a label, regardless of the height of that label.
I have user control that contains a textbox and a couple of buttons. Can I force the VS2008 designer to show me the same line for the bottom of the text, from the textbox within my user control? If so, how?
Seems like this answer might be what you need - Baseline snaplines in custom Winforms controls

Categories

Resources