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

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!

Related

Disable advancing to next slide on click or keypress

In PowerPoint, how do I disable moving to next slide on click or keypress during slide show programmatically?
I have found quite a few results in Google, but all of them simply ask me to uncheck that particular option in the Ribbon. I need a VSTO/VBA way of doing this. My slides contain hyperlinks that will handle navigation between slides. I do not want to have other ways of navigation.
Also the following line didn't do the trick for me:
Pres.SlideShowSettings.AdvanceMode = PpSlideShowAdvanceMode.ppSlideShowManualAdvance;
OMG. Can't believe I found this so quickly. Here's the setting that serves the exact purpose I was looking for:
Pres.SlideShowSettings.ShowType = PpSlideShowType.ppShowTypeKiosk;
This will disable all kinds of keyboard and mouse navigation (including the navigation toolbar that appears at the bottom left during slide show). I am now be able to cruise through the show using my own hyperlinks.

QML ListView Scrolling

On Android 4, when press-holding a key with accented characters like "i", a popup menu for the accented characters is displayed. Then sliding the finger into the button of any accented character within the popup menu highlights/selects the button, and finally releasing the finger, inputs the accented character into the target textbox.
I'd like to reproduce this (with a vertical popup menu) in QML with the addition of a scrolling behaviour when finger reaches the top or bottom of the popup menu (typical application: select a temperature among a hundred of values)
I tried to use a ListView for the popup menu, but the default scrolling behavior is not the one I need.
So far I managed to make a lame hack, using a Timer to update the ListView's contentY, but the code as well as the result look wrong. I was wondering if there is a proper way to achieve that.
Thanks
Sorry for posting as an answer but dont have the 50 for commenting.
What do you mean with default scrolling behavior? Maybe the PathView is your answer, if I understood properly.
Further details will be appreciated

VB.NET overlaying panels is not working

I am overlaying a bunch of panels on top of one another. I want to be able to click a button to display which ever panel is in the stack referred to by unique names (panel1, panel2...).
However, the bottom panel some how is always the parent of whoever is on top of it. Therefore, If I were to set the visibility of the bottom panel to false, then nothing on top of the bottom panel can be made visible.
How do I make these overlayed panels independent to each other instead of having a parent-child relationship?
I faced the same situation a time ago. The more pragmatic way that I found was to use a tab control and hide/show tabs accordingly. It is possible to get rid of the label of the tab, so users dont even know about its existence. The rule is to have one and only one tab visible in any given time.

VB Datagrid Disable AutoScrolling Focus on Selected column

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.

Show Alert using tooltip in vb.net

I have a small application in which I need to show alerts if a particular condition is met. I have an mdi form and several child forms. Now the best way to show an alert is to show a tooltip on the right side corner of my mdi form. Though this works, but the problem is I want user to close the tooltip once he has read.
Now the tooltip that vb.net provide does not support click events. If I give a long time duration the tooltip would be open all the time and if I give a short duration then it will close quickly.
What can I do ?
Help will be appreciated.
Thanks,
GR
You might consider a statusbar at the bottom of the window instead of a tooltip (like at the bottom of Word). You can intercept clicks on those, split the bar into several sections as necessary, etc.
Alternately, I'd probably code up a little pop up form with no border, min/max.close buttons etc, like a toast message, and show it as necessary, Stick an RTF control on it and you're "tooltips" can be very richly formatted, add a timer and the window can disappear after a short timeout, or intecept the click and close it manually.