Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Devin
  • Order by date
  1. Devin

    detecting height of titlebar and menubar

    hmmm... The form is maximized by default, so it's not a resizing issue. I don't understand, either.
  2. Devin

    detecting height of titlebar and menubar

    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...
  3. Devin

    detecting height of titlebar and menubar

    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.
  4. Devin

    Firing events - Firing too many times..Please help

    Yeah, that loop is baking your poor proc. Think of the children! [he cried in SouthPark fashion]
  5. Devin

    detecting height of titlebar and menubar

    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...
  6. Devin

    Escape Key

    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.
  7. Devin

    Automatically Close MsgBox

    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...
  8. Devin

    Select Case or IF

    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&quot...
  9. Devin

    detecting height of titlebar and menubar

    thx, Hypetia. That is just what I needed. There's a star for you.
  10. Devin

    detecting height of titlebar and menubar

    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...
  11. Devin

    Data feed from Serial Port

    It's as if you're not setting the correct terminal type (e.g. vt100, etc.).
  12. Devin

    Creating 2 print jobs as once using printer object

    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...
  13. Devin

    Hourly Query

    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...
  14. Devin

    Show won't run Load in special cases - puzzling

    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...
  15. Devin

    Strange error -- cannot "load" form during "writing" stage o

    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...
  16. Devin

    Show won't run Load in special cases - puzzling

    That star was only for your effort. It will take me some time to try all these ideas. I suppose it would have been proper to save the star for when I've solved it. I'll let you know when I do. Thank you, all, for such quick responses.
  17. Devin

    Show won't run Load in special cases - puzzling

    Sorry-- that was a typo -- of course I do not have begin, and the method ends in "end sub." That is not the problem. Sorry for the confusion.
  18. Devin

    Show won't run Load in special cases - puzzling

    There should be an award for most bizarre errors, for surely I would win. I spent a whole day pulling my hair out over this, but now I must seek help. Here we go... I have a very simple program that has a form with something like the following: Private Sub someButton_Click begin...
  19. Devin

    Version Control in VB6

    Yeah, the Visual Studio source control is notorious, so I've never used it. Unless this is some huge project, do it the ugly but foolproof way of duplicating the entire source, like vb5prgrmr suggests. You can save space by only backing up the form and project files, not all the images and...
  20. Devin

    Strange error -- cannot "load" form during "writing" stage o

    I'll have to try that, CC. I think that's my best bet, currently. However, the fact that the other 3 very similar projects do not have this problem, indicates that the registration is probably OK. Also, it may be true that this particular development machine never had the older version...

Part and Inventory Search

Back
Top