windows-8.1

How can I make Windows 8.1 aware that my Delphi application wants to support Per Monitor DPI?

巧了我就是萌 提交于 2019-11-29 11:03:48
问题 I have tried to make Windows 8.1 recognize a Delphi XE6 application (a demo program) that I have been trying to build, and have it recognize my application is Per-Monitor DPI aware, purely by the Manifest technique. Delphi XE6 (and all other similarly up to date versions of Delphi) make adding a manifest easy to do, inside Project Options, and I have done so. This is the .manifest content I have determined using MSDN resources. I suspect it could be slightly incorrect. If you want to try this

How to access any control inside Hubsection Datatemplate in Windows 8.1 store

非 Y 不嫁゛ 提交于 2019-11-29 10:01:33
Please tell me how to access flipview control inside Hubsection * DataTemplate * Pedro Cavaleiro I don't know if you managed to solve your problem already. If you didn't here is how. private DependencyObject FindChildControl<T>(DependencyObject control, string ctrlName) { int childNumber = VisualTreeHelper.GetChildrenCount(control); for (int i = 0; i < childNumber; i++) { DependencyObject child = VisualTreeHelper.GetChild(control, i); FrameworkElement fe = child as FrameworkElement; // Not a framework element or is null if (fe == null) return null; if (child is T && fe.Name == ctrlName) { //

Arithmetic overflow exception when opening SQL connection

醉酒当歌 提交于 2019-11-29 09:22:04
I got very weird ArithmeticOverflowException when opening an SQL connection to the underlying SQL database (stack trace included below). It doesn't make a difference which version of the server is used (I've verified MS SQL 2005/2008/2012/2014), error is still the same. All the newest updates and patches from Windows Update installed. OS is Windows 8.1 / 10 (same occurs on both systems). Server is installed locally and the connection is made via user and password. Connection timeout verified in range from 15 to 1000 sec. The most surprising thing is the application works just fine, and

Dependency Property assigned with value binding does not work

▼魔方 西西 提交于 2019-11-29 07:29:08
问题 I have a usercontrol with a dependency property. public sealed partial class PenMenu : UserControl, INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected void OnPropertyChanged(string propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } public bool ExpandCollapse { get { return false; } set { //code } } public static readonly DependencyProperty ExpandCollapseProperty = DependencyProperty

Screen Resolution not matching Screen.Bounds

时间秒杀一切 提交于 2019-11-29 04:03:24
I am seeing an interesting difference between the resolution that is set through Control Panel and the output of Screen.Bounds for my widescreen laptop. The screen is 15.5" and the resolution set through Control Panel is 1920x1080. However when I run some code like this. Screen[] screens = Screen.AllScreens; foreach (Screen scr in screens) { Console.WriteLine("Width: " + scr.Bounds.Width + ", Height: " + scr.Bounds.Width); } The output shows my resolution being 1536x864. I have done some looking around, and I thought it may be related to a DPI issue, and when I look at my display settings, the

Visual Studio 2013 and .NET 4.6

被刻印的时光 ゝ 提交于 2019-11-28 23:32:34
问题 I'm trying to set the 4.6 .NET framework for my project and in the settings, as it wasn't listed, I chose the last option - to install more frameworks. That directed me to a page where I selected VS2013, clicked on .NET 4.6 and downloaded the software but despite the installation being successful and restart of the computer, I still don't get to see the 4.6 .NET in the list of available options. I've googled around for it and found mentioned that 4.6 is available on Win 8.1 (which is my

__doPostBack is undefined in IE11

孤街醉人 提交于 2019-11-28 21:31:25
Using a readymade asp HyperLink control, IE 11 is giving the error SCRIPT5009: __doPostBack is undefined with a link to here: http://msdn.microsoft.com/en-us/library/ie/xyf5fs0y(v=vs.94).aspx This is seen in the F12 devtools console window. Has anybody encountered this yet and is there a fix? This is a production environment. EDIT : Applying hotfix http://support.microsoft.com/kb/2600088 didn't work for me, and IE 10 on Windows 8 works fine. There is more recent article from Scott Hanselman with updated information. http://www.hanselman.com/blog/IE10AndIE11AndWindows81AndDoPostBack.aspx I will

while installing vc_redist.x64.exe, getting error “Failed to configure per-machine MSU package.”

心已入冬 提交于 2019-11-28 21:21:00
While I am trying to install vc_redist.x64.exe on Windows 8.1 getting following error: Failed to configure per-machine MSU package. Soman Dubey Posting answer to my own question as I found it here and was hidden in bottom somewhere - https://social.msdn.microsoft.com/Forums/vstudio/en-US/64baed8c-b00c-40d5-b19a-99b26a11516e/visual-c-redistributable-for-visual-studio-2015-rc-fails-on-windows-server-2012?forum=vssetup This is because the OS failed to install the required update Windows8.1-KB2999226-x64.msu. However, you can install it by extracting that update to a folder (e.g. XXXX), and

How to recursively remove all empty folders in PowerShell?

送分小仙女□ 提交于 2019-11-28 21:12:36
I need to recursively remove all empty folders for a specific folder in PowerShell (checking folder and sub-folder at any level). At the moment I am using this script with no success. Could you please tell me how to fix it? $tdc='C:\a\c\d\' $a = Get-ChildItem $tdc -recurse | Where-Object {$_.PSIsContainer -eq $True} $a | Where-Object {$_.GetFiles().Count -eq 0} | Select-Object FullName I am using PowerShell on Windows 8.1 version. You can use this: $tdc="C:\a\c\d" $dirs = gci $tdc -directory -recurse | Where { (gci $_.fullName).count -eq 0 } | select -expandproperty FullName $dirs | Foreach

How to add Command Behavior in windows store 8.1 MVVM application

夙愿已清 提交于 2019-11-28 20:49:23
I want to invoke a command on TextChange event of new windows phone 8.1 AutoCompleteBox Control. I am using MVVM Light. In new windows store 8.1 apps there is a new SDK Behavior SDK for adding behaviors in the application. it is not added by default you have to add this Extension in your project. below is how to add this extension in your project. install the Behavior SDK from the list. Now in your XAML page add following namespaces to InvokeActionCommand that is capable of invoking ICommand on ViewModel xmlns:i="using:Microsoft.Xaml.Interactivity" xmlns:core="using:Microsoft.Xaml.Interactions