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# > august 2003 > threads for sunday august 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

Mandatory static methods
Posted by Ranier Dunno at 8/10/2003 11:56:13 PM
Hi, I am wondering if there is some construct to force a class to implement a set of static methods? Sort of like a "class interface" as opposed to the common "object interface"?...more >>


Embedding resources
Posted by Havic Ploccin at 8/10/2003 8:31:54 PM
The LocalizedHelloWorld sample in help shows how to embed the default resource into the main assembly. Is this really required? Can we not d this and always require satellite assemblies? I tried this, but for some reason, I could not provide the "correct" name to the resource manager, therefore i...more >>

JIT
Posted by Mike Peretz at 8/10/2003 8:20:02 PM
For those of you coding windows Application under the framework you must noticed that forms take a performance hit loading the first time. This is because of JIT, I was able to fix this behavior by using ngen.exe, but then I don't get the same optimization JIT gives me and it is a headache for i...more >>

Interface definition for static methods
Posted by Steven Livingstone at 8/10/2003 5:04:39 PM
Anyone able to explain to me why you cannot define an interface that can then be implemented using static methods? I understand the C# CLS states this, but just interested in the reasons behind it. thanks, Steven ...more >>

C# debugger bug?
Posted by Etienne Charland at 8/10/2003 4:13:40 PM
I have Visual Studio.NET 2003. When I run a C# program, go in debugging mode, select an expression and press Shift+F9, the QuickWatch window shows up. However, half of the time, it says "error: '...' doesn't exist." For example, I just ran a program, paused where an exception occured and made a ...more >>

ToString() and (string) cast
Posted by John Wood at 8/10/2003 4:01:17 PM
If you override ToString(), why can't the default implementation of the string cast use that implementation for the object? It's a question people ask me time and time again. ...more >>

New DataSet from Existing -- Quick Question
Posted by Temp at 8/10/2003 3:45:32 PM
Can anyone tell me how I can create a new DataSet from a single column of an existing DataSet? For example, I have a DataSet containing 1000 records with 4 columns per record. Any idea how I can create a new DataSet containing a single column? Thanks for your help, Ron -- ___________...more >>

new property for control type Form
Posted by MP at 8/10/2003 3:35:22 PM
Hello I want to have a public property (and Brows able) in one control, I use this code: [Browsable(true)] public System.Windows.Forms.Form recordForm get { return _recordForm;} set {_recordForm = value;} } But when I tried to use it at the p...more >>



Closing a form on the Load event?
Posted by David Smith at 8/10/2003 11:41:59 AM
Under a certain circumstance, I want a form to display a messagebox in the load event, and then close. But apparently I cant close a form in the load event. Any ideas? Thanks ...more >>

Form cursor X and Y pixel coordinates
Posted by Dan H. at 8/10/2003 11:27:35 AM
Hello, I want to try to retrieve the cursor position x and y relative to the form the cursor is over. The way I am doing it now is: 1. Retrieve the left and top position of the form relative to the desktop 2. Retrieve the desktop cursor position. 3. Take the difference of the forms left...more >>

Lost Focus
Posted by Patrick De Ridder at 8/10/2003 11:13:38 AM
How do I connect to an event being thrown when a field has lost focus? Could you please give a code example? -- Patrick De Ridder ngmail@freeler.nl...more >>

xslt format method
Posted by Mate Visky at 8/10/2003 10:44:37 AM
Hi, how can i format output method (<xsl:output method=html doescnt working) here is my code what i use: xd = new XmlDocument(); xd.Load(this.textBox1.Text); this.richTextBox1.Text = xd.InnerXml; // Modify the XML file. XmlElement root = xd.DocumentElement; // root.FirstChi...more >>

Checking a CheckedListBox item without selecting it...
Posted by gal.tamir NO[at]SPAM idc.ac.il at 8/10/2003 6:52:54 AM
Hi, I'm using the CheckedListBox control, and I'm wondering if there is a way to let the user check an item in the list without also selecting it... Any ideas? Thanks in advance, Tamir....more >>

DataAdapter update - not working
Posted by shahar NO[at]SPAM log-on.com at 8/10/2003 3:21:25 AM
Hi Why this code does not updated the DB, just the DataSet: DataSet ds = new DataSet(); OleDbDataAdapter adapter = new OleDbDataAdapter("Select * from Employees", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=My.mdb"); adapter.Fill(ds, "Employees"); ds.Tables["Employees"].Rows[0...more >>

Access compatibility??
Posted by Tony at 8/10/2003 2:08:22 AM
Hello everyone, I am using the Access.Application class in my program to import external data from an excel spreadsheet to my access DB, it's working fine on any system that has Office 2002 installed, but will throw an exception when it's running on a machine that has Office 2000 on it... Does a...more >>

Static constructors and resources
Posted by Wavemaker at 8/10/2003 1:59:14 AM
I'm writing a class whose methods can throw exceptions under certain circumstances. These exceptions will need string messages. I was thinking about placing these messages in a resource instead of hard coding them into the class itself. The question I'm pondering is where would be the best pla...more >>

DataSet Update Problem
Posted by shahar NO[at]SPAM log-on.com at 8/10/2003 1:41:54 AM
Hi what's worng with the following code, the chages I made is only change the DataSet but not the Data-Base: try { DataSet ds = new DataSet(); OleDbDataAdapter adapter = new OleDbDataAdapter("Select * from Employees", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=My.mdb"); adapter.F...more >>

Read int and bool
Posted by gh at 8/10/2003 12:52:05 AM
Hi every Body .. in C# if I wont the user to Input a Number I write the code: // ... the 1st way for int String Number; int X; Console.Write("Enter A Number:"); Number = Console.ReadLine(); X = Convert.ToInt32(Number); .. .. and if i wont to Enter a Boolian Value I will write t...more >>

DataSet problem
Posted by shahar NO[at]SPAM log-on.com at 8/10/2003 12:01:14 AM
Hi what's worng with the following code, the chages I made is only change the DataSet but not the Data-Base: try { DataSet ds = new DataSet(); OleDbDataAdapter adapter = new OleDbDataAdapter("Select * from Employees", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=My.mdb"); adapter.F...more >>


DevelopmentNow Blog