VB Datagrid Disable AutoScrolling Focus on Selected column - vb.net

Kinda new here but needed help and a good friend suggested this site.
My problem is I have a data grid in Visual Basic, it works fine but as the columns extend past the width of the window I needed a scroll bar. This is where the problem arose. When a column past the 4th is clicked the scrollbar will shift to give it focus. As there are check boxes here they are constantly clicked and when they are the scroll bar shifts but the button isn't checked and must be clicked again.
I was hoping there was a way to disable this Auto focus so clicking a column will not cause the scrollbar to move.
Any help would be greatly appreciated. ^__^

There is no real autoscroll in vb, one of the sub method was causing it to jump by checking another cell off the screen then defaulting back to the one shown which had the appearance of a jump.

Related

Keep stationary panel at bottom of visible area of form while scrolling in visual basic

I have a dynamically expanding WinForm that is loading questions from a database, expanding with more questions. I would like to have a panel at the bottom of the visible screen with a save and close button, but the panel stays at the bottom of the form where I have to scroll all the way to the end in order to find them.
I need to find a way to keep the panel with the buttons at the bottom of the visible area of the form. I was not able to find much information on this, but I tried messing around with some suggestions found here Draw Border of Panel When it is being Active Scroll
I found someone with a similar problem here Keep a stationary UITableViewCell while scrolling but that solution does not help me.
Is there a simple solution to move the panel in the form at the same rate as the scrollbar in order to keep it stationary to the user?
Thanks for any help and I can provide more info if needed.

Is there a way to pin a TabPage so it will be visible even when scrolling?

I have a TabControl in a Form. I'm adding tabs programatically to it. The Multiline property is false, so when they don't fit the area, the left and right arrows appear. But the first couple of tabs are special ones, they should not moved to the left when the right arrow is clicked, they should remain where they are. Is there a way to do this, like pinning a tab in a browser?
I was thinkig about catching the event of clicking the tabheader arrows, and positioning the first tabs to their original location, but I don't know which event can handle that, and the repositioning would really work.
Thanks for any ideas!

How do I scroll with the scrollbar?

I am currently working on a project in VB.NET and I have a fixed-border form with the AutoScroll property set to True. Under the Load event, I have some loops that add a bunch of controls to the form, so I have AutoScroll create the scrollbar for me automatically.
Now when I open up this form, all the controls load up with no problem, it focuses on my first text box, and the scroll bar shows up. However, the mouse wheel does not do anything whatsoever.
So my question is, how do I, no matter where my focus or mouse is, scroll with the AutoScroll property enabled, in VB.NET?
as far as i know, scrolling is only enabled when focusing the appropriate element. but should be able to trigger scrolling by catching onmouseover() or similar...
this is somthing similar (just for a datagrid) scrolling datagridview without get focus

VB.NET FlowControlPanel scrolling automatically when it shouldn't

Very strange issue in VB.NET. I have a simple WinForm that has a FlowControlPanel that takes up the entire form except for a status bar at the bottom. If I add enough items to my panel so that a vertical scrollbar is needed, then scroll to the bottom, anytime I update my status bar the panel automatically scrolls back to the top. Anyone ever see this?
Thanks,
Mark

vb.net winforms datagridview how to tell where the user clicked in a cell

I am adding a custom column to a custom datagridview. One of the options this new datagridcolumn has is the ability show a value and then a button to allow the user to click on the button and something will happen. The button only takes up the right portion of the cell and the rest is a value. This button and value are displayable always and the button should always be able to be clicked on. In datagridview's display mode the value and button are painted. What I need help on is how to tell whether the user clicked on the button portion of the cell. Can someone please provide example code on how to do this?
Thanks,
Greg
Never mind I figured it out. I just put some logic in the cellclick event of the datagridview to get the GetCellDisplayRectangle and converted that to screen points and got where the mouse is on the screen and did a bounds test with the rectangle contains method.