Here's the problem with form.scaleheight...
Scaleheight is generally the working height of the form, but when the form is maximized and the border does not exist, scaleheight is the true working height less twice the border height. So, I end up with a stip of unused vertical space at the...
Now I feel stupid. I knew it had to be easier than that. My work-around is effective but totally unnecessary! I go through all of that computation to derive a property that is already there. Thanks, CCLINT.
If you start with sysinfo.workareaheight (which may or may not be equal to screen.height, depending on the taskbar properties) and subtract the above titlebar and menubar heights, then you get the total "usable height" of the form. (My form is maximized, so I don't care about...
try using keyup or keydown events with a breakpoint to see the argument value. That's how I do my hotkeys. I vaguely remember some quirky things about keypress and certain keys.
I can't imagine how you would do that. You can only satisfy a msgbox by clicking one of its buttons, but you can't send a click event to them, because you do not have access to the buttons as objects. You could maybe use a timer in one form to Unload the form that has the msgbox, but that is...
I don't know, but if I were you, I would determine it empirically. Only someone with intimate knowledge of the compiler can answer this question. Most of those people are probably bound by NDAs. :)
Try compiling a project with nothing in it but a single module with a "Select Case"...
I just know there must be an easy answer to this. It is totally critical for positioning graphical objects. I looked in VB help and searched this forum but found nothing...
I know I can use sysinfo.workareaheight to get the height of the desktop less the taskbar height. I am unable to figure...
Yeah, why must they exist as "print jobs" until you are actually ready to send them to the printer?
It is not clear whether you are just creating two documents at the same time or if you want to access two different printers.
The most recent message from vb5prgrmr implies one...
I have learned, as many have you have witnessed, a lot about the pitfalls of timers. A more reliable way than 60 iterations of a one minute timer is to query the system clock every minute. Then you don't have to worry about the fact that VB timers are far from exact because of execution time...
So, I've finally learned something new! I tried calling Load separately from Show and putting DoEvents between everything, but that did not help. Then I tried to create an Initialize method to see if at least that was being called via Load. YES, it is. The msgbox I put in (the only contents...
Thanks, suds.
Very interesting. I have a new observation. If I open the object view of the form in a window (manually "load" it into VB) before I start Make, then I do not get an error during Writing, and the executable works fine.
I have also noticed that if I get the error once...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.