qbd software ltd [UK]
moth > qbd software
moth Tips Small selection of Visual Basic Tips
Page: 11 Dec 2001
 
Links
Moth

Introduction

This page includes tips that are based upon the search criteria people have used to view our pages.  One of the updates for qPrinter included stopping the ugly flashing vb scrollbar.  This has become a regular search term and inspired this page.

Stop the Visual Basic scrollbar flashing
The problem with the Visual Basic Scrollbar is that it flashes.  This is to indicate that it has focus.  You can either set the Focus to something else on a form when the Scrollbar receives focus, or set the TabStop property to False:

Scrollbar.TabStop = False

You will need to have another control on the form.  If there isn't one the scrollbar will continue to flash.  A PictureBox is a good control for this because it can receive focus but has no visible indication of this.

 

Printer Orientation (pageset.exe)
The Printer.Orientation property is a constant problem.  Like many of the Printer Properties whether it has any effect is dependent on the printer driver.

Microsoft have a work-around called Pageset.  This project changes the Default Printer settings to change the Orientation.  One oversight on Microsoft's part is that it assumes the Default Printer Orientation setting is 'Portrait' so the Reset routine (that should be called after printing) will change the setting to 'Portrait'.

Microsoft: PageSet.exe Programmatically Changes Default Printer Orientation.  Thanks to Murgan Subbiah for this link.

 

 

©2001-2004 qbd software ltd