windows-applications

Ubuntu on Windows as VS Code terminal - executable path

会有一股神秘感。 提交于 2019-12-04 15:23:43
There is a related question but it details the approach for WSL, in newer versions of Windows, the Linux distributions are not beta anymore and they are provided through the MS app store. Where do I find the path to Ubuntu on Windows executable? (Not WSL.) I tried right-clicking on the icon to find Properties, but it is not there, it seems to be some special kind of a shortcut. If you have multiple distros installed, you can read this how to launch one individually. https://msdn.microsoft.com/en-us/commandline/wsl/wsl-config However if you only have 1 installed, it will pick that one by

How Add System.Web Reference To A Windows Form Application

耗尽温柔 提交于 2019-12-04 11:18:53
I want to use HttpUtility.UrlEncode in a windows form application, but i can not find System.Web in .NET (Add Reference) area! How can i add this assembly to my project? i am using .net 4... thanks in advance Right click on a project -> Properties -> Change Target Framework from .Net Framework 4 Client Profile to .Net Framework 4 When you remove a Client Profile restriction, you will see System.Web in .Net (Add Reference) area. 来源: https://stackoverflow.com/questions/13668537/how-add-system-web-reference-to-a-windows-form-application

Add custom action of installing msi before the setup in installer project

前提是你 提交于 2019-12-04 06:14:04
问题 I am creating an installer project for one of my windows applications . I want to make sure that an msi is installed first i.e. before the primary output is installed . The msi in question here is Microsoft VisualFoxPro OLEDB . So if I tried adding custom action as So if I change the file type to all files and try adding the msi , it gives an error saying Not a valid file type for custom action Is there any other way to do what I am trying to achieve here? 回答1: All Visual Studio custom

How to fetch data from SAP system using sap .net connector?

泪湿孤枕 提交于 2019-12-03 16:37:39
I am developing an windows application, here I wanna extract data from sap system and show it in a datagridview... I have extracted the column names alone like name, city and so on.. I don't know how to extract the data from the columns, can anyone help me with the code? I am using RFC_READ_TABLE function module and rfc destiantion manager Thanks in advance!!! untested, but this is essentially how it works: first create the connection RfcDestination destination = mDestinationManager.GetDestination("MYDESTINATION"); create the function IRfcFunction readTable = destination.Repository

Add custom action of installing msi before the setup in installer project

陌路散爱 提交于 2019-12-02 09:46:43
I am creating an installer project for one of my windows applications . I want to make sure that an msi is installed first i.e. before the primary output is installed . The msi in question here is Microsoft VisualFoxPro OLEDB . So if I tried adding custom action as So if I change the file type to all files and try adding the msi , it gives an error saying Not a valid file type for custom action Is there any other way to do what I am trying to achieve here? All Visual Studio custom actions run after all the files have been installed, so you cannot use a custom action to install another MSI

How to add image icon to title bar and hide bottom bar in Compact Framework.?

守給你的承諾、 提交于 2019-12-02 08:26:01
1) I want to add an logo(Image) in the Form Header. How do I do that ? 2) In the windows phone a bottom bar appears with the sign of a keyboard. How do I remove this bar as I am using my custom keyboard. ? Title Bar josef The bottom bar can be 'removed' by removing (set to null) the mainmenu of the form. The caption bar (top bar) can not be latered easily, it is shared between all windows on the Windows Mobile device. The screen shot shows a windows mobile screen of windows mobile 6.x before 6.5. Is this your target device using. I ask as the start menu icon will move to the bottom of the

How to use SSL_CERT_FILE for OpenSSL Windows (OpenSSL 1.0.1c)

瘦欲@ 提交于 2019-12-01 22:02:59
How (if at all) can one define a single trusted certificate file for OpenSSL on Windows (Win-7, OpenSSL 1.0.1c) using the SSL_CERT_FILE environment variable? Various research led me to download the December '12 version of Mozilla's trusted certificates in PEM format, from here: http://curl.haxx.se/docs/caextract.html This contains all of the certs and assorted related info concatenated together into one file. I've found various references to the usage of the environment variables SSL_CERT_DIR and SSL_CERT_FILE with respect to other products which rely on OpenSSL. For instance, http://lynx.isc

MFC application crashing in ProcessShellCommand() when file to open specified on command line

半腔热情 提交于 2019-12-01 19:59:27
The problem I need to solve is how to use the MFC function ProcessShellCommand() in the InitInstance() of a CWinApp to process a File Open with a specific path when the application to open the file is being launched by another application. I have an MFC MDI (Multiple Document Interface) application that is started by another application with a command line using ShellExecute() containing the path to a file to open. When compiled with Visual Studio 2005, I do not see a problem with the launched application. When compiled with Visual Studio 2013, the application that is started crashes and I

Text box only allow IP address in windows application

匆匆过客 提交于 2019-12-01 13:48:54
I need a textbox that only allows an IP address. I can create this in a web application but i can't do this in windows application. Please help me to do this.. Use this method to validate IP public bool IsValidIP(string addr) { //create our match pattern string pattern = @"^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\. ([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$"; //create our Regular Expression object Regex check = new Regex(pattern); //boolean variable to hold the status bool valid = false; //check to make sure an ip address was provided if (addr == "") { //no address

Communication between 2 windows from application

僤鯓⒐⒋嵵緔 提交于 2019-12-01 09:11:35
I have 2 windows form application. 1st application interacts with database while other application is aimed to communicate with the 1st application to interact with the database. So how can I interact two applications with each other. Which tool should I use? Here is a good example using WCF to communicate two processes: http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication Another option is ZeroMQ C# binding: http://www.zeromq.org/bindings:clr One option would be to use WCF named pipes (net.pipe) the other option would be Anonymous Pipes for Local Interprocess