windows-applications

How to get a facebook access token using appid and app secret without any login credentials?

自作多情 提交于 2019-12-09 06:22:21
问题 I need to get FaceBook access token using appid and app secret in C# windows application. Actually i did below coding, but getting app token only not getting the access token. how to achieve to retrieve access token.? FacebookClient client = new FacebookClient(); dynamic result = client.Get("oauth/access_token", new { client_id = "1498796747020950", client_secret = "c50341f5b4e42a595f0791467f439e38", grant_type = "client_credentials" }); var accessToken = result.access_token; 回答1: The token

How to change the BackColor of a ComboBox when DropdownStyle is DropDownList?

混江龙づ霸主 提交于 2019-12-08 17:09:55
问题 I'm trying to change the dispaly color of a ComboBox when the DropdownStyle property is DropdownList . When the property is changed to Dropdown from DropdownList the color changes. How can I control the view color of the dropdown boxes ? Thanks 回答1: You can set FlatStyle property to Popup. This way the back color will use in both DropDown and DropDownList mode. If you don't like flat style or you need more customization on rendering of ComboBox , you can use an owner-drawn ComboBox . For

How to generate Calendar in c#.net windows application

倖福魔咒の 提交于 2019-12-08 14:17:26
I want to Generate Calendar in c#.net to enter daily attendance.I have used jquery calendar for similar purpose in web. Is there any ways to create calendar control and get click event to mark and display values in that. Thanks Example image: If you have a budget I would definitely go for a commercial component like Telerik's Scheduler Control . That will cost $999 for the collection, I've never used Telerik's controls before so I can't recommend them myself but by the looks it could be well worth it in the long run if you can reuse the components in other projects. If that isn't an option,

How to generate Calendar in c#.net windows application

偶尔善良 提交于 2019-12-08 07:55:09
问题 I want to Generate Calendar in c#.net to enter daily attendance.I have used jquery calendar for similar purpose in web. Is there any ways to create calendar control and get click event to mark and display values in that. Thanks Example image: 回答1: If you have a budget I would definitely go for a commercial component like Telerik's Scheduler Control. That will cost $999 for the collection, I've never used Telerik's controls before so I can't recommend them myself but by the looks it could be

how to use console/windows app without focus on it?

删除回忆录丶 提交于 2019-12-08 07:11:12
问题 im going to create a KEylog application that enables me to write all data typed(keys pressed) on a text file/database how can i do this without focus on the windows app/console app? for a reason , for all you to know, this is for my PC and im not trying to hack an account. just for me to know what they are doing on my computer. 回答1: Find an example written in .NET here: Processing Global Mouse and Keyboard Hooks in C# This class allows you to tap keyboard and mouse and/or to detect their

Connecting to the device via zkemkeeper.dll in windows application C# .net

断了今生、忘了曾经 提交于 2019-12-08 03:25:53
问题 I'm trying to connecting RFID and bio metrics devices in network, my local ip is 192.168.1.24 and the RFID device ip is 192.168.1.22 , I'm using Visual studio 12 an sample windows application. to connect this device but it throws an error: Unable to connect the device,error code = -201 private void btnConnect_Click(object sender, EventArgs e) { if (txtIP.Text.Trim() == "" || txtPort.Text.Trim() == "") { MessageBox.Show("IP and Port cannot be null", "Error"); return; } int idwErrorCode = 0;

Problems while reading value from app.config file

。_饼干妹妹 提交于 2019-12-08 00:15:03
问题 I am making one windows application in c# in where i added one file as app.config file.I have written some code in that file as <appSettings> <add key ="FlagForArchiving" value="true"/> </appSettings> In 'program.cs' file i am reading this value as ConfigurationSettings.AppSettings["FlagForArchiving"].ToString(); On local machine i can retrieve value from config file but whenever i am building that application and running on any other machine then I cant read the value from config file.I am

What is the fastest way for checking a big proxy list on a specific web site?

老子叫甜甜 提交于 2019-12-07 20:43:14
问题 I have a big list of proxy servers (txt file , Format = ip:port in each line) and wrote the code below for checking them: public static void MyChecker() { string[] lines = File.ReadAllLines(txtProxyListPath.Text); List<string> list_lines = new List<string>(lines); List<string> list_lines_RemovedDup = new List<string>(); HashSet<string> HS = new HashSet<string>(); int Duplicate_Count = 0; int badProxy = 0; int CheckedCount = 0; foreach (string line in list_lines) { string[] line_char = line

How to localize UserControl

你。 提交于 2019-12-07 08:10:53
问题 I'm developing a windows application that must support multiple language. I've followed the article below http://msdn.microsoft.com/en-us/library/y99d1cd3(v=vs.71).aspx to make my windows application localizable. Everything works fine except the usercontrols. Do i have to create a usercontrol for each language? How to make the usercontrol inherit the Right to left property? What is the best practice to do it? 回答1: UserControls have to be localized in the same way as forms ( Localizable = True

How to add EntityObject Generator in Visual Studio 2015?

十年热恋 提交于 2019-12-07 03:41:53
问题 I have installed the latest Entity Framework version (EntityFramework.6.1.3) in VS2015. I have added the EF in the project and deleted the 2 .tt files ( edmx_file_name.tt and edmx_file_name.Context.tt ) as they were from the DBContext. Now I am trying to add the EF 6.x code generation template by open the model in the EF Designer, right-click on the design surface and select Add Code Generation Item . To add the Code Generation in ObjectContext i need to install the EF 6.x EntityObject