Search:
Type: Posts; User: K4CY
Search:
Search took 0.47 seconds.
-
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.
-
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'
-
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...
-
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...
-
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....
-
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...
-
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...
-
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"....
-
Thanks for the pointers, I'll experiment.
-
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 =...
-
This looks very promising. Thanks.
-
Any ideas on how to draw a line on a transparent image control, then how to remove it? TIA, Bob.
-
The control is attached. What do I need to change? Tnx.
-
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.
-
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...
-
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...
-
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...
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
-
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,...
-
Eduardo, thanks for the reply/suggestion. I already tried than., and it doesn't work, Bob.
-
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...
-
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...
-
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...
-
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,...
-
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.
-
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.
-
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)
'...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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....
-
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...
|
Click Here to Expand Forum to Full Width
|