C#

It appears to be working on both full screen and normal screen until I close one of the popups(forms). Then the very next one will take focus away. After that it will begin working properly until I close one of the popups.

I have an MDI form that has a panel across the top for displaying business information. Whenever any of this panel is updated..I get this nasty bleeding effect where i can see through the borders of the labels etc. Has anyone ever seen anything like this?

Hi Guys,
i'm trying to sort the result from a datatable based on month and year.getMonth below arranges d group header how i want. But the code puts on item per group. The prob, groups are repeating. Ex: May, 2008 repeats like five times but with diff items under it.

I'm trying to figure out the correct way of compiling the final version of a console application for other people to use.

I've done the "Build project" way, but then the user has to copy over all of the DLL files in my "bin" directory in order to get it to work. This way isn't very professional.

I've also done the "publish project" option, however when I publish it, I get 2 "application manifest" files (1 names "MyProject_1_0_0_0" and another simply names "MyProject"), a directory containing the DLL's (usually called "MyProject_1_0_0_0"), and a setup.exe file. I'm unsure of which ones to send over, so I just send them all over. This way isn't very professional either.

So, what's the correct way to compile my final version of a console application before handing it off to a user?

I have to create a multithread program. It must control a pool of thread. How do I do this in C#?

The idea is: Reading a properties file, the program will know what kind of thead It will start. Each thread will take care about one subject. Each thread will receive a parameter indicating how many thread will have in its pool.

The MainThread will control the pool of thread, when it needs to process some UDP message will request a free thread in the pool. Will pass all of the information (data) to the thread and order to run. When the thread finishs its job will be in suspend mode waiting for next job.

I had develop this kind of program in Delphi and in Java with success! But in C# I did not find any way to do this.

The main thread creates a queue, then creates the objects for the worker threads and sends the queue along to the constructor.

If you need to send a result back from the worker thread to the main thread, you add another queue for the results. When the thread is done it just adds a result to the queue, and you have a timer in the main thread to look for results in the queue.

The code for dispatching the jobs gets really simple. There is no requesting of threads and handling the situation of waiting for a free thread, just throw the jobs in the queue, and the first thread that gets free grabs it.

Despite everything, the person most likely to be fooling you next is yourself.

hi
i am using gridview control and in gridview control i have checkbox. when i click on linkbutton checkall then i want that check all checkbox and if i click on uncheckall then i wnat that uncheck all checkbox. how can i do using javascript? plz help?
thanks in advance.

I am trying to pass params from one function to another, but it errors out when passing the received args onto the other function! Scratched my head over this one and googled and can't find a solution!

Any ideas?

Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Did you look at the value of format when the problem occurred?
Did you check args had a sufficient number of elements for it?
If so, why didn't you tell us their values?
Did you check at what exact line the exception occurs?
- an exception holds line information, you get to see it when you call Exception.ToString()
(but not when using Exception.Message).
- any half-decent IDE can display line numbers; to turn this on in Visual Studio, go to menu
Tools/Options/TextEditor/AllLanguages