Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. Re: Bogus "Out of Memory" message when sitting on Ctrl+Y in the IDE

    I don't keep any add-ins permanently loaded. I load the Resource Editor when I need it, which isn't that often. And I sometimes load another add-in which makes a call to...
  2. Bogus "Out of Memory" message when sitting on Ctrl+Y in the IDE

    183219

    Do other people occasionally stand on Ctrl+Y to delete code lines when possibly trimming down some code for various reasons? I don't do this often, but when I do it, I invariably get the...
  3. Replies
    15
    Views
    971

    Re: code conversion from vb.net to vb6.0

    Thank you, Dil. I was going to make a similar comment, but wasn't going to jump in while there was so much noise.

    And yeah, we have XML reading/writing options that work just fine!
  4. Re: Reading .mdb without preventing other process to access

    Yeah, I use the DAO, but I'm sure the ADO has virtually similar features. My primary application is highly multi-user, with everyone hitting the same MDB file sitting on a LAN drive, and it works...
  5. Re: Detects the DPI value after changing it in the running app

    Kavian, yes, I agree with that statement.

    Not sure what you're doing, but watch out if you subclass for WM_DPICHANGED, especially if you use it to resize your form. My typical situation is to...
  6. VB6 vs .NET differences ... IDE, libraries, functionality, whatever

    This really isn't something I care much about, but I thought I'd start a thread so that Schmidt and Niya (and whomever else wanted to join in) didn't continue derailing other threads in their ongoing...
  7. Re: Detects the DPI value after changing it in the running app

    That's not my experience. However, admittedly, I'm setting the awareness with an API call and not a manifest, but I'd think they'd be the same.

    To make the API call for setting awareness, I had...
  8. Re: Detects the DPI value after changing it in the running app

    There are several API calls into User32.dll for doing that. Just Google the entry name and the Microsoft MSDN page will show (typically as the first hit):

    GetDpiForWindow...
  9. Replies
    30
    Views
    1,076

    Re: Get Monitor Powerstate

    I only have one monitor this weekend so I can't do much testing, but it seems that everyone just keeps circling back to the GetMonitorInfo and GetMonitorInfoEx API calls, which didn't work for me...
  10. Replies
    30
    Views
    1,076

    Re: [RESOLVED] Test if second Monitor switched on

    See my comments in your other thread. I haven't tested any of it though.
  11. Replies
    30
    Views
    1,076

    Re: Get Monitor Powerstate

    Apparently a call to GetDevicePowerState "sometimes" works. Apparently, it depends on how much "feedback" the monitor gives to the Windows driver.

    Also, apparently a call to the get_Power method...
  12. Thread: read JSON FILE

    by Elroy
    Replies
    16
    Views
    609

    Re: read JSON FILE

    I want a dartabase too ... *pouts*


    183190183192
  13. Replies
    30
    Views
    1,076

    Re: [RESOLVED] Test if second Monitor switched on

    Ok, another problem. If you just turn a monitor off, Windows doesn't seem to be smart enough to get rid of that monitor from the desktop. At a minimum, you need to logoff and log back on. Is that...
  14. Replies
    30
    Views
    1,076

    Re: [RESOLVED] Test if second Monitor switched on

    Ok, we're talking about a compiled EXE?

    If that's the case, my code in post #5 (with the support code in post #9) should do it.

    If we're talking about designer forms in the IDE, that'll take an...
  15. Poll: Re: IF you regularly use a VB6 embedded movie play, which do you use?

    Yep, I'd sort of set this aside for the time being when I figured out that it wouldn't play MP4 files, as virtually all of the video clips I deal with are MP4 files these days.

    Maybe I should...
  16. Re: Read a text file from a specific line at to the and

    Option Explicit

    Private Sub Form_Load()
    '
    ' Get the entire file into memory.
    Dim iFle As Long
    iFle = FreeFile
    Open App.Path & "\TextData.txt" For Binary As iFle ' Should...
  17. Re: Read a text file from a specific line at to the and

    Here's one way to do it, probably not the way I'd do it for production code though.



    Option Explicit

    Private Sub Form_Load()
    '
    ' Get the entire file into memory.
    Dim iFle As...
  18. Re: Read a text file from a specific line at to the and

    Ummm, hey, here's an idea. Put the data in a database. :p
  19. Poll: Re: IF you regularly use a VB6 embedded movie play, which do you use?

    Well Dil, I must say that you do come up with some interesting information on occasion. Up until now, I've always used a highly customized version of SMPlayer with my application. I use a portable...
  20. Re: Read a text file from a specific line at to the and

    No, no technical reason. As far as I know, it works just fine.

    Just, these days, 99% of my data is stored in a database (either MDB file or SQL server), so I just don't have a need for it.
  21. Re: [RESOLVED] Handling different decimal symbols

    Personally, I force the issue:



    Option Explicit
    '
    Private Declare Function GetLocaleInfoA Lib "kernel32" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData...
  22. Re: After VMware shut down Improper , VB6 project usercontrol always become grey

    You really haven't given us very much information, specifically, what dependencies is this VB6 program using.

    Also, are we talking about a compiled program, running in the IDE, or both?


    If I...
  23. Replies
    30
    Views
    1,076

    Re: Test if second Monitor switched on

    It's a bit of code, and it must go into a BAS module. I stripped it out of a much larger module that does all kinds of things with monitors.

    But here's the fully functioning code for...
  24. Poll: IF you regularly use a VB6 embedded movie play, which do you use?

    This is just for those who have gotten an embedded movie player working in VB6 (fully controlled by VB6). I'm not interested in song (audio only) players.

    I'm wondering what people use. Feel...
  25. Thread: test title

    by Elroy
    Replies
    5
    Views
    214

    Poll: test title

    test
  26. Re: Read a text file from a specific line at to the and

    *laughs and shakes head* :)

    Possibly reading the whole file and counting Line-Feeds might be faster, but also more advanced. With that approach, a Seek would take us straight there, or just...
  27. Re: [RESOLVED] User action versus code causing event to raise

    HardCode, yeah, that's where I started. But some of my forms are quite complex (see post #6 for one that's far from the worst).

    Sometimes I'll have several CheckBoxes or OptionButtons that change...
  28. Re: hex to based64 conversion gives different result from online tools

    *nods* Good point. They could have had an "upload file" function, but I didn't look.
  29. Replies
    30
    Views
    1,076

    Re: Test if second Monitor switched on

    :afrog: I thought we were just testing to see if we had one monitor or two.

    Ahhh, I see. Yeah, that sometimes happens to me too, but I typically do my development on my primary monitor,...
  30. Replies
    30
    Views
    1,076

    Re: Test if second Monitor switched on

    In a BAS module:



    Option Explicit
    Public Type RECT
    Left As Long
    Top As Long
    Right As Long ' This is +1 (right - left = width)
    Bottom As Long ' This is +1 (bottom -...
  31. Re: Read a text file from a specific line at to the and

    Luca, Luca, Luca. You've been around long enough to figure something like this out.

    Tip:



    Open MyFilePathAndName For Input As #1 ' Should use FreeFile to do it right.

    ' A loop...
  32. Re: hex to based64 conversion gives different result from online tools

    Also, another question. Why in the world would you Base64 encode a Hex string. Hex is already encoded. Another word for Hex is Base16. And, as such, it's even more transmittable over finicky...
  33. Re: hex to based64 conversion gives different result from online tools

    Just for reference, softcrewtech, the following will take a VB6 (Unicode) string and convert it to a Byte array of ASCII/ANSI characters:



    Dim bb() As Byte
    Dim s As String
    s = "asdf"
    bb =...
  34. Re: User action versus code causing event to raise

    Ok, my mind is clearly not as clever as it once was. I don't need all those "timing" things in my new UC. Since I'm wrapping my CheckBox in this UC, I've got Get/Let properties for Value, so I know...
  35. Re: User action versus code causing event to raise

    CAUTION: I rewrote this (see post #38) in a way that doesn't need the timings. I'd recommend using that version, and not the one in this post if you wish to use this.

    Arghhh, I did some testing,...
  36. Re: User action versus code causing event to raise

    Yeah, and I can do data binding with the DAO as well.

    This might be one of those areas where I have an irrational aversion to doing things a certain way. I'm not totally sure why, but I have a...
  37. Re: User action versus code causing event to raise

    Ok, I actually did manage to get something working. Not sure if I'll actually use it or not. We'll see.

    Project is attached, but here's the code. It's based on the idea of a custom UC. (I...
  38. Re: User action versus code causing event to raise

    Whether or not a database record exists for the analysis. Also, just FYI, that database record now has an added field that is the saved state of that CheckBox, which is where it's saved. The...
  39. Re: User action versus code causing event to raise

    Not bad, baka. I'm actually on a tablet right now, eating lunch. I'll play around with that when I get back to my development computer. I could even use some WithEvents and get that done with a...
  40. Re: User action versus code causing event to raise

    Niya, that's sometimes true, but it's actually not true in my present case. In this case, the user is always allowed to click/change the checkbox.

    As stated above, there are two conditions you...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width