Search:

Type: Posts; User: JimOldguy

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    562

    Missing Form_Load, but still works!

    I have had to try to resurrect an old app, that I created some years ago.
    I have all the code, I believe, and the app seems to work, but I cannot remember, or indeed understand, how the app runs...
  2. Replies
    9
    Views
    777

    Re: Windows authentication issue

    I think I'm going to accept defeat here!
    I find I can achieve my aim by RDP connection to the relevant server, then run the app there.
    Not as elegant, but, what the heck!
  3. Replies
    9
    Views
    777

    Re: Windows authentication issue

    Hi,
    Yes, my home PC is part of the domain.
    Also, I'm running Windows 10 Pro, so no issue there.
  4. Replies
    9
    Views
    777

    Re: Windows authentication issue

    Nope, not using WiFi.
    Home PC is Ethernet to router, and office domain is all wired.
  5. Replies
    9
    Views
    777

    Re: Windows authentication issue

    BTW, I'm running Windows 10, and the server is Windows Server 2012 R2
  6. Replies
    9
    Views
    777

    Re: Windows authentication issue

    Hi qvb6,
    Yes, I've tried running the app as admin. No difference.
    The code in my first extract works fine. The error only arises later, after the OpenSCManager command has completed OK.
    The app...
  7. Replies
    9
    Views
    777

    Windows authentication issue

    I have a utility that works fine if I am in the office, and thus on the domain network.
    However, if I try to run it from home, using a VPN to connect, one command in the code fails.

    When the...
  8. Replies
    8
    Views
    2,316

    Re: Reading string from USB device

    Well, Ctrl-J certainly is detected, so evidently my search for KeyAscii=10 fails, as the reader must not be sending it!
    If I type CTRL-J, the code works!
    So, I still need to find how to detect the...
  9. Replies
    8
    Views
    2,316

    Re: Reading string from USB device

    Hello again, Dilettante,

    Thanks for responding.
    I have proved that the reader sends a linefeed character at the end of the string.
    How can I capture/detect it in VB6?
    I'm now using

    ...
  10. Replies
    8
    Views
    2,316

    [RESOLVED] Reading string from USB device

    I am trying to read a character string from a USB connected RFID Reader.
    Currently, I have the form Keypreview set to true, then this code:




    Private Sub Form_KeyDown(KeyCode As Integer,...
  11. Replies
    10
    Views
    6,867

    Re: Set Outlook Out-of-office programatically

    I've looked in detail at the script listed above, and decided not to go with it.
    The script sets up scheduled tasks, to run at the specified time, to toggle the state of the Out Of Office feature....
  12. Replies
    10
    Views
    6,867

    Re: Set Outlook Out-of-office programatically

    Thank you, Westconn1, that is exactly what I needed.

    I've followed your link, and downloaded the vbscript there. I believe I now have all that I need.

    Thanks again,

    Jim
  13. Replies
    10
    Views
    6,867

    Re: Set Outlook Out-of-office programatically

    Yes, Office 365 etc.
  14. Replies
    10
    Views
    6,867

    Re: Set Outlook Out-of-office programatically

    Hi,
    If I can get the basic function to work, I'll probably set it up to run at start of Outlook, where it will check for the appropriate day.
  15. Replies
    10
    Views
    6,867

    Re: Set Outlook Out-of-office programatically

    Hi,
    If I can get the basic function to work, I'll probably set it up to run at start of Outlook, where it will check for the appropriate day.
  16. Replies
    10
    Views
    6,867

    Set Outlook Out-of-office programatically

    I need to be able to set the Outlook Out-of-office mode automatically, for different start and stop dates/times.

    One user needs the auto-reply to be turned on every Monday and Friday, while...
  17. Re: Setting Chart source to a Range fails.

    Well, after a fair bit of fiddling, I finally got it to work!



    .ListObjects.Add(xlSrcRange, Range("A1:C2"), , xlYes).Name = "Table" & Sheets.Count
    Set cht =...
  18. Re: Setting Chart source to a Range fails.

    Now I have a new problem.
    I need to be able to name the new table, on each new sheet, uniquely, so the chart then references the correct data.
    Currently, the data named "Table" refers to the sheet...
  19. Re: Setting Chart source to a Range fails.

    Found an answer!


    .Sheets.Add(After:=.Sheets(.Sheets.Count)).Name = Format(Now, "dd-MMM-yyyy")
    With ActiveSheet
    .Cells(1, 1) = "Time"
    .Cells(1,...
  20. Re: Setting Chart source to a Range fails.

    Found an answer!


    .Sheets.Add(After:=.Sheets(.Sheets.Count)).Name = Format(Now, "dd-MMM-yyyy")
    With ActiveSheet
    .Cells(1, 1) = "Time"
    .Cells(1,...
  21. [RESOLVED] Setting Chart source to a Range fails.

    I have this code:


    With ActiveWorkbook.ActiveSheet
    .Cells(1, 1) = "Time"
    .Cells(1, 2) = "Temperature"
    .Cells(1, 3) = "Target"
    ...
  22. Replies
    4
    Views
    1,142

    Re: IDE commands/menus missing!

    Thank you, Thierry. That fixed it.
  23. Replies
    4
    Views
    1,142

    IDE commands/menus missing!

    Running VB6 under Windows 10.

    I find IDE Menus are missing!
    Selecting "Project" from the main menu bar produces just the Add Form, Add MDI Form, Add Module, etc. options.
    I cannot find...
  24. Replies
    3
    Views
    2,096

    Re: OLE Error when running from compiled exe

    WOW!
    Many thanks, Dilettante, it was just as simple as that!:)
  25. Replies
    3
    Views
    2,096

    OLE Error when running from compiled exe

    I have an application that searches for AD accounts that have passwords soon to expire.

    The code works just fine when I run it from within the IDE editor, but fails when I try it from the compiled...
  26. Replies
    0
    Views
    515

    CreateUpdateSearcher ResultCode fails

    I'm running some code to check my servers for Windows Updates, and to see those which failed to install. (There are always some!)

    The code runs fine, but I cannot get the resultcode to show. I get...
  27. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    OK, guys,

    Thanks for all your help and suggestions.

    I've been down the hard road, and done a Windows 10 Reset!

    Now, having re-installed VB6, all is well!

    Must have been something...
  28. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    Zvoni, this is a 32Bit PC, so there is only System32.
  29. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    I've now re-installed VB6 on my 32Bit PC, but that has made no difference.

    However, I have just noticed something slightly odd:

    When I add MS Windows Common Controls 6.0 (SP6) to the...
  30. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    Good morning,
    (Well, it is here, in UK!)

    Thank you, Fafalone, for all that info. I'll look into using that as my Plan B.

    In the meantime...

    I have just run the code here on my 32Bit Windows...
  31. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    Yes, tried both.
    Here's how I tried setting up at design time:
    158415
  32. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    I am now leaning towards the conclusion, somewhat inevitably, that there's something adrift in my VB6 installation.
    (It's Visual Studio 6, actually, but I don't think that makes any difference...
  33. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    Phil,

    Only one ListView.
    No "On Errors". (I did have "On Error Resume Next", but I took that out to see if any errors were flagged, but nothing.
  34. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    OB,

    Yes, it works if I use the older, version 5.0 component, but that doesn't support checkboxes, which I need!

    Highly frustrating!
  35. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    OptionBase,
    That produces just a totally blank ListView.

    LaVolpe,
    Yes, I've checked hide column headers, etc.
    I've also tried adding a simple "Dummy Text" item, all to no avail.
  36. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    TG,

    Been there, done that.

    Stepping through the code with F8, every line gets executed as expected.

    I'm concerned that the "initialisation section", although executed, has no effect on the...
  37. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    Hi Phil,

    No change with dummy item addition.

    .View = lvwReport

    158411
  38. Replies
    24
    Views
    14,363

    Re: ListView not responding to code

    Hi Phil,

    Yes, typically there are about 55 iterations through the loop, depending upon what software has been installed on the PC.

    This is all the relevant code:



    With Me.ListView1
    ...
  39. Replies
    24
    Views
    14,363

    [RESOLVED] ListView not responding to code

    I have an app that loads a ListView with a list of applications currently installed on the PC, and their uninstall string commands.
    However, try as I might, I cannot get the ListView to respond to...
  40. Replies
    6
    Views
    1,237

    Re: Saving text within vb6 project

    Many thanks, Elroy.
    That is a clear and concise resolution for me.

    Thank you, again.

    Jim
Results 1 to 40 of 49
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width