VBTools 4.0
Tech Support Questions

Q. I am using the mh3dgauge control to show progress during the reading of a file. The problem I am having is that I use the refresh command to display the graph and the entire control flashes. What can I do to make the gauge indicator the only thing that changes?

A. Replace the .Refresh code with a DoEvents, and then Wndows will take time to update the control without getting to flashy.

Q. I have a mhIntInput control with min 0, and max 500. Yet, I can enter a -1, or delete the whole entry and leave a space in it. The only thing that works is the spin. it stops at min and max.

A. You can enter anything you want to enter in the control. An InvalidEntry event fires if it is not within the parameters specified by min & max, this is how it controls what is entered. You can then set the value(in code) to whatever you like in the event handler.

Q. How can I implement something other than a mouse double-click to expand/contract an outline? I want to use the keyboard's Enter key, or emulate the +- keys used in VB's outline control. How can the +- function in the VB control be emulated? The single click on the + or - symbol is really useful.

A. The keydown event for the tree control will give you the +- functionality you are looking for. If the user presses a key, the keydown event will fire. You can select case the key pressed; and if it is a + or - then expand or contract that branch of the tree.

[TECH SUPPORT TOC]

[HOME] [TABLE OF CONTENTS] [SEARCH]