windows-8.1

How to create custom cursor in javaFX?

自闭症网瘾萝莉.ら 提交于 2019-12-01 14:04:49
I am trying to create custom cursor in javaFX. Here is my code: Image image = new Image("mycursor.png"); Pane pane= new Pane(); pane.setCursor(new ImageCursor(image, image.getWidth() / 2, image.getHeight() /2)); Is the creation of cursors for windows 8.1 does not work? Checkout the ImageCursor.getBestSize() methods and ImageCursor.getMaximumColors() and see what they return, then try a custom cursor image which matches the best size and maximum colors. Most likely this will be a 32x32 cursor for Windows 8.1. Here is a quote from the ImageCursor.getBestSize() javadoc: Gets the supported cursor

Load BitmapImage into WriteableBitmap but no method existing

混江龙づ霸主 提交于 2019-12-01 13:42:55
The constructor of WriteableBitmap class with Windows 8 only takes two arguments: the height and the width of this object. Meanwhile with Silverlight it accepts a BitmapImage object as argument. (Verified on MSDN : WriteableBitmap.WriteableBitmap constructor ) I would like to load this BitmapImage because I'm trying to blur an image which already exists on my Assets folder. Thanks for your help, I succeed to blur my image. Here is the sample in order to link the BitmapImage into the WriteableBitmap object : BitmapImage bi = new BitmapImage(new Uri(filename, UriKind.RelativeOrAbsolute));

How do I turn off windows 8.1 gestures and setting charm bar on my touch Screen

偶尔善良 提交于 2019-12-01 13:34:00
I Have an Touch screen Dell and Windows 8.1 Single language installed, When I move my finger from Right edge towards the middle, Windows 8 will bring up setting charm bar OR when i move my finger from middle top edge towards down windows 8 hide my application and bring up start menu. This is a problem because I'am developing a Kiosk Application on WPF, and i can't let user see setting or close Kiosk application. I tried to disabled that, but couldn't, the easy solution would be to run on another OS or downgrade to windows 7, but the machines will be running Windows 8.1 single language and

How to use SQLite in Windows (Phone) 8.1's BackgroundTask

℡╲_俬逩灬. 提交于 2019-12-01 12:24:01
Setup I followed Universal App with SQLite example to add SQLite to my project; then to add the BackgroundTask I followed Quickstart: Create and register a background task example . Problem The SQLite targets either Windows Phone 8.1 or Windows 8.1 The BackgroundTask targets only Windows (being a Windows Runtime Component ) This is where it becomes tricky. You cannot reference a project with the BakgroundTask that isn't portable , thus I cannot add SQLite for Windows Runtime (Windows 8.1) or SQLite for Windows Phone 8.1 to the BackgroundTask project. Question Is there anyway to use SQLite in

Running a process and getting the “Windows protected your PC” message

只谈情不闲聊 提交于 2019-12-01 11:28:42
I am running this code and I am getting the "Windows protected your PC" message. Is there a way to tell Windows that this is a safe program and allow it to continue? The message also states "Windows SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk." private void runProcess(string exeLocation) { var process = Process.Start(exeLocation) // I get error here process.WaitForExit(); } This feature is built to protect users. Running other "unsigned" programs can be very dangerous for users. Maybe this helps you bit: http://blog.aha-soft.com/windows

How to use SQLite in Windows (Phone) 8.1's BackgroundTask

旧巷老猫 提交于 2019-12-01 10:26:55
问题 Setup I followed Universal App with SQLite example to add SQLite to my project; then to add the BackgroundTask I followed Quickstart: Create and register a background task example . Problem The SQLite targets either Windows Phone 8.1 or Windows 8.1 The BackgroundTask targets only Windows (being a Windows Runtime Component ) This is where it becomes tricky. You cannot reference a project with the BakgroundTask that isn't portable , thus I cannot add SQLite for Windows Runtime (Windows 8.1) or

How to stop Explorer starting my application maximized?

£可爱£侵袭症+ 提交于 2019-12-01 09:19:28
Explorer seems to always start my application with SW_MAXIMIZE ( STARTF_USESHOWWINDOW is set in STARTUPINFO.dwFlags ). I know that ShowWindow will use this value the first time you/Windows needs to display a window but it has the unfortunate consequence of maximizing a window that should never be maximized. My window is created with CreateDialogIndirectParam and has the following styles: WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX|WS_CLIPCHILDREN|DS_MODALFRAME|DS_CENTER|WS_VISIBLE . Why does ShowWindow not check if WS_MAXIMIZEBOX is set before allowing STARTF_USESHOWWINDOW to force SW_MAXIMIZE ? Is

Windows.Web.Http.HttpClient + WEB API Windows Authentication

橙三吉。 提交于 2019-12-01 08:34:35
Im using Windows.Web.Http.HttpClient to connect to my WEB API. Application haven't prompted for userid and password, but recently i changed WEB API by moving AuthorizeAttribute filter from Action to Class level. Now my Windows store 8.1 application prompt for user id and password. Please let me know how to set HttpClient to not prompt the login and password. Can any1 suggest me do i need to add header to my httpcleint using (Windows.Web.Http.HttpClient httpClient = new Windows.Web.Http.HttpClient()) { // Add a user-agent header var headers = httpClient.DefaultRequestHeaders; // The safe way to

WPF Handwriting .NET 4.5 Windows 8: Missing IAWinFX.dll and others

末鹿安然 提交于 2019-12-01 08:05:54
I am trying to use text recognition with the WPF InkCanvas control on a Windows 8.1 computer with .Net 4.5. Note: **WPF InkCanvas control Windows 8.1 **, not Windows Forms, nor Windows Apps! According to the help it should be quite easy: MSDN: Handwriting Recognition However when I get to this paragraph I get stuck. Add a reference to the WPF Ink Analysis assemblies, IAWinFX.dll, IACore.dll, and IALoader.dll, which can be found in \Program Files\Reference Assemblies\Microsoft\Tablet PC\v1.7. Replace the contents of the code behind file with the following code. I do not have these files on my

How to move folder/files with path names > 255 characters in Windows 8.1? [closed]

99封情书 提交于 2019-12-01 07:43:57
How can you copy/move a folder or file with path name length > 255 on windows? I have looked around for ages, and the only possible way I have found is to use the subst method. I wish I didn't have to mess about with this. I simply want to copy/move a file or directory, X , to location Y . I'm fine with making a .bat script, or other kinds of scripts to achieve this. PS: this is marked as of topic, which I'm fine with, but it was being done in a programming context. I finally found a good solution! The savior is Robocopy Robocopy supports path names > 256 by default, and even provides a flag