Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 2.30 seconds.

  1. Replies
    17
    Views
    348

    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)...
  2. 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.
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. Replies
    67
    Views
    50,883

    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. :)
  8. 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...
  9. 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...
  10. Replies
    6
    Views
    291

    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...
  11. 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...
  12. Replies
    6
    Views
    291

    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...
  13. 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...
  14. 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...
  15. 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...
  16. [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...
  17. Replies
    44
    Views
    3,526

    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...
  18. Replies
    7
    Views
    575

    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...
  19. 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...
  20. Re: create a activex used combox and move all methods and properties to this new cont

    That's how I've always done it.
  21. Replies
    27
    Views
    983

    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...
  22. Replies
    18
    Views
    691

    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...
  23. Replies
    24
    Views
    684

    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...
  24. Replies
    24
    Views
    684

    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...
  25. Replies
    24
    Views
    684

    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...
  26. Replies
    24
    Views
    684

    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...
  27. Replies
    24
    Views
    684

    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...
  28. Replies
    24
    Views
    684

    Re: Different Boggle Question

    Ok, just brainstorming/thinking about this thing ... if it were me, I'd probably start with a 4x4 two-dimensional array of booleans. That array would represent letters selected/not-selected.

    And...
  29. Replies
    6
    Views
    318

    Re: change position of tab in SSTAB

    I've never tried changing tab positions ... without playing around, not sure if that can be done or not.

    But, I do know how to change which tab a control is on (during runtime). With that...
  30. Replies
    13
    Views
    557

    Re: Remove Duplicate Entries From UDT Array

    My first thought here is (if you're allowed to sort the UDT array) to sort the array on the UDT field for which you're trying to eliminate dupes, and then build a new (dupes eliminated) array. It'd...
  31. Replies
    21
    Views
    597

    Re: Read background color of a bitmap

    I'm not sure if you're talking about "Shapes" or "Charts". But, in a sense, I guess it doesn't matter. Either of those copied to the clipboard will have one or more "image" types in the clipboard,...
  32. Replies
    21
    Views
    597

    Re: Read background color of a bitmap

    I just read this thread, and I've got the same questions, primarily two:


    What's the goal? If you outline what you're actually trying to do, people can probably come up with ideas to get you...
  33. Re: [RESOLVED] Sporatic err 380, Invalid Property Value, but only in compiled exe

    Yes, I'm aware. :)

    I think all I (we) were saying is that the clicking of cancel button (that can click because of DoEvents) should just stop calling the Fortran DLL when it's clicked. I'm...
  34. Re: Help making a basic [re sizeable] UC at runtime

    Off the top of my head, it seems you just need to have a UserControl_Resize event with code in it that repositions (and resizes) all the sub-controls on your user control. Personally (short of...
  35. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    Wait, if there's not some kind of callback from this long-running Fortran code, how is your DoEvents ever getting executed in the first place?

    ------

    Also, what's the deal with the RTB? How...
  36. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    Also, as another thought, you might want to post your long running procedure. There are quite a few folks around here who can advise on how to make these things faster.

    Just one tip right off the...
  37. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    I've never heard of this. Sure, if an app "holds" the thread for a long period of time, Windows might think it's hung, but the app is still given its appropriate time-slices, and it's still...
  38. Thread: decimal point

    by Elroy
    Replies
    5
    Views
    349

    Re: decimal point

    This is a pretty hard-core way to fix it, but I bet it does, as your users might not like you changing their regional settings. Just a call to ForceSystemDecimalToPeriod, and I bet it's fixed.


    ...
  39. Replies
    12
    Views
    758

    Re: RtlToFromString - Number Bases

    Here's one of the scenarios I was imagining. When you have a Variant as an incoming argument, that particular Variant argument declaration is often used so that many different data types can be...
  40. Replies
    12
    Views
    758

    Re: RtlToFromString - Number Bases

    It's just something I thought of when reading your code. I thought I had seen the VB_BYREF flag set in the past on intrinsic numeric types, but I'm not sure I'm up for trying to make an example. I...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width