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

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

What are the Steps of creating a Windows Process in .NET?

Posted By :Baimey Rajesh     Posted Date :August 30, 2012    Points :40   Category :C# 
Create a new project > Go to File > New > Project > and Select Console Application.

code for a simple process in


using System.Diagnostics;
using System.ComponentModel;

Below is the full code snippet for the same.

namespace MyProcessSample
class MyProcess
void OpenApplication(string myFavoritesPath)
// Display the contents of the favorites folder in the browser.

// Opens urls using Internet Explorer.
void OpenWithArguments()
Process.Start("IExplore.exe", "www.indonepal.com");

// Uses the ProcessStartInfo class to start new processes,
void OpenWithStartInfo()
ProcessStartInfo startInfo = new ProcessStartInfo("firefox.exe");
startInfo.Arguments = "www.questpond.com/demo.html";

static void Main()
// Get the path that stores favorite links.
string myFavoritesPath = Environment.GetFolderPath(Environment
MyProcess myProcess = new MyProcess();

You can also find related Interview Question to What are the Steps of creating a Windows Process in .NET?  below: 

You are creating a database on multiple disks that will be queried intensively by users. What are some steps that you can take to improve performance and avoid disk contention?

You could use disk striping (RAID) to increase performance.

A secondary strategy would be to use filegroups to improve performance, especially placing the transaction log file(s) on a separate disk from the data file(s) to avoid disk contention as SQL Server queries the database and records actions in the log. Also, filegroups could be used to separate a portion of the data files requiring frequent backups because they are actively modified.

What's a Windows process?

It's an application that's running and had been allocated memory (More...)

What is a windows process?

It is an application that is running and had been allocated memory. (More...)

What is Garbage Collection in .Net? Garbage collection process?

The process of transitively tracing through all pointers to actively used objects in order to locate all objects that can be referenced, and then arranging to reuse any heap memory that was not found during this trace. The common language runtime garbage collector also compacts the memory that is in use to reduce the working space needed for the heap. (More...)

Can we call a base class method without creating instance?

Its possible If its a static method.

Its possible by inheriting from that class also.

Its possible from derived classes using base keyword. (More...)

Which authentication mode lets you use both SQL Server logins and Windows logins?

Mixed Mode authentication mode lets you use both SQL Server logins and Windows logins? (More...)

Is the .NET Framework just a new name for Windows DNA?

No. Windows DNA is architecture for building tightly-coupled, distributed Web applications. As the needs of distributed applications changed to require more loosely-coupled principles, Microsoft evolved the architecture to .NET. The .NET Framework is a part of the .NET architecture. (More...)

Windows Authentication

This type of authentication is possibly the easiest of all to implement. Windows authentication can be used in conjunction with almost all authentication methods provided by IIS (e.g. Basic, Digest, NTLM or Kerberos Authentication), except Anonymous Authentication [2,4]. There is no need to write any code to validate the user as IIS has already authenticated their Windows credentials. Basically, Windows authentication makes use of the authentication capabilities of IIS. IIS will complete its authentication first then ASP.NET will use the authenticated identity's token to decide whether the access is granted or denied.
This mechanism is usually implemented when the users are part of Windows domain and the authenticated users are to be impersonated so that the code is executed in the same security context of the user's Windows account [4].
When a user requests specific resources, this request will go to IIS. IIS authenticates the user and attaches the security token to it. It will then pass the authenticated request and security token to ASP.NET. If impersonation is enabled, ASP.NET impersonates the user using the security token attached and sees whether the user is authorized to access the resources in the section in Web.config file. If the access is granted, ASP.NET will send the requested resources through IIS, or else, it sends error message to the user.

Shashi Ray (More...)

How to get which Process is Blocked in SQL SERVER ?

There are two ways to get this sp_who and sp_who2 . You cannot get any detail about the sp_who2 but its provide more information then the sp_who . And other option from which we can find which process is blocked by other process is by using Enterprise Manager or Management Studio, these two commands work much faster and more efficiently than these GUI-based front-ends. (More...)

What is the difference between thread and process?

Thread - is used to execute more than one program at a time.
process - executes single program.
A thread is a path of execution that run on CPU, a process is a collection of threads that share the same virtual memory. A process has at least one thread of execution, and a thread always run in a process context. (More...)

What is the difference between SharePoint Portal Server and Windows SharePoint Services?

SharePoint Portal Server is the global portal offering features like global navigation and searching.Windows SharePoint Services is more content management based with document libraries and lists. You apply information to certain areas within your portal from windows share point Services or directly to portal areas. (More...)

What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007?

Windows SharePoint Services is the solution that enables you to create Web site for information sharing and document collaboration. Windows SharePoint Services - a key piece of the information worker infrastructure delivered in Microsoft Windows Server 2003 - provides additional functionality to the Microsoft Office system and other desktop applications, and it serves as a platform for application development.Office SharePoint Server 2007 builds on top of Windows SharePoint Services 3.0 to provide additional capabilities including collaboration, portal, search,Enterprise content management,business process and forms, and business intelligence. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

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