C#/Doubt....

Advertisement


Question
Is it possible to add wineyes.exe or rather say any .exe file in  windows form application?????

if not possible.....than can u suggest me some alternatives to add wineyes on my windows application......

reply would be appreciable.........

Answer
Hello there,

You can add your "exe" files as resources into your application, then extract and run in runtime.

Here is the simple code to extract and run from resource:


string extractionPath = "C:\\wineyes.exe";
System.IO.File.WriteAllBytes(extractionPath , Properties.Resources.wineyes);
System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = extractionPath;
Proc.Start();


However if you want more advanced coding, you can make your own "wineyes" by using mouse hook.

Check globalmousekeyhook.codeplex.com for some source code.

Hope that helps,

Murat

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


Murat Mehmet

Expertise

I can help with questions about desktop and web programming in C#, including SOAP, XML, database managing, custom controls, security etc.

Experience

I have been developing web and especially desktop applications in C# and VB.Net for almost 5 years. My programming life has begun with VB6 long time ago, so its about 8 years that I am in this business.

Organizations
Was in R & D for 2 years in a popular Turkish technology website: cyber-warrior.com

Education/Credentials
2011 Computer Engineering graduation in University of Trakia in Turkey.

©2016 About.com. All rights reserved.