Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.36 seconds.

  1. Re: How to programmatically force a WM_SIZING message

    Here it is, trying to use WM_SIZE, but I still don't have it quite right. I'm hungry though and going to get some lunch:



    Option Explicit

    Private Const WM_DESTROY As Long =...
  2. Re: How to programmatically force a WM_SIZING message

    Here, I did it for a 1-to-1 aspect ratio using WM_GETMINMAXINFO. The nice thing about WM_GETMINMAXINFO is that you get it before the form is resized (so, reduced flickering).

    Here's code for a...
  3. Re: How to programmatically force a WM_SIZING message

    I've been playing with it, and I think subclassing on WM_SIZE would be easier. In fact, now I'm wondering if it all can be done in the Resize event, although that might flicker.
  4. Re: How to programmatically force a WM_SIZING message

    I'd probably subclass the form, monitoring for WM_GETMINMAXINFO and then do what I wanted in the subclass procedure.

    You could set some global variables about whether the aspect ratio is 1 or 0.5...
  5. Replies
    4
    Views
    211

    Re: Hung but not hung

    Perfect Wqweto. That does precisely what I wanted.
  6. Replies
    4
    Views
    211

    [RESOLVED] Hung but not hung

    Ok, this is primarily a VBA (MS-Access) question. Please forgive me for posting it here (and move it if you must, but I'd really prefer that it stay here).

    I've got a long-running loop running in...
  7. Replies
    12
    Views
    370

    Re: File Format reader

    I'll jump in here just because I'm bored.



    Axisdj,

    The use of the word "most" in that sentence bugs me each time I read it. In the most basic sense, ALL files are in a binary format. ...
  8. Replies
    6
    Views
    247

    Re: [RESOLVED] Method '~' of object '~' fix

    Well, I haven't seen any of it in a while, but on several occasions, I'd tamper with either MS-Office and/or the VB6 IDE, and the VB6 IDE would start doing these weird things with MS-Office, trying...
  9. Replies
    21
    Views
    1,367

    Re: What Causes This?

    I added a note about it to my Installing the VB6 IDE on Windows 10 thread.
  10. Replies
    6
    Views
    247

    Re: Method '~' of object '~' fix

    Yeah, I know that the DataView isn't the only thing that causes the error, but I think that's one of the main places. There's some kind of interaction with MS-Office that happens there (possibly...
  11. Replies
    6
    Views
    247

    [RESOLVED] Method '~' of object '~' fix

    I fixed it, but now I've forgotten how. Sometime in the last few months, someone made a post on how to fix most of those Method '~' of object '~' errors when loading the IDE, and now I can't find...
  12. Thread: Frame

    by Elroy
    Replies
    11
    Views
    411

    Re: Frame

    This is a similar problem to the ComboBox problem in another thread. When a control has TabIndex=0, it's easy for the user to do something that fouls up that control (such as hit the space bar, or...
  13. Replies
    8
    Views
    473

    Re: MySQL (with VB6) questions

    Thanks for all the input. I'm good to go at this point. :)
  14. Replies
    18
    Views
    563

    Re: After form load, Combo Box is highlighted

    I've had this problem before too. When a ComboBox has TabIndex=0, there can be problems. I've solve it by always making all the ComboBoxes have non-zero TabIndex. I do that in one of two ways: 1)...
  15. Re: VB6: how get RGB from ARGB color?

    Joaquim, not sure what format you're talking about, but RGB is always in an ARGB format. The "A" is just the alpha channel. Ignore it, and you've got RGB.
  16. Re: What is the best way to use a Constant

    HKcom,

    You're really not asking about Constants (Const declaration) as much as you're asking about scoping. And scoping applies to both variables and constants.

    The general rule-of-thumb is to...
  17. Re: DisplayResolution 2560 x 1440 gives run-time 6 overflow error program made with

    Ok, I've tried to re-trace my steps of figuring out why all TVs can't work well as monitors. And the keywords seem to be "Chroma Subsampling". I don't fully understand it all, but, again, it has to...
  18. Re: DisplayResolution 2560 x 1440 gives run-time 6 overflow error program made with

    Actually, when I first got my latest computer (Asus GL702VS-RS71), I plugged it into my 70" 4K TV and it worked just fine (including the VB6 IDE, and some test programs). However, I'd never use that...
  19. Re: [RESOLVED] VB6 command-line executable sending "result" code back to caller

    Wqweto, thanks a great deal for those clarifications, especially about OpenProcess/CreateProcess. I'll definitely save a copy of your procedure.

    However, I just hit the "Send" button on an email...
  20. Replies
    68
    Views
    51,688

    Re: Installing the VB6 IDE on Windows 10 - 64 bit.

    Hey, sorry it took a couple of days to get back to you ... just been busy with other stuff. But yeah, I'm glad you figured it out. :)
  21. Re: [RESOLVED] VB6 command-line executable sending "result" code back to caller

    Ok, it's now all up-and-running (with basically the code I posted in post #9, and #8).

    Wqweto, thanks for the enhanced "ShellAndWait" procedure.

    And yes, Olaf, you're correct about the...
  22. Re: VB6 command-line executable sending "result" code back to caller

    Ok, finally got to the testing of fetching the return code. The code above "sort of" worked, but it occasionally failed (unable to get the handle when trying to get the exit code). It was failing...
  23. Replies
    8
    Views
    473

    Re: MySQL (with VB6) questions

    Yeah, that's what I was thinking, but I thought I'd ask anyway.





    Yeah, I thought we could get this one. I just wasn't sure. Regarding using ODBC to do this, I'm fine if it just errors if...
  24. Re: VB6 command-line executable sending "result" code back to caller

    Public Sub ExitWithCode(iCode As Long)
    If InIDE Then
    MsgBox "Exited with code: " & Format$(iCode)
    End
    Else
    ExitProcess iCode
    End If
    End Sub

    Public...
  25. Replies
    8
    Views
    473

    [RESOLVED] MySQL (with VB6) questions

    Hey, I know this isn't exactly the correct forum for these questions, but I'm doing all this from VB6, so I thought I'd ask here anyway. And, I'm just most familiar with this forum.

    Ok, we're...
  26. Re: VB6 command-line executable sending "result" code back to caller

    WOW, you've got to be careful with ExitProcess too. When executing from the IDE, it doesn't just terminate the execution ... it terminates the entire IDE.

    So, for others using this, that's a...
  27. Re: VB6 command-line executable sending "result" code back to caller

    Ok, so it IS a handle and not the PID.

    I've reworked it, and I believe I've got it now. Still haven't tested though, but will shortly.



    Option Explicit
    '
    Private Declare Function...
  28. Re: VB6 command-line executable sending "result" code back to caller

    OptionBase1, that looks perfect.

    The call to ExitProcess paired with a call to GetExitCodeProcess looks like exactly what I was after. I'm trying to finish something else up first, but I'm...
  29. [RESOLVED] VB6 command-line executable sending "result" code back to caller

    I'm calling a VB6 program (from command line with an argument) with Shell from the VBA.

    I'd like to return a single boolean (or even just a bit) back to the VBA caller letting it know whether or...
  30. Replies
    44
    Views
    3,814

    Re: Planet Source Code Jumbo Resource CDs

    I used a tool that converts them from the PSC files to ZIP files. I believe it was written by Argus19. I'm not willing to distribute it, but you might ask him, and I've only got the executable...
  31. Replies
    7
    Views
    599

    Re: Win10 version 2004 update

    I just installed 2004, and ran my primary application through its paces, and everything seems to be fine.

    One thing I did (very pleasantly) notice is that the red "drag" rectangles for controls...
  32. Re: [VB6] Convert a picture to PNG byte-array in memory

    Maybe this is a bit different, but I just use GdipSaveImageToFile in the GDI+ to get this done.



    Private Declare Function GdipSaveImageToFile Lib "GdiPlus" (ByVal image As Long, ByVal pFilename...
  33. Re: create a activex used combox and move all methods and properties to this new cont

    That's how I've always done it.
  34. Replies
    27
    Views
    1,072

    Re: Like the *Friend* Keyword But ...

    Another reason (that I've done) that you might want to do this is ... Class1 needs to create many instances of Class2. However, Class2 is only to be used with Class1. In that case, you can't just...
  35. Replies
    18
    Views
    745

    Re: Extended ascii characters

    "Extended ASCII characters"

    Those words make me think of the old DOS days, or maybe even the TRS-80 days, where we actually had such a thing ... block/character graphics and a few extra...
  36. Replies
    24
    Views
    738

    Re: Different Boggle Question

    Wait, you want to do it backwards? Type in a word, and then see if the code can find it?

    Ok, what if the word has duplicate letters, like maybe "boot" (two "o"s). Does the Boggle board also have...
  37. Replies
    24
    Views
    738

    Re: Different Boggle Question

    Complicates things a bit in code....(i was scoring each word that each player would have told me)....errrrrrr[/QUOTE]

    If it were me, I'd just have a "master" collection, and also a collection for...
  38. Replies
    24
    Views
    738

    Re: Different Boggle Question

    Diagonal is a candidate? I didn't realize that. Here's a modified function to consider diagonal as adjacent:



    Option Explicit

    Dim bbSel(1 To 4, 1 To 4) As Boolean

    Private Function...
  39. Replies
    24
    Views
    738

    Re: Different Boggle Question

    I don't know the rules to this thing, but if you can make the same word twice, but using a different square combination, I'd probably make a Collection of either the bbSel(1 To 4, 1 To 4) arrays, or...
  40. Replies
    24
    Views
    738

    Re: Different Boggle Question

    Ok, here's an idea I threw together. I didn't test it though as I didn't put together all your textboxes.

    I assumed your textbox array was from 1 to 16 though. If it's 0 to 15, things will need...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width