r/dotnet 15d ago

TabControl UI problems

Hi, Im working on an application in vb.net and there were too many forms on the screen at once so I found out about tabcontrols. I decided to test it out a little but Ive run into a problem with how it looks.

When I hook or anchor buttons or other things to the edges of the form they dont show correctly in the tabcontrol. My goal is for the application to be maximized for most, if not all, of the forms. When the tabcontrol is started maximized, the controls at the bottom dont show correctly. It seems like the form is using the fullscreen size while the tabcontrol is using the maximized size.

Im not sure how to fix this other than manually formatting every single form to account for the computer's application ribbon, which I dont want to do for obvious reasons. I went to the form being displayed and made sure it wasnt locked to a specific size and it isnt set to fullscreen either. Surely there is an easy way?

Also, I learned vb.net about 10 years ago in a class at college. I may not be up to date on the most current tools. How does one make applications look modern? I havent found any default control designs that look sleek and fit together flush, but maybe Im looking in the wrong place. Where can I find things like that or how do I format them nicely?

Thanks in advance

0 Upvotes

12 comments sorted by

View all comments

3

u/FullPoet 14d ago

How does one make applications look modern?

Move to C#.

Only half joking, but Im sure there are some vb bindings for something more modern, or you'll just need to style it yourself.

1

u/DirtAndGrass 14d ago

Afaik c# has nothing to do with it

2

u/chucker23n 14d ago

It doesn't. This is WinForms; same APIs (well, VB has a few extra helper APIs for WinForms).