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# > march 2008 > threads for monday march 10

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 31

newbie on multiple threading
Posted by Danny Ni at 3/10/2008 11:44:15 PM
Hi, I have a WinForm application, when the Form load, I would like to create 2 worker threads that will load data from different SQL tables and populate 2 ListBoxes on the form. Here is what I wantto do: change the cursor to hourglass when the first worker thread starts and return the cu...more >>


Can you do a BinarySearch with an anonymous method?
Posted by tshad at 3/10/2008 10:38:15 PM
I can do the following with Find: Racer theRacer2 = racers.Find(delegate(Racer racer) { return racer.Car == "Ferrari"; }); But I can't seem to do the same with BinarySearch, this: int iktr = racers.BinarySearch(delegate(Racer racer) { return racer.Car == "Ferrari"; }); gives me these...more >>

Schemagen for .NET
Posted by Siegfried Heintze at 3/10/2008 4:56:01 PM
In javaland, there is a program called schemagen which uses reflection to fetch the attributes (or annotations) of the classes and create a table in the database. Is there a similar feature for .NET programmers to automate the generation of tables in MSAccess and SQL server? Thanks, sie...more >>

BackgroundWorker Question
Posted by Peter Carlson at 3/10/2008 4:53:29 PM
I am testing backgroundWorker to update our installer with both messages and with a progress bar. I am finding however that the text never gets updated. Any ideas what I might be doing wrong? Code snipped for brevity. Peter private BackgroundWorker worker; private void Install_Click(ob...more >>

interacting with windows calculator
Posted by pipo at 3/10/2008 4:47:31 PM
Hi all, I am trying to interact with the windows calculator. I want to open the calculator for the user so the user can work with it. When the user is done (or during) working with calculator I need the (displayed)value of the calcultor back in my textbox. I have no problem starting calcul...more >>

problem with string.Contains()
Posted by Jeff at 3/10/2008 3:53:28 PM
Hey ..NET 3.5 I'm trying to search a string to determine if the string contains </table>, but string.Contains don't find it. I've used WebRequest/WebReponse to retrieve the html from a webpage and now I'm searching through this html... this webpage contains 4 html tables. so there are 4 ...more >>

DateTime wrapper serialization
Posted by Jarlaxle at 3/10/2008 3:08:01 PM
I am trying to figure out how DateTime handles its serialization. I can see it derives from ISerialization. I am basically trying to wrap a DateTime in another struct and have it serialize like DateTime does. i can't seem to get past the "XMLAttribute/XMLText can't be used on complex type...more >>

Regex question
Posted by Nightcrawler at 3/10/2008 1:49:25 PM
I have the following regex: (?:(?<Title>.+)??(?<Remix>(?:\([^\)]+\)|\[[^\]]+\]))|(?<Title>.+)) This matches title title (remix) title [remix] How can I extend this to also match title - remix I also want the regex not to be sensitive to the amount of spacing before and after the...more >>



Linq DataContext Designer:Association to a derived class?
Posted by Richard Collette at 3/10/2008 1:32:00 PM
Most of the Linq discussion seems to occurr here, there's no Linq specific discussion area and I didn't get any responses from the IDE area. Hopefully there's a knowledgeable person here. The following would be my example classes being created in the DataContext designer (pseudo, I know t...more >>

Linq to xml and collections
Posted by Robert Bravery at 3/10/2008 11:46:59 AM
Hi all, I have a contact class that has as one of its properties a segment list collection public List<Segment> SegmentCollection { get; set; } In the Segment class there is a segmentname property public class Segment { public string SegmentName { get; set; } } In my zml I have ...more >>

Ignoring culture on DataGrid
Posted by Mark Gillespie at 3/10/2008 10:33:03 AM
Hi, I have a C# usercontrol, that contains a datagrid, attached to a dataset with XML schema. The host application uses globalisation to set the locale, and my usercontrol sees this change, and makes changes to the data in the dategrid. The problem is, decial numbers are changed from xx.xx to...more >>

variable problems - Help
Posted by AMP at 3/10/2008 10:10:07 AM
Hello, I have been working on a project with no problems for a few months now. All of a sudden I am getting errors when trying to declare a variable. I Have the following code: string DataToParse = ""; string Ra = ""; DataToParse = File.ReadAllText(Uploade...more >>

WinForms design patterns
Posted by Alan at 3/10/2008 9:25:57 AM
Hello, I'm looking for some examples of design patterns for winform application. I need to write some database application (application for dean's office, student database). Don't know how to start :/ -- Alan...more >>

IEnumerator in a Struct
Posted by JPS at 3/10/2008 9:01:35 AM
Does anyone knonw if you can add the IEnumerator to a struct or just a class. If you can add it to a struct, can you please show me a valid, simple example?...more >>

Is asp.net 3.5 in release stage? what about vs.net 2008?
Posted by DotNetNewbie at 3/10/2008 7:53:21 AM
Hi, I am a little confused as to all these new technologies or addons the asp.net team is pumping out. 1. is asp.net 3.5 production ready? 2. is vs.net 2008 being sold? (i downloaded the trial today) 3. is MVC ready for a live site, even though its in preview2 stage?...more >>

Server-Side DataGrid Manipulation
Posted by pbd22 at 3/10/2008 6:47:04 AM
Can somebody tell me how I add classes to the <td> tags in my datagrid server-side? I seem to be able to get my custom classes to the <tr> tags from within the grid's "ItemStyle" tags by the <td> tags, or columns, remain allusive. What is the appropriate code for styling my columns for, say, t...more >>

Question regarding proper OO design
Posted by havremunken@gmail.com at 3/10/2008 6:43:16 AM
Hi there, A project I am working on uses an XML-file to store the objects from a session, plus some metadata and definitions for this session. A brief explanation follows; The main class type is the Entry. Entry objects have certain attributes, methods and properties, and really make up the...more >>

Translate to C#
Posted by Samuel.cyprian@gmail.com at 3/10/2008 6:11:47 AM
Can anyone help me on translating http://support.microsoft.com/default.aspx?scid=kb;en-us;323809 to c#?...more >>

Opposite of typeof /GetType()
Posted by Ade at 3/10/2008 6:01:48 AM
Whereas typeof gets a Type from a class, I need to get a class from a Type so that I may create the type at runtime. Imagine if you wil class foo { public foo bar() { foo newFoo = new GetType(); // Some magic goes here return newFoo; } } What wou...more >>

HTTPWebRequest not working with Wikipedia
Posted by Mugunth at 3/10/2008 4:49:36 AM
I'm trying to use a HTTPWebRequest class to retrieve a webpage. Below is the following code.... string google = "http://www.google.com.sg/search? hl=en&btnI=I'm+feeling+Lucky&q="; string wikipedia = "http://en.wikipedia.org/wiki/ Special:Search?fulltext=Search&search="...more >>

Which framework to use for c#?
Posted by Sergio at 3/10/2008 3:34:42 AM
Hi all, Which framework or set of technologies would you use to build an enterprise bookkeeping application? Application must use business objects, UI will be developed as a client application using Windows Forms and WPF, and later a web UI will be added. What to use for business object s...more >>

assign byte array to struct or class
Posted by Christian Havel at 3/10/2008 3:16:08 AM
Hi, how can I assign a byte array (read from a device) to a C# class or struct? Christian...more >>

sending data to printer
Posted by vicky87.eie@gmail.com at 3/10/2008 2:40:15 AM
I need to print the image i have drawn in a picture box. My program is create an application similar to paint in windows, I used picture box as the area to draw. Now after completing the work i need that picture to be printed. Can any one tell me how to send the picture data to printer??...more >>

Linq across oracle, access?
Posted by Ilyas at 3/10/2008 1:51:30 AM
Hi Is linq just for Sql Server or can you use if for Oracle, Access etc ...more >>

A SkipWhile question
Posted by Ilyas at 3/10/2008 1:48:24 AM
Hi all I have the following code: List<int> items1 = new List<int>() { 1, 2, 3, 4, 5 }; items1.SkipWhile(i => i % 2 == 1).ToList())); this produces {2,3,4,5} I was epecting 2,4 Can anyone explain? - I'm trying to get al the even numbers...more >>

Accessing files in c#
Posted by FerrisUML at 3/10/2008 12:01:08 AM
Im writing a small web application and what I'd like to do is open a file, read the contents into memory and then close the file as fast as I can to free up the file for the next user. Once the file is loaded into memory and subsequently closed, i would use the contents of the file (now loaded ...more >>


DevelopmentNow Blog