Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > april 2005 > threads for saturday april 30

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Forcing ThreadPool threads to act like they are not background threads
Posted by orekinbck NO[at]SPAM yahoo.com.au at 4/30/2005 10:19:10 PM
Hi There I have been programming C# for a couple of months and am trying to master Threading. I understand that ThreadPool uses background threads (see code example in MSDN page titled 'ThreadPool Class [C#]') .... however I would like to ensure that all my ThreadPool threads have completed...more >>


Using Reflection With Nested Classes
Posted by Robert W. at 4/30/2005 9:04:04 PM
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. This works fine if all of the properties are at the top (root level) of the model but I'd like to ...more >>

Good lord, when do I get to actually program?
Posted by John Salerno at 4/30/2005 8:54:58 PM
Ok, I've been reading an intro book to C# and I'm learning a lot of the basics. I can follow along with all the sample code and understand exactly what it's doing, but I know there's no way I'd be able to write the code myself. Also, it seems like every time I come here, or read info online...more >>

not getting user control Property after it's set
Posted by derek_heasley NO[at]SPAM hotmail.com at 4/30/2005 7:05:20 PM
Thanks in advance. I have a user control on a aspx page. i pass a querysting to the aspx page and set the property to that value. I see this happen when I step through. This happens first. Then as the user control loads the property isn't set. Why would the value not be there after I just ...more >>

parsing strings
Posted by laimis at 4/30/2005 5:41:34 PM
Hey guys, ever since I started programming, i used to parse strings using methods such as find the index of the delimeter, extract the string using substring. Now i was thinking that regex could be of use here and might work even better with its Match class. Which method do you think is...more >>

C# v2.0 Iterators and the Visitor design pattern
Posted by Wavemaker at 4/30/2005 5:16:08 PM
I've been playing with C# v2.0 today, and having quite a bit of fun. The new version has added iterators. The iterators are coded directly into the class to be iterated. For example: public IEnumerable<int> Visit(SomeVisitor visitor) { int position = 0; for(int i = 0; i < Count; i+...more >>

TreeView selecting nodes via code
Posted by JoKur at 4/30/2005 4:53:01 PM
I'm currently using a context menu to allow the user to add, rename and delete nodes in a treeview control. When a node is added we give it a bogus name ("NewNode") and invoke the add method. We would then to then select the newly added node and rename it but can't figure out how to select t...more >>

Get One Value From DataTable
Posted by Jordan Richard at 4/30/2005 2:03:29 PM
I'm just wondering if there is a faster way (better performance or fewer lines of code) to retrieve one single value from a DataRow. Here is what I'm currently doing when I just need a single integer value from the DataRow: int someID = 0; if (DT.Rows.Count == 1) { DataRow DR; DR = DT...more >>



How to determine which button was pressed in OnValidating event.
Posted by Vern at 4/30/2005 1:01:42 PM
I have a custom control which has it's own OnValidating event handler. I would like to skip the validations if the Cancel/Exit button is pressed. Also, if possible, would like to skip the validations if the X was clicked to close the form. How can I do this? Thanks, Vern...more >>

Web Services DNS Round Robin
Posted by JP at 4/30/2005 12:49:09 PM
Greetings - I have a classic ASP site that is accessing custom written .NET web services - we are looking at scalability options and though we have an F5 load balancer that would definitley do the trick, I was wondering how DNS load balancing was handled in such a situation? That is DNS Res...more >>

C# certification
Posted by -D- at 4/30/2005 11:06:09 AM
Is there a specific track for C# certification? If so, what sequence of exams would I need to take to become C# certified. I've looked at the MCAD from Microsoft, but was interested in only a C# certification. The company I'm working for is pushing for all employees to get certified in at leas...more >>

Walking Inheritance Tree of Loaded Assembly
Posted by Zachary Hartnett at 4/30/2005 9:49:30 AM
I was trying to write a routine this morning that would open a given assembly, walk the inheritance tree of classes in the assembly, and provide a list of classes in the assembly that inherit from DataSet. Here is a snippet from the routine I came up with: -----------------------------------...more >>

Anybody using VPC for VS2005 Beta 2
Posted by Bob Hanson at 4/30/2005 8:22:17 AM
Hi All, Anybody using Virtual PC for development in VS2005. I am just checking to get some views on speed, integrity before I spend time on this. Thanks in advance, Bob Hanson *** Sent via Developersdex http://www.developersdex.com ***...more >>

Where I can get LATEST version of C# 2.0 specification?
Posted by Smarty at 4/30/2005 7:06:05 AM
Please, post a right link. Му current copy dated by May, 2004 and contain bulk of errors/inexactitudes, at least if check it against C# Express beta 2....more >>

mimicking a Mac OS X Tiger Feature
Posted by veeralp NO[at]SPAM gmail.com at 4/30/2005 6:12:03 AM
g'day folks, I was just browsing through some of the features apple's new tiger operating system. One of the features I found was the invocation of the dictionary feature implemented in Tiger. Essentially, one would place their mouse on top of a word they are interested in and they simply hol...more >>

The Right Collection for the Job
Posted by orekinbck NO[at]SPAM yahoo.com.au at 4/30/2005 1:47:30 AM
Hi There I have a huge array of objects being displayed on a UI. These are actually 'jobs' that the users need to deal with before close of business. As the operator deals with a particular job, I want to add the unique identifier for that job to a collection. The collection simply keeps ...more >>

Delegates and threads
Posted by Grant at 4/30/2005 12:00:00 AM
I am having great difficulty understanding this and any code samples I find online are kilometres long and complicated to understand...Please could someone give me a simple exampe of how to get a delegate passed to my worked class so that my main form can update its progress bar? I know it has...more >>

[Question/Feature request]User defined warning for experimential/incomplete functions
Posted by Lau Lei Cheong at 4/30/2005 12:00:00 AM
Hello, As a programmer, I'm sure many of you have written libraries to do many of the repeatative tasks, and possibly sharing them with other team members. In my case, I have about a dozen functions in hand that are either "not completely tested" or simply "half done", while anothe...more >>

UMLE00501 on dotnet framework delegates when reverse engineering
Posted by Alessandro Riolo at 4/30/2005 12:00:00 AM
[c/p between microsoft.public.dotnet.languages.csharp and microsoft.public.visio.software.modeling, I don't really know where it would have to be posted] I've got a weird thing when reverse engineering a c# project which is declaring and then using an event of type CancelEventHandler as in ...more >>

[Flags] on enum declarations
Posted by Paul E Collins at 4/30/2005 12:00:00 AM
The help file says that "bit fields [i.e. enums that have the Flags attribute] can be combined using a bitwise OR operation, whereas enumerated constants cannot", and yet this code works: enum Blah { a, b, c }; // without [Flags] .... Blah x = Blah.a | Blah.b; So what is the purpose of t...more >>

How can i select all column for each row in DataGrid?
Posted by Erkan KURTULUÞ at 4/30/2005 12:00:00 AM
Hi, How can i select all columns for each row in DataGrid? Best Regards, Erkan ...more >>

Explicit Interface Implementation And Events
Posted by COLIN JACK at 4/30/2005 12:00:00 AM
Hi All, I've got a situation where I'm implementing an interface (BaseInterface in example below) and I want to use explicity interface implementation of an event so that I can add type safety. To see what I mean look at the example below where the class implementing the interface actually...more >>

Where is the caller?
Posted by Fabio Cannizzo at 4/30/2005 12:00:00 AM
Is it possible to know who is the caller of some running method? In ogther words, given a method of some class which is running, is there a way, inside the method, to find out from which namespace the method was invoked? ...more >>

import vc++ lib file
Posted by Manoj at 4/30/2005 12:00:00 AM
Hi, How can I import a VC++ .lib file in my c# application thanks in advance Manoj Nair ...more >>

Reduce size of soap serialization
Posted by Alexander at 4/30/2005 12:00:00 AM
How to make so that on serialization of object were not added long Namespace: xmlns:a1 =3D = "<http://schemas.microsoft.com/clr/nsassem/LnLists/LNLists%2C%20Version%3= D1.0.1944.28570%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull>" And so 100 times for each element=20 Best reg...more >>


DevelopmentNow Blog