Search:

Type: Posts; User: K4CY

Page 1 of 3 1 2 3

Search: Search took 0.47 seconds.

  1. Re: How to start an elevated Powershell from VB6

    Problem solved. I had to modify the RunAsTrustedInstaller project to accept a commandline of "powershell.exe -windowstyle hidden " & App.Path & "\foo.ps1". Thanks to all who contributed, Bob.
  2. Re: How to start an elevated Powershell from VB6

    Thanks xiaoyao. Yes, when powershell opens it says it's elevated, but as I said previously, it fails to 'set-processmitigation -name myProg.exe -disable dep'
  3. Re: How to start an elevated Powershell from VB6

    fafalone, thanks for the suggestions. ShellExecuteEX didn't help, but run as system does. Unfortunately I can't figure out how to set the args to run a script file automatically ... "powrshell.exe...
  4. [RESOLVED] How to start an elevated Powershell from VB6

    I start Powershell like this


    lRet = shellexecute(0,"runas","powershell.exe","","-noexit",1)

    Powershell window opens with the caption Administrator: Windows PowerShell. So far, so good. I can...
  5. Re: Where are DEP (Data Execution Protection) settings in registry (Win10/11)

    Thanks again fafalone. I jumped at the SetProcessDAPPolicy API. Unfortunately it ony workswith OptIn OptOut DEP settings. I ended up using PowerShell Get-processMitigation and set-ProcessMitigation....
  6. Re: Where are DEP (Data Execution Protection) settings in registry (Win10/11)

    Thanks for the thread fafalone. I saw a couple that pointed to \Layers=EnableNXShowUI. but mossed that one. It doesn't work on Win10. There are conflicting threads that enumerate possible settings...
  7. [RESOLVED] Where are DEP (Data Execution Protection) settings in registry (Win10/11)

    I would like to modify a legacy VB6 program to check if DEP is turned on. If it is, then check if the application is listed as an exception. If it isn't, then add the exception then generate a...
  8. Replies
    8
    Views
    1,870

    Re: How to read XML DateTime?

    It turned out that my original code


    endDate = left$(nodes(i).selectsinglenode("end").text, 10)

    actually worked if there was a "end" element, but failed with error 91 if there was no "end"....
  9. Replies
    8
    Views
    1,870

    Re: How to read XML DateTime?

    Thanks for the pointers, I'll experiment.
  10. Replies
    8
    Views
    1,870

    [RESOLVED] How to read XML DateTime?

    Hi, I am trying to read a simple XML file that includes DateTime like this <end>1991-03-30T23:59:59+00:00</end>

    Other elements I can read like this


    Qty =...
  11. Re: How to draw a straight line on an image control?

    This looks very promising. Thanks.
  12. [RESOLVED] How to draw a straight line on an image control?

    Any ideas on how to draw a line on a transparent image control, then how to remove it? TIA, Bob.
  13. Replies
    7
    Views
    1,351

    Re: Modifying a User Control to support MBCS

    The control is attached. What do I need to change? Tnx.
  14. Replies
    7
    Views
    1,351

    Re: Modifying a User Control to support MBCS

    wqweto, Looking at the code, I see the variable defined like this


    Private m_Font As StdFont


    Please you enlighten me as how/what to change.
    Thanks, Bob.
  15. Replies
    7
    Views
    1,351

    Modifying a User Control to support MBCS

    Hi, in a very old project, I use a button control I found on Planet Source Code called 'isButton'. Very pretty, with a Unix like look, rather than the carved from the face of Mt Rushmore with...
  16. How to programmatically force a WM_SIZING message

    Hi, I have a resizable form that must maintain one of two fixed aspect ratios. Depending on menu selection, the form must be width = height or width = 2 * height. I have subclassed WM_SIZING, and...
  17. Screen.MousePointer = vbHourglass is very flaky

    Hi, parts of my application are very database intensive, and may take several seconds to complete. I have code like this:



    Screen.MousePointer = vbHourglass
    doEvents ' so the mouse et al...
  18. Re: The LaVolpe lvCW32.DLL on Windows 10?

    Thanks Eduardo, works perfectly. Thanks Elroy the on-line viewer works great. No subscriptions to anything I didn't want, but I did have to turn off my ad blocker. Bob.
  19. Re: The LaVolpe lvCW32.DLL on Windows 10?

    LaVolpe, thanks for the reply. There's a current thread started by dilettante about a Win 10 look. I too am looking for ways to make my old code a facelift. With the noteable exception of the...
  20. Thread: Windows 10 Look?

    by K4CY
    Replies
    47
    Views
    10,668

    Re: Windows 10 Look?

    Coincidence, I just started a thread about the LaVolpe DLL for customizing the non client area on a form. Does it work on Win 10? I flattened out the generic Microsoft (created with a hammer and...
  21. [RESOLVED] The LaVolpe lvCW32.DLL on Windows 10?

    Does anyone have first hand Win 10 knowledge/experience using the LaVolpe DLL for customizing the non-client Window area?

    I have just wasted half a day trying to read the .hlp file by downloading...
  22. Re: [RESOLVED] How to intercept KeyPress or KeyDown CTRL+D in/on a textbox

    LaVolpe, I typed in my final message then marked the thread as resolved. Looks like the message wasn't posted ... To paraphrase my message ... Bizarre! I moved the exe to another PC. It worked as...
  23. Re: How to intercept KeyPress or KeyDown CTRL+D in/on a textbox

    Again, thanks for the suggestions. Text is just a plain vanilla TextBox. All the other suggested tweaks did nothing. A reboot didn't help either. No other apps running other than what Win 10...
  24. Re: How to intercept KeyPress or KeyDown CTRL+D in/on a textbox

    Thanks for the suggestions. However, no there are no menu shortcuts, and yes the forms KeyPreview = True. I have stripped it down to the bare minimum. One form (with KeyPreview True) one exit box,...
  25. Re: How to intercept KeyPress or KeyDown CTRL+D in/on a textbox

    Eduardo, thanks for the reply/suggestion. I already tried than., and it doesn't work, Bob.
  26. [RESOLVED] How to intercept KeyPress or KeyDown CTRL+D in/on a textbox

    Hi, there are numerous postings on this (and closely related) subject. But no practical answer I can find. Simple question: I need to intercept the user typing CTRL+D in a Textbox. Alt+D is simple...
  27. Replies
    2
    Views
    1,057

    Disable/Enable keyboard mapping

    Is there a way to temporary disable/enable keyboard mapping at runtime? For example users with UK keyboards can not use CTRL+ALT+4, users with German keyboards can not use CTRL+ALT+8. The key...
  28. Replies
    23
    Views
    6,850

    Re: Remove the title bar from a Form

    baka, I tried your suggestion - MoveWindow with bRepaint True, but same result for me. The IDE looks as expected, but the exe shows still some of the title bar. The only solution I've found so far is...
  29. Replies
    23
    Views
    6,850

    Re: Remove the title bar from a Form

    LaVolpe, that's it, works as expected, with the additional advantage of allowing me to only have horizontal sizing, which was something I'd have to jump through hoops later to achieve. Perfect,...
  30. Replies
    23
    Views
    6,850

    Re: Remove the title bar from a Form

    Thanks for trying ... OptionBase1, Those are the settings I'm using. DataMiser, That doesn't work either. Looks as expected in the IDE, but compiled there's the mini caption bar back. Thanks, Bob.
  31. Replies
    23
    Views
    6,850

    Re: Remove the title bar from a Form

    Peter, this is VB6 Form within my application that I want/need shown with no title bar. Why use APIs? If I set the Form BorderStyle = 0 then I can't resize the form. Thanks, Bob.
  32. Replies
    23
    Views
    6,850

    Remove the title bar from a Form

    Do I hear a collective groan of "Oh, no that's been addressed 1000 times". Bear with me please ...
    I have this code to turn off WS_CAPTION and DLGFRAME


    ' GWL_STYLE = (-16)
    '...
  33. Re: How to find the handle of the first 5 controls on and external application?

    LaVolpe, thanks for your insight. Using Winspector and/or Window Detective here's what I see - When running a small VB6 application, I see all the controls, their class and handles. I see the Window...
  34. Replies
    19
    Views
    2,831

    Re: Set the TabIndex in an external application

    I'm not licensed to drive Spy++, but Winspector and Window Detective just said Huh? But, for dull disclosure, I am that proficient in operating them, I couldn't even get a single application message...
  35. Replies
    19
    Views
    2,831

    Re: Set the TabIndex in an external application

    Ordinary Guy, thanks for the suggestion, but unfortunately not. The application GUI is written in Python, and I suspect the concept of 'Command Button' is as alien to them as Python is to me. The...
  36. Re: How to find the handle of the first 5 controls on and external application?

    Eduardo, that is magic. But just like all my previous testing, everything with the exception of the menus return either 0 or the hWnd of the main Window. I don't know if it is of consequence, but the...
  37. Replies
    19
    Views
    2,831

    Re: Set the TabIndex in an external application

    Yes, everyone keeps telling me how easy it should be using FindWindowEx. but so far I haven't been able to return anything higher than 0.


    lRet = FindWindowEx(h_wnd, 0&, vbNullString, "SOME TEXT...
  38. Re: How to find the handle of the first 5 controls on and external application?

    LaVolpe, thanks for the reply. I already have the Window hWnd, is there some devious use of the GetWindow API I wonder? I tried FindWindowEx with a few Button caption texts. Nothing, they all return...
  39. How to find the handle of the first 5 controls on and external application?

    Hi, I have need finf the handles of the first few controls on an external application. All I have is the Window handle. Several discussions I've read have suggested use of the AttachThreadInput API....
  40. Replies
    19
    Views
    2,831

    Re: Set the TabIndex in an external application

    Yes, the ultimate objective of the exercise it to write text to another applications textbox. However, I have not found a way to get the textbox handle. Initially, after starting the application, I...
Results 1 to 40 of 84
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width