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 2006 > threads for friday march 17

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

XML Schmell !!!
Posted by Tony Clark at 3/17/2006 10:02:20 PM
Hi, I have an app that write out form deatils to an xml file (e.g. its caption, size ect). Heres the xml output;- --------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <forms> <form> <title>ddd</title> <height>138</height> <wi...more >>


How properly return XML from an ASPX page?
Posted by Ronald S. Cook at 3/17/2006 9:32:50 PM
I have an ASPX page that returns XML to the calling client. While the code below works, I don't think it's proper because it's not encoded as XML. I.e. special characters might screw things up. Can anyone please tell me the more proper way to do this? <%@ Page Language="C#" %> ...more >>

How to tell when a form is minimizing or closing!
Posted by Tony Clark at 3/17/2006 8:41:17 PM
Hi, How can i tell when a form is minimizing or closing by use of the button in the top right of the form? thanks in advance ...more >>

Adding Files to EXE
Posted by Zagor at 3/17/2006 8:13:35 PM
Hi All, I have a small exe app ( basic a dialog box) that when lauched needs to "copy" some files in a directory chosen by the user (within the dialog). I cannot use an installation package because there are some particular tasks to be done from the exe. Anyhow I was wondering if it possibil...more >>

AppDomains and Exceptions
Posted by Michael Bray at 3/17/2006 7:54:13 PM
I'm writing a library to provide plugin capability to my applications. It does this by loading DLL's into a new AppDomain for each plugin that is loaded. Now obviously when I write a plugin, I can make sure that my plugins don't throw any exceptions. But I certainly can't guarantee that o...more >>

Why can't my delegate be public?
Posted by relient at 3/17/2006 7:34:29 PM
Title says it all. Here's code to show what I'm trying to say: public class ClassA { public delegate void MyDelegate( ); } public class MainClass { public static void Main( ) { ClassA classA = new ClassA( ); classA.MyD...more >>

Parsing e pyparsing
Posted by Qbert at 3/17/2006 7:21:14 PM
Hi, I read something about pyparsing, lex and yacc. What are they? Is there some example for C#? I'm interested in data parsing but don't know how to approach this issue. Thx ...more >>

String concatenation -- not the typical question
Posted by Justin M. Keyes at 3/17/2006 6:41:45 PM
Hi, Please read carefully before assuming that this is the same old question about string concatenation in C#! It is well-known that the following concatenation produces multiple immutable String objects for each statement: String a = "a"; a += "b"; a += "c"; a += "d"; However, I ha...more >>



Size and location change
Posted by PiotrKolodziej at 3/17/2006 2:35:55 PM
Hi This is my simple code: public Form1() { this.Size = configFile.getSize(); this.Location = configFile.getLocation(this.Size.Width); this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing); InitializeComponent(); } When the size and location is s...more >>

Scope and values of Object
Posted by AbeR at 3/17/2006 2:07:27 PM
I'm trying to set a level of abstraction in an ASP.NET app. I've created an object with properties and methods that I instansiate just after the class declaration. As I'm debugging this code I find that on postback the object is re-instanciated, wiping all the property values. A simplified ver...more >>

Converting a float to a string
Posted by eric.goforth NO[at]SPAM gmail.com at 3/17/2006 1:43:09 PM
Hello, float.parse(MyString) seems to work to convert a string to a float, but how do I change it back? e.g. (string) (Myfloat1 - Myfloat2) doesn't seem to work. ...more >>

How to detect a null value
Posted by keithb at 3/17/2006 12:58:35 PM
What is the correct syntax to detect whether a DataTable Row.ItemArray element is a null value? using: if (row.ItemArray[i] == null ) does not seem to work. Thanks, Keith ...more >>

cannot implicitly convert type string to bool
Posted by eric.goforth NO[at]SPAM gmail.com at 3/17/2006 12:41:41 PM
What's wrong with this? if (bool)(UserIDs[i] == ThisUserId) { return true; } ...more >>

displaying message
Posted by kannan Sripriya at 3/17/2006 12:07:38 PM
Is there any alternative to display the message in ASP.NET, ithout using Java Script code From http://www.developmentnow.com/g/36_0_0_0_0_0/dotnet-languages-csharp.ht Posted via DevelopmentNow.com Group http://www.developmentnow.com...more >>

creating instances of generic types
Posted by Scott Walters at 3/17/2006 12:06:59 PM
What I want to do is this... public class c1 <T1, T2> where T1 : new() { private T1 at1; private T2 at2; public c1() { at1 = new T1(); at2 = new T2(); } } but I can't make the new() constraint work...more >>

C# newby
Posted by maria at 3/17/2006 12:06:18 PM
Hi all I used to work with VB, and now I am trying C# and can't get it start for example in VB Dim Items() as tItems dim NumberOfitems as long obj.GetAllItems(NumberOfitems, Items()) for i=0 to NumberOfitems y=Items(i).ID x=Items(i).Name next in C#: using ComObj; ComObj.cls...more >>

HRESULT_FAILED thrown upon StatusTextChange from AxWebBrowser
Posted by RobKinney1 at 3/17/2006 10:51:29 AM
Hello, I have a AxWebBrowser control. I need to be able to display to the user what the browser is doing (loading, downloading, done, etc...). I used this event: private void TestWebBrowser_StatusTextChange(object sender, AxSHDocVw.DWebBrowserEvents2_StatusTextChangeEvent e) { ...more >>

DataView.Sort NaN
Posted by gilly3 at 3/17/2006 10:38:45 AM
I have a column in a DataView that contains NaN. When I attempt to Sort on this column, I get: MESSAGE: Index was outside the bounds of the array. SOURCE: System.Data STACKTRACE: at System.Data.Index.Sort(Int32 left, Int32 right) at System.Data.Index.InitRecords() at System.Data....more >>

Creating a Shared Lock
Posted by Bob Bins at 3/17/2006 10:33:13 AM
Is there a way to create a shared lock using the Monitor class or any other synchronization class in .NET? So I have one resource that may have multiple threads using it at once but a second thread that when called must have exclusive access and cause the other threads to wait. I can't figu...more >>

Getting ready for Vista
Posted by DBC User at 3/17/2006 9:16:29 AM
Hi All, I am developing a program in VS 2005. Does anyone know what are the things I need to lookout for to make this program compatible with upcoming Vista? Thanks. ...more >>

configuration for single computer development
Posted by David at 3/17/2006 8:00:19 AM
How can ISS/ASP.NET best be configured for development only. In other words what settings can be used to make the computer the development is done on as secure as possible but still able to serve webservices and webapplications to the developer. The developer also has to debug. Is there a...more >>

Generic ICloneable
Posted by Nathan at 3/17/2006 7:53:28 AM
I'm working with Clone() for the first time, and noticed that you have to unbox the Clone of an object that implements ICloneable: MyObject var1 = new MyObject(); // Where MyObject implements ICloneable MyObject va3 = (MyObject)var1.Clone(); Does anyone know why the 2.0 framework doesn'...more >>

How does Media Player do that resolution trick?
Posted by garyusenet NO[at]SPAM myway.com at 3/17/2006 7:03:33 AM
I've noticed that the media player window takes up the same percentage of the screen regardless of the screen resolution, it's dimensions aren't fixed in pixels but it takes up a set proportion of the screen. This is exactly what i'm looking for in my simple form project i'm trying to write. ...more >>

New to windows services, can't get installer to work
Posted by vtxr1300 at 3/17/2006 5:43:13 AM
I've followed 2 very similar tutorials on creating a windows service and an installer. But, after successfully compiling it, I try to do the InstallUtil command, but I get a badimageformatexception. I tried to do some searching on that exception, but all I could find was a small blurb on MSs s...more >>

Problems in FTPing Windows Xp
Posted by Jay at 3/17/2006 4:13:09 AM
Hi, I have created FTP class file in c#.net. When i try to access FTP server (on Windows XP) through command line or browser, i am easily able to access it. but when i try it through my code, i log in but am not able to make connection sockets. it does not allow me to download files. i try c...more >>

.NET Framework Question
Posted by garyusenet NO[at]SPAM myway.com at 3/17/2006 1:30:05 AM
I'm reading up on Visual C# and chapter 14 is introducing me to the ..net framework... I'm a little curios it says that one of the function of the CLR is to protect users from malicious code... Q. How does it do that? Q. What does it define as malicious code? For instance a program that ...more >>

What are vTables?
Posted by Rene at 3/17/2006 12:44:46 AM
I keep reading about this vTables and it's killing me because I am not sure what they are. I have a feeling that vTables are used when you override virtual methods or properties but I really have no idea. Below is an explanation of what I *think* vTables are. Please consider the following two ...more >>

long, not too long
Posted by Ryan Liu at 3/17/2006 12:00:00 AM
In Visual Studio 2003, when i debug a C# program, I found: 300L * 10000000l -1294967296 int 210L * 10000000L 2100000000 int How come? a long type can not handle 300L * 10000000l, the result is too big for long type? Thanks! Ryan ...more >>

net mono
Posted by Bhagat Gurtu at 3/17/2006 12:00:00 AM
Thanking you in prior order to receipt of advises but anyway it so is. By way of my most important task, my employer has asked me to see it makes a database with C#. According to some it whereupons that .NET has a duality in the expression of the framework of Mono. Is it that the framework o...more >>

XMLWriter Anyway to produce Doc with no encoding Info>
Posted by Bob at 3/17/2006 12:00:00 AM
Hi Need to produce a Doc with no encoding info. Is there anyway of doing this? Thanks Bob i.e. <?xml version=\"1.0\" ?> ...more >>

Trouble connecting to oracle!
Posted by jens Jensen at 3/17/2006 12:00:00 AM
exception: "System.Data.OracleClient requires Oracle client software version 8.1.7 or greater." fails at connection.Open(); (connection is System.Data.OracleClient.OracleConnection) What i'm i missing? many thanks in advance JJ ...more >>

How to convert normal date to Julian date upto milliseconds precision
Posted by Rajat at 3/17/2006 12:00:00 AM
Hi, I have to draw a real time chart in which I have several entries at the same second (i.e. HH:MM:SS:Milleconds) The charting component only takes julian date for drawing the dates. I am not able to convert the normal C# DateTime to juliandate which takes milliseconds along with hour,minu...more >>

blob
Posted by Hrvoje Voda at 3/17/2006 12:00:00 AM
I'm using this code to get a blob from sql database, and put it into picturebox, but I don't know how to load it into picturebox. Code: sqlConnection.Open(); System.Data.SqlClient.SqlCommand LogoBLOBSelect = new System.Data.SqlClient.SqlCommand(); LogoBLOBSelect.CommandText = "dbo.[Log...more >>


DevelopmentNow Blog