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# > september 2007 > threads for thursday september 27

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

Null or empty string in a database
Posted by Jay at 9/27/2007 10:10:25 PM
For a column that contains a string (let's say varchar[50]), is there any performance advantage in not allowing nulls, and using an empty string ("") to instead? ...more >>


API Design: Is Socket.Select() seriously busted?
Posted by Dilip at 9/27/2007 9:55:41 PM
I don't know how I missed this piece for so long (this may also be old news to you guys) but in this ACMQueue article, Michi Henning goes to elaborate lengths to detail how even today designing a good API requires a lot experience and effort by illustrating the example of something as common p...more >>

DataSet Problems only When Published
Posted by Lint Radley at 9/27/2007 7:55:00 PM
Hello, My project contains a dataset which accesses an MDF database file created within the project. When debugging the program, everything works great. However, when I publish and install the project, the program always hangs on a GetData() method which was generated automatically by the...more >>

Creating a reference to an object
Posted by mark.norgate NO[at]SPAM gmail.com at 9/27/2007 5:51:11 PM
Hello I want to create a reference to an object, so that changes to the referenced object are reflected in the other object. Like this: object o = 123; object p = o; o = 456; System.Console.WriteLine("o = {0}", o); System.Con...more >>

jsp to asp.net
Posted by james at 9/27/2007 5:49:48 PM
Hey Guys, Would you all recommend some good reasons to switch from jsp to .net (from a managers perspective). My company has a two year investment in a successful jsp website, and I am trying to convince them to let us write a new module in aspx. Also, is migrating painful (will jsp and asp...more >>

How can I turn this code snippet into a blocking function?
Posted by Jamie Risk at 9/27/2007 3:52:43 PM
How can I rewrite 'getSpecialData()' more so that it more elegantly waits for the handler to complete? - Jamie class someClass { private class SpecialData { ... } private SpecialData specialData; private bool blocking; private void retrievedHandler(SpecialData d) { specialD...more >>

Problem with Socket.EndReceive Returning Invalid Value
Posted by at 9/27/2007 3:41:02 PM
I have a C# Socket configured for streaming TCP. Upon making a valid connection, I have an asynchronous callback configured using BeginReceive. Within the BeginReceive declaration, I set the socket flags to SocketFlags.Partial to allow my callback to be invoked as soon as it arrives rather tha...more >>

xmltextwriter escaping characters
Posted by FabSW at 9/27/2007 3:35:44 PM
hi all, i've to save to xml some data stored in sqlserver database, i've to use iso-8859-1 encoding. if i write text into xml attributes, there is some characters that make invalid xml (for example " (147)) xmltextwriter replace character (147) with doublequote (34) when i write this tex...more >>



IComparable and generics
Posted by teel at 9/27/2007 2:45:34 PM
Hi there! I've got a Parameter (any parameter you can imagine) class used to store a value. It has minValue, maxValue and the current value. Parameter can be float, bool, integer and should also be enum. It looks like this: public class Parameter<T> where T : IComparable<T> { ...more >>

Find Name of Function
Posted by Mick Walker at 9/27/2007 2:40:48 PM
How can I find the name of the current function being executed. For example, lets say I have the following function void Blah(int? y){ int z; try { z = y; } catch(Exception ex){ throw ex } } Which will throw an exception if y is null(Nullable). I am writing a class to log an...more >>

How To Expose Method From Ascx User Control
Posted by Sylvie at 9/27/2007 2:21:26 PM
I have an Aspx page (Name:"PG") (Contains "UC") and an Ascx Usercontrol (Name:"UC") (Contains "AspxGrid1") I wanna expose Aspxgrid1.rowchanged event to Aspx Page, when user vhanges or clicks on a row in usercontrol's grid, my page must catch this method and after taking the row Id, I...more >>

What is needed for a web service
Posted by TonyJ at 9/27/2007 1:45:02 PM
Hello! I know this is the wrong forum for this question but I think many of you can answer this easy question. I have read about web services and I wonder one thing and that is what file must be put on the web server? Is it both the asmx file and the code-behind file that must be stored web...more >>

Future of C#
Posted by Jon Harrop at 9/27/2007 1:30:58 PM
If Microsoft turn F# into a product and place it alongside C# and VB, will many people migrate from C# to F#? -- Dr Jon D Harrop, Flying Frog Consultancy http://www.ffconsultancy.com/products/?u...more >>

How Can I remove all row from a gridView
Posted by DCP at 9/27/2007 12:54:39 PM
How Can I remove all row from a gridView Thanks PJ ...more >>

Make a TextBox tooltip appear in-place (same as overly wide TreeView node texts)
Posted by Richard at 9/27/2007 9:38:13 AM
I'm trying to mimic how the TreeView shows a full text inplace tooltip when the mouse hovers over of TreeView node whose text is truncated due to skinny form or panel. In the IDE I have Text1.text is 'A rather longish bit of text, may a really long pathname or something similar'; ToolTip1....more >>

Replacing an event
Posted by MikeP at 9/27/2007 9:21:46 AM
Hi there, I wrote a replacement for the native .NET class "FileDialog" with my own "FileOk" event (triggered when the user selects a file and clicks OK). Let's say I now want to create a derivative called "MyFileDialog" and replace the "FileOk" event with a new event called "MyFileOk". User...more >>

Dispose and InitializeComponent
Posted by Dave Harris at 9/27/2007 8:49:00 AM
Theoretically, are there ever any cases or known defects where you should have to do any of the following to objects created by the designer inside of InitializeComponent()? 1 - call dispose() on an object 2 - set to null an object 3 - Manually tear down an event I'm having a dickens...more >>

Thread Timeout
Posted by Kevin at 9/27/2007 8:04:48 AM
Hi! Is there anyway to set a timeout for a Thread? Regards! ...more >>

Creating Install Package for 64 Bit System
Posted by Susan at 9/27/2007 7:15:00 AM
I am attempting to create an installation package for a 64 bit system with Visual Studio 2005. The machine on which I am compiling and creating the package is also 64 Bit. I have the 64 Bit .Net 2.0 Framework SDK along with the 64 Bit version of Oracle Client, and 64 Bit version of Oracle ODAC...more >>

Dllimport works only in Visual Studio
Posted by bram NO[at]SPAM plock.nl at 9/27/2007 6:38:27 AM
Hi all, I have a (for me) strange problem which drives me crazy. I've created a c# desktop app in visual studio 2005, which uses through dllimports, methods of an old dll. Afther some tweaking this works fine. Now my project is finished and i run the 'exe' the dll imports behave strange, fo...more >>

where and how to declare global variable in vb2005 ?
Posted by lokesh kumar at 9/27/2007 2:49:43 AM
where and how to declare global variable in vb2005 ? EggHeadCafe - .NET Developer Portal of Choice http://www.eggheadcafe.com...more >>

datetime
Posted by Hrvoje Voda at 9/27/2007 12:43:24 AM
How to convert text from textbox "12.05.1977" into "12/05/1977"? and also check if the text is in right format before converting? Hrcko ...more >>

Is it possible to inspect the return value in the 'finally' part of a try...catch without using a variable?
Posted by Polaris431 at 9/27/2007 12:00:00 AM
If I have a method like this: private void DoSomething() { try { return true; } catch{} finally { // Can I inspect the return value here without using a variable? } } Is there something in C# that would allow me to observe the return value in the 'finally' sec...more >>

Parent-child classes and circular references
Posted by Matteo Migliore at 9/27/2007 12:00:00 AM
Hi. I've a problem with parent-child circular references. Suppose have two classes, Person and Course: -------------------------- public class Person{ public Person(string name, Course course){ this.name = name; this.course = course; } string name; ...more >>

IIS Automation
Posted by Mick Walker at 9/27/2007 12:00:00 AM
Hi All, We are trying to automate the deployment of clients websites using IIS. At the moment we can create a new virtual directory on the server using: //Create a virtual directory System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRo...more >>

MainWindowTitle empty in Vista
Posted by JamesB at 9/27/2007 12:00:00 AM
Hi Apologies for the crosspost... I've written a windows service (c# 2.0) that is used in my workplace to monitor application usage of our users. It basically gets a list of processes and associated window titles (if present) and logs these for management to refer to. Unfortunately it d...more >>


DevelopmentNow Blog