sweetyssweeto 0 Newbie Poster

Hey while working in .net you dont have to re-invent the wheel (and that too of a BMW :) ). See the following name space "System.Collections.Generic". I am sure you will find an approprite data structure for your desired stuff.

sweetyssweeto 0 Newbie Poster

Use System.ComponentModel.BackgroundWorker class. This will provide the exact solution for your problem. There are two events init that you need to subscribe one DoWork and the other RunWorkerCompleted. The RunWorkerCompleted basically fires on the main thread.

sweetyssweeto 0 Newbie Poster

Sorry but now i got your main problem. The thing that you are trying to achieve or implement is termed as SingleTon pattern. The code seems fine to me but i have implemented in the following way:

static Mutex mutex;
private static bool IsAlreadyRunning()
        {
            string strLoc = Assembly.GetExecutingAssembly().Location;
            FileSystemInfo fileInfo = new FileInfo(strLoc);
            string sExeName = fileInfo.Name;
            bool bCreatedNew;

            mutex = new Mutex(true, "Global\\"+sExeName, out bCreatedNew);
            if (bCreatedNew)
                mutex.ReleaseMutex();

            return !bCreatedNew;
        }
sweetyssweeto 0 Newbie Poster

I guess only the guys from PDFSharp can help you out. Its thier API and they know how are they adding the text in the PDF. By the way the i also deal with PDF. The library i use is iText. Try using this librray.

sweetyssweeto 0 Newbie Poster

The name of your class is IPod but i guess the constructor you made is for some Color class, not sure whether this code is working for you or not. Rename the constructor to the name of the class. Rest code seems fine to me.

sweetyssweeto 0 Newbie Poster

Instead of comparing it "==" operator use either string.compare or string.equals method.

sweetyssweeto 0 Newbie Poster

The problem you are facing is due to the fact that windows first paints the Parent control and then child controls are painted over them so i guess this is the reason of you not being able to view the line.
I would recomend you to override the OnPaint event and do the painting stuff there.

sweetyssweeto 0 Newbie Poster

No this is not possible. But there's is a library Certificate Managment Library (CML), they provide file based store.
I am not sure whther they have .net wrapper for it but you never know.

sweetyssweeto 0 Newbie Poster

First of all i dont think .net provides such behaviour by default.
There are different ways for doing this, have a look at some of the suggestion below:
1. Create a registry entry and on each launch check the value for it. e.g. Check to 1 or True on first launch and exit it on the following launches.
2. Make a file and serailize a object in that file. e.g. serialize boolean value true for the first launch and by checking it never re-launch the exe.
PS. The above mentioned checks could be performed in the main function of your application i.e. prior to launch of the application