How to create a custom xp ComboBox from scratch in vb 6 - vb6

Since a time like a few weeks ago, I have spent lots of time searching the web for a fully customized custom vb 6 xp user controls which I could use in an application of mine. I didn't find any good looking free ones. I don't pretend that there is no such control created. I managed to get some vb 6 projects on http://planet-source-code.com/ which have a number of custom user controls. Please if anyone can help me build one like a searchable combobox and xp theme I would appreciate.

Use a manifest file, simple as that. You can create xp themes easy.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="x86" name="prjThemed" type="win32" />
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*" />
</dependentAssembly>
</dependency>
</assembly>
it only works when you compile the exe, lets say the exe name is test.exe name the file test.exe.manifest.
Hope this helps!

Related

How to set DPI awareness of COM class loaded via DllSurrogate

I have tried every single manifest example under the sun in order to get my small application to scale properly (on Windows 8.1). Here's my latest attempt, for example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
Absolutely nothing has worked. So I was wondering if there's something else that needs to be done. My application is a COM Dll that's loaded out of process via DllSurrogate. Is there something else that should be added (maybe a commmand line flag or something) in order to get awareness to kick in? Calling SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE) does work, actually, but the docs discourage making API calls in lieu of the manifest approach. Thank you for any help!

Is there a way how to hide quick find on top of grid?

Is there a way to hide quick find search box on top of grid - either programmatically or via ribbon / customizations ? Btw, it should be in supported/able manner (no direct DOM manipulations).
If anyone is interested - it is possible; it involves a shipping of your own custom grid control. Then in control manifest make sure to specify
cds-data-set-options="displayViewSelector:false;displayQuickFind:false"
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="MyControls.MyGridControl" constructor="MyGridControl" display-name-key="MyGridControl" description-key="MyGridControl" version="1.0.0" hidden="false" control-type="virtual">
<modes><read /><edit /></modes>
<data-set name="Grid" display-name-key="CC_Grid_DSGrid" cds-data-set-options="displayViewSelector:false;displayQuickFind:false"></data-set>
<dependencies>
<dependency name="MscrmControls.Grid.ReadOnlyGrid" />
</dependencies>
<resources>
<code path="MyGridControl.js" order="1" />
</resources>
<AvailableOn>
<web classic="enable" />
<phone />
<tablet />
</AvailableOn>
</control>
</manifest>
Unfortunately they are core platform functionalities and uncustomizable, and your necessity to turn off that capability is not an usual one. So it is not possible in any supported way today.
Maybe you can create an idea, if community voted for it - Microsoft may give that configuration in future releases.

App icon in UWP

I am new to Xamarin and I am creating UWP application. I wanted to know From where i can set app icon image. I had gone through may articles and question on stack-overflow that looks similar, but it still its not clear..
So my Question is exactly where i should change my image for logo. only 24x24 as shown in below image.then what are the others badge logo and etc.?
should i change all images for logo with all dimensions also?
AppxMainfest.Xaml
<?xml version="1.0" encoding="utf-8"?>
<Package ...>
...
<Properties>
<DisplayName>StockDispatchApp.UWP</DisplayName>
<PublisherDisplayName>pci207</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.10240.0" MaxVersionTested="10.0.10586.0" />
</Dependencies>
<Resources>
<Resource Language="EN-US" />
</Resources>
<Applications>
<Application Id="App" Executable="StockDispatchApp.UWP.exe" EntryPoint="StockDispatchApp.UWP.App">
<uap:VisualElements DisplayName="StockDispatchApp.UWP" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="StockDispatchApp.UWP" BackgroundColor="transparent">
<uap:LockScreen Notification="" BadgeLogo="Assets\96x96.png" />
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"></uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
</Capabilities>
...
The MSDN documentation provides clear description of where each of the images is used. In the bottom you can see Asset size tables tables which contain all the dimensions and their usage.
As for the Square 44x44 logo, the first five images in the first row are used for different scales in the app list.
The target images are used for app icons in different places around the system. In their unplated form, they should have transparent background. You can provide just the sizes recommended by the form, but you can also provide more sizes (see the documentation for the complete table).
You don't need to worry about this, you can simply generate all the icons from Visual Studio 2017.
Go to App manifest and click on Visual Assets In all visual assets
There is option called Asset Generator, select at least a 400x400 px
icon file size for the source field
And tap generate And here you get
the all icons.
For reference please have a look at the attached screenshot.

Wix Burn: Basic UI handling if No Net Framework is there

I wrote a Boostrapper UI in C# for Net Framework 2.0 using Win-Forms. It started working fine and designed forms are responding as expected.
Here is my Wix Bundle Code:
<?define TargetFile=$(var.MyBA.TargetDir)$(var.MyBA.TargetFileName)?>
<?define BootstrapConfigFile=$(var.MyBA.ProjectDir)BootstrapperCore.config?>
<Bundle Name="Bootstrapper1" Version="1.0.0.0" Manufacturer="Farrukh" UpgradeCode="54c4a4a4-dca8-4ae4-b2f4-5e3f3fd8cb92">
<BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
<Payload SourceFile="$(var.BootstrapConfigFile)"/>
<Payload SourceFile="$(var.TargetFile)"/>
<Payload SourceFile="$(env.WIX)\SDK\Microsoft.Deployment.WindowsInstaller.dll"/>
</BootstrapperApplicationRef>
<WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />
<Chain>
<!--<PackageGroupRef Id='Netfx4Full' />-->
<MsiPackage Id="MyInstaller"
Cache="no"
Visible="yes"
DisplayInternalUI="yes"
SourceFile="MyProduct.msi"
/>
</Chain>
</Bundle>
As you can see that it doesn't include NetFX package and as it requires Net-Framework 2.0, I experimented with renaming the Net Framework registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup-Renamed
and 32 bit
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup-Renamed
so that it won't be able to detect it. This resulted in displaying a very basic UI: i.e.
I believe , this was displayed due to following markups in my Bundle, but I'm not sure about that
<WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />
However, when I clicked "Accept and Install" nothing happened and buttons just got disappeared. That may be because I added no NetFx Package, neither any reference to WixNetFxExtension. (And I will definitely gonna add these and will see results later).
Question: I want to edit this basic UI so if my user try to install it on Windows XP (with no Net Framework), he/she would get the UI as I will design, not this basic one. So how can I edit this basic UI?
I feel, I'm missing some basic thing here, but need some guidance.. would really appreciate any help/guidance.
Regards
I was able to solve this after finding a thread on Wix User's mailing list. Here it is:
customizing burn prerequisite boostrapper image in theme
So this screen is known as Burn Prerequisite and it has a special WixVariable ID. Here is code from my Bootstrapper, depicting the use of my own custom theme for Burn's pre-req screen:
<WixVariable Id="PreqbaThemeXml" Value="..\resources\MbaPrereqTheme.xml" />
<WixVariable Id="PreqbaThemeWxl" Value="..\resources\MbaPrereqTheme.wxl" />
And any resources like Logo.png, Banner.bmp and NetfxLicense.rtf etc which you have referenced in MbaPrereqTheme.xml, would have to be part of Bootstrapper as a PayLoad:
<BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost" >
<Payload SourceFile="$(var.BootstrapConfigFile)"/>
<Payload SourceFile="$(var.MyBootstrapDll)"/>
<Payload SourceFile="$(env.WIX)\SDK\Microsoft.Deployment.WindowsInstaller.dll"/>
<!-- Following are required as payload and to be used by Pre-Req screen.-->
<Payload SourceFile="..\resources\logo.png"/>
<Payload SourceFile="..\resources\Banner.bmp"/>
<Payload SourceFile="..\resources\NetfxLicense.rtf"/>
</BootstrapperApplicationRef>
And this started working just like as I wished :).
Regards

How do I change my category? (Windows Phone 7)

I am developing a Windows Phone 7 application. I noticed the Genre tag in WMAppManifest.xml, but was unable to do anything useful with it. How can I categorize my application to be a game? And if it's possible add it to a certain category in the games section.
<?xml version="1.0" encoding="utf-8" ?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment"
AppPlatformVersion="7.1">
<App xmlns=""
ProductID=""
Title=""
RuntimeType=""
Version=""
Genre="How can I use this?"
Author=""
Description=""
Publisher="">
Have a look at this:
http://msdn.microsoft.com/en-us/library/ff769509(v=vs.92).aspx#BKMK_Application

Resources