.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How can I have my program access another program that is running on the same computer?

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :.NET Framework
We use 5 different applications at work. There is a lot of copying and pasting and going back and forth between applications. It can be very draining. The main program that I want to interface with is a ticketing application. It was not designed to be manipulated by another program, only a person. One way would be to write a program which moves the mouse around and types things into the fields and navigates between the different windows. But the problem with that is the user (me) would not have the screen/mouse/keyboard free while this was happening as the program would be using it. How would you go about just getting the data straight from memory? If that is not an option could I move the program off screen and manipulate it there? I don't know what language the program was written in. Maybe I could decompile it? Is there a good way to monitor the information it sends across the network? If so I could just have my program make the same requests and then completely bypass the current program.   Do you have any ideas?

View Complete Post

More Related Resource Links

Access to report file denied. Another program may be using it.


Migrated from Windows 2000 ASP.NET 1.1 to Windows 2003, ASP.NET 2.0 and had this error. All the forums/MSDN/Blogs says to give Read/Write Access to C:\Windows\Temp folder. Why should we give Full Access to some folder in Production server?? In windows 2000, ASP.NET 2.0 development machine, no files are created when we run crystal reports from aspx pages. Then why in Windows 2003 servers, we need to give rights to temp folder?? It is a simple code


And the code is not storing anything on the disk. Then why should it store the GUID.rpt file in Temp file in Windows 2003 server?? Any alternative is there not to store anything on the disk when Crystal Reports are opened in aspx page??


how to force my C# Winforms program run as administrator on any computer ?

hi how to force my C# Winforms program run as administrator on any computer ? and any kind of OS ? i need code solution (any sample code will be excellent) thank's in advance

Executing a program on a remote computer


I'm trying to execute a program on a remote computer, using code ofcourse, and i'm trying the following:

The function rerturns code 8 which says "unknows failure" and the program i was trying to execute (or any other program for that matter) doe's not run.
Nothing happens except that on the remote computer the mouse curser changes for a split of a second. I know the connection is OK because of that - plus if i change one of the parameters (computer name, user name, password) to a wrong one, the program exits.

Does anyone know what might be the problem?


When i start a process and running an external program is there any way to set the program window po


  private void View_Log_File_Click(object sender, EventArgs e)

            if (processNotePad == null || processNotePad.HasExited)
                processNotePad = System.Diagnostics.Process.Start("notepad.exe", "\"" + path_exe + "\\log\\logger.txt\"");


The problem is after the program the process started and i see the program when i click somewhere on the form1 the main application window the window of the process program is moving

Getting the "Do you want to allow the following program to make changes to this computer?" question

My company is developing a program that when it's installed on a Client Windows 7 computer, the user (which is a Standard User, but program was installed by an Administrator) is getting the "Do you want to allow the following program to make changes to this computer?" question.  This wouldn't be so bad, but the program is forcing a login by the Administrator to allow the program to run.  The message box is showing "To continue, type an administrator password and then click Yes."

I have digitally signed the application hoping that would have eliminated this but still getting the login prompt.

The users could live with the prompt about the confirmation, but why is the administrator's login being required?

If it matters the computer I'm testing this on and getting this result is a Windows 7 Professional 64bit.  The program executable is a compiled VB.Net windows application using VS2008.  The executable itself is compiled for an x86 CPU type due to one 3rd party control we are using which isn't AnyCPU compatible.


Access to update application files stored in Program Files, restricted on a Windows 7 device when us


Hi all,


I'm here to solve a problem, and that is our application, which speaks to a central server on startup, checks for updates and if found, updates its local files (stored in Program Files) with those pushed from the central server.  Currently, we are getting access denied exception when this updater tries to add/edit files in this special directory.  What I am looking for is a way to accomplish this updating process without moving these application files to a different location.

Pass Command to Running Program?


I have a Windows Form app written in C# and I would like a way to close the app from the command line without killing it.

Is there a recommended way to do this gracefully?

Perhaps I can pass a command to the running app to tell it to shutdown?




Running a program once every day uisng ASP.NET - job scheduling.


I have developed a workflow web based program using ASP.NET with VS 2005. The process is about renew the Medical Card for exiting employess and/or issue new Medical Cards for new Employess.

The user simply fills a PDF From (to complete his part of the work) and submits the form to the next user in the workflow process.

There are 3 levels in the workflow process:

1. Initiate Form by Staff,

2. Submit for Apprval from HR,

3. Submit for Approval from the Health Department.

4. Print the Medical Card.

The program is now near 90% completed. It sends email to target users asking them to complete their part of the process such as "Approve", "Reject" or "Submit for Approval", "Print Card" ... etc.

Mind you that I am not using WCF, I mean, I am not using the .NET Workflow Features. I am implementing the workflow and email notification using traditional programming.

I was requested to add a new feature to send Auto Notifications as follows:

1. If the users receives the form and he does not complete his part within 3 days, then it will send a reminder to the user.

2. Send a reminder to the staff that the Medical Card will be expired before one month of the "Valid Until".

I can do that by developing a program or a VB.NET function called "WorkflowScheduledJob()" which will loop

Program for Format Conversion of An Image

.NET provides extensive support for image conversion. Any image can be processed from one format to another. Most common formats to which .NET have support for are .BMP, .EMF, .GIF, .ICO, .JPG, .PNG, .TIF and .WMF.

Can't get an Icon to show for Desktop shortcut and Program Menu



I've created a SetupWizard, but can't get it to show the Icon for the shortcut on desktop and program menu. The installation goes fine without any errors, the only problem is the icon.

I've made a shortcut of my exe file in the Application Folder and dragged the shortcut to the Desktop folder, then on the shortcut properties, I assigned it an icon picture located in Application Folder.

Any suggestions will be very much appreciated.


Editor's Note: Does Your Program Smell Like Bacon?


When building your program, are you content with "good enough"? If so, your expectations are fatally low.

Keith Ward

MSDN Magazine August 2010

CLR Inside Out: Program Silverlight with the CoreCLR


The CoreCLR provides the perfect set of CLR classes and functionality for the Web.

Andrew Pardoe

MSDN Magazine August 2008

Virtual Server 2005: Program Customized Testing Environments Without Trashing Your Machine


Efficient testing can require many different machine and server configurations but the effort needed to manage these test environments can take a toll. Microsoft Virtual Server 2005 simplifies the provisioning and management of testing environments. This article demonstrates how the extensive Virtual Server COM API can be used to create an automated application testing environment to make your testing chores a whole lot easier.

Ben Waldron

MSDN Magazine August 2004

Design: Inspect and Optimize Your Program's Memory Usage with the .NET Profiler API


Developers using .NET often make memory leak tracking a low priority because the common language runtime takes care of garbage collection. What few developers realize, however, is that their objects' lifespans, along with their size and what other objects have been instantiated, all affect how they are cleaned up. Depending on the particular circumstances, these combinations can negatively affect performance, especially over the lifetime of an application. This article presents a way for developers to see memory usage and understand garbage collection using the .NET Profiler API. Along the way, a sample application to demonstrate these principles is built.

Jay Hilyard

MSDN Magazine January 2003

Visual FoxPro 7.0: Program Your Data with Powerful New COM, XML, and Web Services Support


Visual FoxPro 7.0 represents a significant improvement over version 6.0. There are many new features designed to support COM, XML, and Web Services. Now COM servers built with Visual FoxPro are more flexible and robust thanks to strong typing and the ability to implement interfaces from other type libraries. IDE features like the new object browser combine convenience and efficiency, and other language features such as event handlers and early binding to COM objects increase performance. Lastly, an enhanced session class plus several new XML functions make Visual FoxPro a great choice for Web application development.

Erik Moore

MSDN Magazine October 2001

Fax Services: Send Any Printable File From Your Program in Windows 2000


All versions of Windows 2000 have fax services built in, so sending faxes manually is as easy as setting fax options from the control panel. Faxes can also be sent programmatically in Windows 2000 using either COM Automation or the standard C API. The example in this article uses COM Automation with Visual Basic and MFC to programmatically manage faxing. The objects used for fax transmission, such as the FaxServer and FaxDoc objects, as well as their properties and methods, are explained. Because faxing of files you can't print can be problematic, this process is explained. Finally, this article implements a fax routing extension-a plug-in that exports standard functions and implements routing methods for processing received faxes.

Marcin Kaluza

MSDN Magazine August 2001

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend