TreeView control (comctl32.ocx) does not load with touch screen services - vb6

I am facing an issue in loading a TreeView control (comctl32.ocx) in "Windows Server 2012 R2" machine. The TreeView style used is tvwpictureText.
When I googled for a solution. I have found the solution saying: if you disable the service "Touch Keyboard and Handwriting Panel Service". the control will load.
The TreeView control(comctl32.ocx) is not loading properly when service is enabled:
If I disable this service and restart the machine then the TreeView control (comctl32.ocx) loads properly:
If I use mscomctl.ocx, TreeView also loads properly irrespective of the service being enabled/disable in Windows Server 2012 R2 machine. But I can't use mscomctl.ocx for development because all projects are built with comctl32.ocx.
Here I want to know why this service is causing the problem to load the TreeView control of comctl32.ocx. Is there any alternative for this issue?

If you could afford not using the images on the TreeView, it should work properly if you change the "Style" property to 0 (tvwTextOnly). This solution worked on my application.

Related

How to start windows service for a windows server using UI Action?

I want to start window service by clicking on UI Action which is on the windows server detail page so as below mentioned what i tried so far,
As a SNOW dev i have created one UI action called "Start service" and added in windows server detail screen (added that button because i want to start all windows services which is associated to this windows server)
Problem is i am not sure how to start that service using that button (Is there any specific code to start that services ?)
Please suggest what i have to do in this case !!

Running Internet Explorer on LocalSystem Account on Windows 2012

I'm setting up Selenium Grid. We have a separate machine for each version of the browser.
Each node is started as System Service running on LocalSystem account with interactions with user desktop enabled.
This is required because Selenium Grid node starting Internet Explorer have problems making screenshots and transferring them when there was no interaction with user desktop.
As far as I was able to check, it looks like that interactions with user desktop for service are only allowed for LocalSystem account. Event changing manually flags in registry does not seem to works (as it was in windows 2008)
Everything is working fine except the test where I need to perform upload of the file. When there is an action to open dialog for file browsing, following popup appears
Is there any way to prevent this (creation of folder Desktop does not seem to work) ?
From the other hand, if there is a way to run service under different account with interactions with user desktop enabled, that would also be a case.
I would appreciate any help because I'm stuck with the problem
I have checked some additional solutions, like running selenium grid nodes via PowerShell Invoke-Command and this did not worked too.
I have managed to run selenium grid nodes as Windows Service with desktop interactions using 3rd party tool FireDaemon Pro Service Manager.
I didn't try this but PsExec -s should work
https://technet.microsoft.com/en-us/sysinternals/bb897553

Unable to access localhost from x-ms-webview

I have this code in my WinJS default.html:
<x-ms-webview src="http://localhost/"></x-ms-webview>
<x-ms-webview src="http://display/"></x-ms-webview>
<x-ms-webview src="http://192.168.1.2/"></x-ms-webview>
display is defined in the hosts file:
127.0.0.1 display
and 192.168.1.2 -- the one that is successful -- is another computer on the network.
This is in my appx.manifest:
display and localhost successfully load in IE on the desktop and metro.
My OS is Windows 8.1 Enterprise. I have also completely disabled the Windows Firewall and this has had no effect.
What else can I do?
Microsoft blocks connections to the local machine except while running from the Visual Studio debugger.[1]
There is, however, a workaround tool. Quoting from this post on an MSDN blog:
Immersive applications (and IE11 on the Desktop) run inside isolated processes known as “AppContainers.” By default, AppContainers are forbidden from sending network traffic to the local computer (loopback).
[...]
I have built a GUI tool that allows you to very easily reconfigure an AppContainer to enable loopback traffic. This tool requires Windows 8 and runs on the .NET Framework v4. When launched, the utility scans your computer’s AppContainers and displays them in a list view. Each entry has a checkbox to the left of it, indicating whether the AppContainer may send loopback traffic. You can toggle these checkboxes individually, or use the buttons at the top to set all of the checkboxes at once. Click Save Changes to commit the configuration changes you’ve made, or click Refresh to reload the current configuration settings.
The aforementioned standalone tool is available from here.

Component Services - Enable partitions - Disabled

We just purchased new HP Z200 machines that came with Windows 7 Enterprise 64-bit on them and we have upgraded them to Service Pack 1.
When we go into Component Services and expand computers and right-click on My Computer and choose properties, the Options tab has a disabled "Enable partitions" option that we have not been able to figure out how to enable.
We do not have this issue on Windows 2008.
Any ideas?
According to: http://social.technet.microsoft.com/Forums/windows/en-US/a601d45a-10c0-4da9-a424-d35afef22161/how-to-enable-windows-7-windows-8-com-partitions-function
I'll quote in it's entirity:
According to the Product team on this behavior, starting from Windows
Vista, they have the “Enable Partitions” checkbox grayed out on client
desktops. This was an intentional change as they want the ability to
have COM+ partitions to be available only on servers and not client
desktops.
...which makes me wonder why the blazes the checkbox is there in the first place if there's never going to be a way to enabled it.

Is TWebBrowser dependant on IE version?

I am thinking about using the TWebBrowser component that comes within Delphi's default pallet of components in a project, but I wonder if it uses the IE version installed on the client machine?
If yes:
then I guess it would share its history, cookies, workoffline and stuff like that?
Can I separate them somehow?
Is there any webbrowser component that is free and is not shared with Internet Explorer on the client?
The current answer is not quite correct. It appears for compatibility purposes, the WebBrowser control will run in IE7 Standards Mode by default unless you add some registry settings.
See:
WebBrowser Control Rendering Modes in IE8 (archive)
More IE8 Extensibility Improvements (archive)
So it's not quite the current IE version. You can also check this if you use fiddler or check the web server logs for the agent string - as it alters the agent string used too!
Yes, TWebBrowser uses whatever IE version is installed on the machine.
Take a look at this similar thread for some possible alternatives..
How to embed a browser object, other than IE<n>, in a Delphi application
Yes, TWebBrowser is tied to Internet Explorer. If you want a standalone HTML viewer, then look at the PBear components.
TWebBrowser is a wrapper around IE ActiveX interface.
So, in the end,
TWebBrowser = Internet Explorer

Resources