Create a Shortcut in the Startup Folder using C# without Interop

by rahul 4/23/2012 6:29:02 PM
While writing a utility, I needed a feature that it would run at startup. I also wanted to ensure that it is a configurable setting. Seemed like a pretty easy thing to do… and went for it, only to realize that it is not as easy as it looks initially. First up, creating a shortcut itself tends to be ... [More]


Insert any binary file in C# assembly and extract it at runtime

by rahul 4/3/2010 1:03:40 PM
Problem> There is a binary file (I’ll use an Excel file) that you want to embed in any C# assembly. Later on, at runtime, you want to extract the file from the EXE and continue working on it. In this post, I will share the code and describe how you can do that. You can use the same technique for ... [More]


Timepass... Fix the code...

by rahul 1/27/2009 12:22:07 PM
Create a C# Console application, and paste the following code in the Main method... for (int i = 0; i < 5; i++) { //Generating a Random number between 0 and 100000 int intRandomElement; Random r = new Random(); intRan... [More]


Tags: , ,

.NET | C# | Timepass

Explaining Delegates in C# - Part 7 (Asynchronous Callback - Way 4)

by rahul 1/25/2009 2:07:00 PM
This is the final part of the series that started with... Callback and Multicast delegates Events One more Event Asynchronous Callback - Way 1 - BeginInvoke > EndInvoke Asynchronous Callback - Way 2 - BeginInvoke > AsyncWaitHandle.WaitOne(x) > EndInvoke > AsynWaitHandle.Close() As... [More]


Explaining Delegates in C# - Part 6 (Asynchronous Callback - Way 3)

by rahul 1/23/2009 4:14:56 PM
By now, I have shown the following usages of delegates...     Callback and Multicast delegates    Events    One more Event    Asynchronous Callback - Way 1 - BeginInvoke > EndInvoke    Asynchronous Callback - Way 2 - Begin... [More]


Explaining Delegates in C# - Part 5 (Asynchronous Callback - Way 2)

by rahul 1/22/2009 11:40:21 AM
In this part of making asynchronous programming with delegates, we will talk about a different way, which is a little better than Way 1. In the previous post, it was like a husband telling his wife... You know honey, I have a lot of work to do. Why don't you help me up by doing something that you ca... [More]


Explaining Delegates in C# - Part 4 (Asynchronous Callback - Way 1)

by rahul 1/22/2009 11:37:32 AM
So far, I have discussed about Callback, Multicast delegates, Events using delegates, and yet another example of events using delegates. In this post, I will take this topic one step forward and show you an example of Asynchronous callbacks using delegates. Let's say a client calls a method that tak... [More]


Explaining Delegates in C# - Part 3 (Events again)

by rahul 1/20/2009 8:09:14 PM
I was thinking that the previous post on Events and Delegates was quite self-explanatory. A couple of days ago, I received an email which said that may be it is not that good as to explain what I want to achieve in life through that event. So, I thought why not write another post on Delegates and Ev... [More]


A C# Argument Parser for a Windows Console Application

by praveen 1/11/2009 4:13:56 PM
There are a multitude of Argument Parsers available online. So why am I writing my own? Well to be frank… I did a search and couldn’t find anything that would be either “easy” to implement. I know that this is not much, but hope other programmers might find this useful if they are as lazy as I am an... [More]


How To Configure and Use the Logging Application Block

by praveen 1/5/2009 8:58:05 AM
I recently downloaded the Enterprise Library 4.1 released in October 2008. I guess the enterprise library has done a lot of improvements from the 3.x version to the current 4.x that's available and not just making it work with .NET Framework 3.5 and integration with WCF. I downloaded the library an... [More]


Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  May 2013  >>
MoTuWeThFrSaSu
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

All Items
Sign in

Visit Microsoft's Site

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2013, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0