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# > february 2008 > threads for monday february 11

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

Wpf Browser Application and resources problem
Posted by Marek Kolesar at 2/11/2008 10:37:58 PM
Hi ... i develop now Wpf Browser Application ... now i have very ease web app ... i have only 1 page wit h 2 buttons .... in resources added file languages.xml resources acces modifier set to public and now my problem .... how to load this resource ? i try a few function .. but eve...more >>

Seeking advice on design/threading strategy
Posted by styles00@gmail.com at 2/11/2008 10:34:58 PM
Help. I've been bashing my head on this for a while. I'm creating an application that is meant to control a hardware device via a socket. It's main purpose is to display the current state of the hardware (operating temperature, current operating state, etc...), and also allow the user to chang...more >>

I need this geometry function faster
Posted by not_a_commie at 2/11/2008 9:53:34 PM
I have here a function at the crux of my path search heuristic. The function takes two points, an angle at each point, and a radius and returns the shortest arc-line-arc triplet connecting those two points. The function creates four connections between adjacent circles at each end and returns th...more >>

NotifyIcon
Posted by Peter Holschbach at 2/11/2008 9:41:07 PM
Hi all,=20 I've a application where I need to use NotifyIcon in a other way round. = My normal windows application sometimes has to collect data. In this = case I want to hide all formulares and just show a icon in the system = tray.=20 I've added a NotifyIcon and a button to a form:=20 pr...more >>

How to get the UserName for both web and client apps?
Posted by davshu at 2/11/2008 9:32:00 PM
I need to get the username (domain\user) in a way that will work for both web and client apps. For web I would just use HttpContext.Current.User.Identity.Name But this won't work for a client app. I tried System.Security.Principal.WindowsIdentity.Name but my web app returned a system acco...more >>

Multithreaded GC!
Posted by Atmapuri at 2/11/2008 7:32:11 PM
Hi! The GC should be multithreaded, but on my quad core I still see only 25% CPU max usage, when running a ..NET test app which uses 50% of 1 core for the GC. As if though GC.Collect is called from the same main thread of the main app. Have I missed some settings? I was expecting that t...more >>

Delegates tutorial meeting specific criteria?
Posted by sherifffruitfly at 2/11/2008 6:30:20 PM
I'm looking for a tutorial/sample specifically aimed at showing why life is better with them than without them. Ideally, what I'd like to see in the tutorial I'm looking for: 1) No discussion of events. 2) The "non delegates way" and "the delegates way" of dealing with a problem both presente...more >>

main form, IDisposable, and Application.Run
Posted by Ben Voigt [C++ MVP] at 2/11/2008 3:32:51 PM
Does anyone else think it is a bug that the new project wizard generates the following in the Main() method? Application.Run(new MyFormClass()); Shouldn't it be using (MyFormClass mainForm = new MyFormClass) Application.Run(mainForm); instead? ...more >>



writing to xml file
Posted by Dave at 2/11/2008 3:22:02 PM
I am a newbie to XML. I am trying to replace a node by using the ReplaceChild function. The element s in the node to be replaced all have a prefix of"mml". However when I try using the following code XmlElement elem = doc.CreateElement("mml","cn",xmlns.ToString()); elem.InnerText = "mytext...more >>

Extra properties in DataTable returned by web service
Posted by szwejk at 2/11/2008 2:50:39 PM
Hi! I want to return DataTable from web service method. This method generate xml with schema and data. Is there any way to retrun more informations about columns? If I want to get maxLength there is no problem because DataColum has property MaxLength, but I need more (e.g. color, mask..) Thx ...more >>

Socket class, connect to an endpoint with port 21
Posted by Diego Escalona at 2/11/2008 2:35:28 PM
Hello everybody, I'm developing a FTP Client using the socket class. Here is the code I use to declare the socket: Socket FTP_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); I've developed other applications (not with the port 21) with sockets and t...more >>

Newbie to dotnet
Posted by Alan T at 2/11/2008 2:23:24 PM
I regard myself as newbie although I have been working with C#(VC# 2005) for 6 months. I would say I should read books about .NET 3.0 or even 3.5. Any step by step guide on these (C#) ? ...more >>

Generic methods help
Posted by Fabrizio Romano at 2/11/2008 2:23:24 PM
Hello, I have a problem with a generic method. I have written a sieve to generate prime numbers. This method takes an input parameter which is the upperbound of the last prime I need to get. So if I call List<int> p = Sieve(10); I get a List<int> with 2,3,5,7 inside. Sometimes I need a li...more >>

Define a multiple line long string
Posted by huohaodian@gmail.com at 2/11/2008 1:47:30 PM
Hi, How can I define a long string variable in C# with multiple lines ? For example private string longName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";...more >>

Deploying WCF Service
Posted by Baffled at 2/11/2008 1:13:12 PM
I am trying to deploy a WCF Service on one of our Windows Server 2003 machines so that I can access it from a second machine. I have tried creating WCF Service library and a WCF Service Application. I have an asp.net program that uses the service that I have also created. Everything works...more >>

Click event saving duplicate records into the database
Posted by Hezal at 2/11/2008 12:38:15 PM
Hi, I am trying to add a new record to a table but everytime I click the button, somehow it saves the record twice... I've created a stored procedure to insert records into a table and I called that procedure in the code that I attached to a button click. Here is the event handler code whic...more >>

Format string as short date
Posted by moondaddy at 2/11/2008 11:57:26 AM
using c#3.5, how do I take a string which contains a data, and format it as a short data format like this: "2/5/2008 1:17:11 AM" and format to: "02/05/2008" Thanks. -- moondaddy@newsgroup.nospam ...more >>

Copy constructors in C#!
Posted by Atmapuri at 2/11/2008 10:45:13 AM
Hi! Would the optimizer in C# be able to take advantage of the copy constructor: http://msdn2.microsoft.com/en-us/library/ms173116.aspx written by the programmer, when copying structs? The copy constructor can namely copy less in a more efficient way. Example (continuing from the source a...more >>

Relative XSD path
Posted by Aleksey Timonin at 2/11/2008 9:45:53 AM
Hi guys, I want to validate my xml by xsd schema. But in the xsd file I have RELATIVE includes to the others xsd files that located in ..\ directory for the main xsd. Could you provide me code example that makes such a validation. All the examples I found in google doesn't work. Thanks a ...more >>

Newly getting started in C#
Posted by George at 2/11/2008 7:47:00 AM
hi all, I am trying to make the jump from VB6 to C#. While I do have a couple of books, the best way I can learn something is to write something I know. So please forgive me in advance if this question sounds a bit off in the C# terminology. I am taking a simple thing like opening a MS...more >>

Generic method & constraint
Posted by timor.super@gmail.com at 2/11/2008 3:15:01 AM
Hi group, please look at my generic method : static void Write<T>(IEnumerable<IEnumerable<T>> list) { foreach (IEnumerable<T> ts in list) { foreach (T t in ts) { Console.WriteLine(t); ...more >>

Google Reader not showing any RSS items!
Posted by Zeb at 2/11/2008 1:59:25 AM
Hi all. I've got some RSS feeds that are built on request. They work fine in a browser, in FeedReader and in Outlook. But recently (within the last few weeks I think), google reader has started to show no results whatsoever for these feeds. Has anyone else come across this before? In the ...more >>

JGraph, GEF or something similar for c#
Posted by Andi at 2/11/2008 1:27:53 AM
Hi, I need to develop a user control which displays some rectangles and polygons. To draw something like this seems to be easy but I need the functionality that the user can click on some lines to select these lines of a polygon them. Is there a framework available like eclipse GEF or JGraph ...more >>

Windows Service Problem
Posted by badar.waqas@gmail.com at 2/11/2008 12:36:48 AM
I have written Windows Service in C#. It runs fine on my PC. I have tested it on other systems on office. It runs fine on all PC. But when i moved it to production system it is not running. I am able to install it on production system. But when i try to run it, following error is given to me: ...more >>


DevelopmentNow Blog