Visual C# Ping Pong A.I Player.
Hi All. I have managed to create the Classic Ping Pong game using VisualC# Windows Form as a base plate. I have been looking around for help with an A.I player ( Computer. ) So 2 people dont have to...
View ArticleMake a service that keeps program running.
I'm trying to build a service to do litecoin mining on an office I own. To sum it up it's a program that runs constantly and uses 99% of the cpu, running on all coresI've made a service that runs a...
View ArticleConsole keyboard hook not getting called
I am trying to install a keyboard hook to trap key down/up events in a console app. I started with this example:http://blogs.msdn.com/b/toub/archive/2006/05/03/589423.aspxThe code compiles, loads, and...
View ArticleHow can I compare FileVersionInfo to determine which file is newer?
I need to compare a user's version of a file to the version on the server, to conditionally return a newer version to them. I have code like this: public HttpResponseMessage GetHHSetupUpdate(double...
View ArticleStructures
How to use a structure constructor in an array of structures.?Eg :struct stud(int a){public int regno;public int[] marks;public stud(int a){regno=0;marks=new int[a];}}In this sample structure,how shall...
View ArticleWhy cant receive a Azure SendGrid 2.1.1 email to my @Gmail.com account, but...
Hello,I have a Visual Studio 2013 Web site on Azure. I'm using the latest SendGrid transportRest.Deliver(myMessage) in C#. I want to send emails to everyone on my site programattically. The code...
View Articlehow to make a form Transparency
I want to make my form Transparent but have labels and pictures show
View ArticleHow can I change a DHCP option value in Windows 2008 R2 and below...
I realise there is a bit of forum cross-over here but here goes: I need to write a script or C# utility to quickly change a DHCP option on one of our 2008 R2 servers. I understand this is entirely...
View ArticleDowngrade of c# dll through wix installers (.msi)
I have dll with 3.01.1574 and 3.01.1575 version i have msi to instal the same.There is no problem while upgrading ie if I install 3.01.1575 it replaces 3.01.1574But if want to downgrade from 3.01.1575...
View ArticleC# and Microphone Channel
if you have a two Channel Microphone, what does that mean ?do you have to separate the right and left channels before you send it to a FFT in your C# program?if so why?I have a 16 bits per sample...
View ArticleThreading issues with receive data.
Currently I have an local web application that is sending data to a local console applicationWhen a user accesses the web page(I believe a thread will be started), user will enter the info and click...
View Articletransfer worksheet data into another worksheet to generate graph in excel...
i want to dynamically when i changed first worksheet data than according to it in my second worksheet graph are changed
View Article.NET regex algorithm for all folder structure permutations?
I have symbolic folder structures like so:/{{A}}/{{B}}/{{C}} (folder structure is 3 levels deep in example but could be N levels deep)I have arrays of values for all the possible A segments, all the B...
View ArticleTransaction scope does not work when two application run at the same time.
I notice in one of my application the when transaction does not roll back. There are 2 application running at the same time. MS DTC service is started1. for the first application(web application...
View ArticleHow can convert the string back to DateTime ?
I have this method:private void ReadPostsDates() { List<string> readLines = File.ReadAllLines(@"c:\Temp\PostsDates.txt").ToList(); dt = new List<DateTime>(); for (int i = 0; i <...
View ArticleHow To Link Excel Interop On C Sharp Command Line Compiler
I am trying to write a C Sharp program that is using Excel interop (Interop.EXCEL.dll). I want to do this with the command line compiler. I have the Interop.EXCEL.dll file that I got from an existing...
View Articlewebbrowser control - check if all frames were loaded (alternative to...
Hello everyone! I am writing a program that navigates through a website containing two frames. I am using WinForms webBrowser control. (I tried using Selenium, but I need the browser to be either...
View ArticleDelete all the files from folder
Hi,I have a folder called C:\MyFolder. This folder has pdf and excel files. I just want to delete all files from folder. I see lot of forums showing code to loop thru all files in a folder and delete...
View ArticleC# help
Hello I just have a easy question for those of you that has master the program but its really difficult for me as a beginner. The question is to write a program in c# that read a text file with bunch...
View Articlewhat is best way to make crawler?
Hi All,I am creating a webcrawler using c# windows application. I am using WebBrowser control to get the data.There might be pageing to navigate between data, i need to get all the data.If iuse...
View Article