Gray unusable area on CE Winforms form - compact-framework

Did test app for Windows CE Winforms App.
Main form has about 30 px gray area between the form header and the actual content.
On the device itself (not emulator). CF 3.5 CE 6.0
What to do?

Remove the Menu from the Form or add MenuItems to it.

Related

icon not showing in taskbar when windows form minimized

I have a winforms application on Windows 7 64 bit with Visual Studio 2019
I have created other apps that do not have this issue
icon not showing in taskbar when windows form minimized
The main difference with this app is I am using a button on one form to minimize the form
Both project forms are configured the same Control Box = False Maximize = False Form Border = Fixed3D
I am not using ico in the title bar that should be obvious based on the forms configuration.
What I have tried is Project > Project Properties > Resources and add an ico 256 x 256 to the Resources folder that has a png file already added. This png is used in a Picture Box.
That did not fix the issue. Next I tried to go to the Application and add the ico in the appropriate place.
I also deleted the ico from the Resources folder and just added it to the project. No Luck with that.
The question is what setting am I missing?
OR How do I get the ico to show in the taskbar

Windows Forms form doesn't look native

I've added a Windows Forms form to a VB.net application, and I'm showing it with the usual:
Dim form As New FormInsCapiLettore()
form.ShowDialog()
The problem is that the form, when shown, has an incredibly ugly "windows 95" style. Basically the system theme (Windows 10 in my case) does not get applied. The result is in the screenshot below:
As you can see, not only does it look ugly and non-native, but the layout also screws up: notice the TextBox spilling outside the "input" GroupBox and the "Fine" Button not filling the vertical space.
Notice that the form looks absolutely fine in the Visual Studio designer, with the native look! But when launched, the form has no theme and looks like the screenshot.
Any clues? Additional info:
Running Windows 10 x64
Visual Studio 2015
Application compiled against .NET 4.0
You need to call Application.EnableVisualStyles().

Visual Studio 2013 form control alignment issue on Windows 8

I created a Windows application in VS 2013 on W7. It's running great and no issue but recently I bought a new W8 laptop and tried to run the application on W8. All my controls are misaligned and some overlap. AutoScaleMode is set to Font for each form.
Examples:
It's not Windows 8 that's the problem, but a higher DPI setting.
The best option would be to switch over to WPF, but the problem can be mitigated with some care. You might consider a TableLayoutPanel for this application (it looks table-ish to me).
If you can't/won't use a layout panel, set the AutoScaleMode property of your form (and other containers, like Panels) to Font. If that doesn't work, try Dpi. See the MSDN page on that enum for more information.
Further StackOverflow reading (or "works cited"): "Creating a DPI-Aware Application" and "How to control the font DPI in a .NET WinForms app"

How do I set a Windows Forms Title Bar and UI use the flat OS theme of Windows 8/10, not XP/7 textured look?

I am updating a Visual Basic Windows Forms application that was written for Windows XP.
What form property do I set to tell a windows form to accept the default Windows 8 / 10 flat theme? Is it a global setting per application or a per-form setting?
The main form and some child forms of my application look fine with modification.
However, some of my child forms still have Windows XP/7's textured look:
I read some posts that point to "EnableVisualStyles = true". However that question was asking how to get the Windows XP styles, rather than Win 95/95 styles. I need some clarification on what the setting should be for newer Win 8 / 10 theme.
MDI Child forms are a special type of form that is not considered a TopLevel form, and windows themes only affect TopLevel forms.
Microsoft has been deprecating the use of Multiple Document Interfaces (MDI didn't even get written into WPF) in favor of Tabbed interfaces.

Is it possible to make the Windows 8 Metro App listbox behave just like the Windows Phone listbox version?

I'm using a ListBox to display some items in my Windows 8 App.
I would like to pan it down just in like I do it in the Windows Phone version: click anywhere and drag up or down. Also, it would be nice to see the scroll only when the items are in movement (again, like the windows phone version).
How can I achieve that?