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# > september 2004 > threads for friday september 3

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

Odd size of struct
Posted by Morten Wennevik at 9/3/2004 8:48:57 PM
Hi, Using a struct like the following, Marshal.SizeOf always reports 14 bytes yet the struct should be 13 bytes. What am I doing wrong? [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public struct GIF_HEADER { [MarshalAs(UnmanagedType.ByValArray, SizeConst=3)] public...more >>

string.empty vs. ""
Posted by Ole Hanson at 9/3/2004 8:31:04 PM
Hi I am wondering if there is any programmatic difference between the String.Empty and the "" for declaring an empty string? Furthermore, is there any performance penalty by doing the one over the other? /Ole ...more >>

Re: Is C# too slow for real game programming?
Posted by Sadeq at 9/3/2004 8:13:42 PM
A friend of mine has written a nice game with C#. Also, I know there are games such as "Quake II" written totally under .NET framework (not C#, but VC++ .NET). Here's the link: http://www.codeproject.com/managedcpp/Quake2.asp ...more >>

Is C# too slow for real game programming?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 9/3/2004 7:31:22 PM
I know one can make games in C#, but are any software companies really using C# to produce anything? What do you think? I use a lot of C# at work, but would like to use it for play/work on my own. I don't want to use regular c++ if I don't have to. I just not that good. Is c# just to slow w...more >>

padding a numbers string reprensentation
Posted by Matthias S. at 9/3/2004 6:31:20 PM
Hi, I'm pretty sure this is as easy as it gets, but I couldn't find anything in the documentation. I'd like to change the string representation of an int so that the numbers get padded with 0's up to a certain amount of characters: For example I'd like to pad up to 4 characters, then a 1...more >>

[Q]Registery - what permissions do I need
Posted by stuie_norris NO[at]SPAM yahoo.com.au at 9/3/2004 6:00:09 PM
Dear Readers, I am writing an application that will be installed on Windows XP Professional in a non-administrative account. Can this program create keys in the HKEY_LOCAL_MACHINE \ SOFTWARE registery section? What permissions does the account which will run this application need so I ca...more >>

Comparing structs and <null>
Posted by bobgregory NO[at]SPAM ppsltd.net at 9/3/2004 5:52:50 PM
Hi all, I'm utter C# newbie, do be gentle. VS2005 Express refuses point blank to install on my box, so I'm stuck with C# 1.0 unless someone can point me to a C#2.0 compiler elsewhere. I have an authentication system rigged up, which is working, but I'd like to be able to run a test like this...more >>

GwesPowerOffSystem in C#?
Posted by Elmar Jacobs at 9/3/2004 5:02:24 PM
hi folk, what is the c# version of the GwesPowerOffSystem for the compact framework? thanks, elmar ...more >>



Hiding baseclass members
Posted by Kimmo Laine at 9/3/2004 4:53:18 PM
Hi, is there a way to hide baseclass members: class BaseClass { public BaseClass() {} public string Get() { return "base"; } } class MyClass: BaseClass { public MyClass() :base() {} new public string Get() { return "my"; } } void Foo() { MyClass m =...more >>

Performance impact: C# vs C++ classes
Posted by Chuck Bowling at 9/3/2004 4:25:36 PM
I have a library if C functions that will eventually get wrapped in a class. The question is, should i wrap them in a C++ wrapper and call the wrapper from C# or should I wrap the C functions in a C# wrapper? Anybody got any insight on this? My primary goal is speed. This is an audio application ...more >>

arggg...sqladapter to combo binding...urgent please...spent more then 90mins
Posted by ZZZ at 9/3/2004 4:13:45 PM
SqlDataAdapter sql99 = new SqlDataAdapter("select OMSCHR,TELLER,CATEGORIE,STUKS,EENHEID,BTWCODE,P1 from ARTIKELEN order by OMSCHR",sqlConnection3); sql99.Fill(ds); MessageBox.Show("1:" + ds.Tables[0].Rows.Count.ToString()); ////////shows 162, so OK MessageBox.Show("2:" + ds.Tables[0].Col...more >>

easy DOM XML question...
Posted by genc ymeri at 9/3/2004 4:10:33 PM
Hi, I have a this string variable : string strXML = "<greetings>Hello<greetings/>" How can I read this XML information when it stored in a string variable rather than in a "classical" way of being in a XML file ???? PS: I expect a reading solution without having the need to save it a...more >>

Control.Setbounds Intellisense is wrong
Posted by Joey Callisay at 9/3/2004 3:54:44 PM
I don't know if this has already been noted but I just found out that the intellisense for the y parameter of the SetBounds method is mistakenly declared to be the new Control.Right property of the control instead of Control.Top. ...more >>

Need an array of object pointers
Posted by Jack Addington at 9/3/2004 2:43:36 PM
Quite new to C# but I am getting quite confused with Array's and ArrayLists. This is probably the same old iteration of a basic question but I can't seem to find a clear answer/example of this case. Basically I want a container that points to a set objects that I can then interate through to g...more >>

Form.Handle inside a Component?
Posted by Ignacio X. Domínguez at 9/3/2004 2:32:11 PM
Hi. I have created a component (System.ComponentModel.Component) that I place on a form. Is there a way of obtaining the Form.Handle of the form where I have placed my component? Thank you ...more >>

Exception handling
Posted by Igor at 9/3/2004 2:31:10 PM
Can I somehow know when I catch an exception on which line it exectly occured? Thanks. ...more >>

Please help - How to call functions that exists in the main application. The call should be initiated from one of the components.
Posted by Anand Ganesh at 9/3/2004 2:21:04 PM
Hi All, I need some help. I am sort of not sure how to approach this problem. I have a MAINPROGRAM. This is the core application. I have asked two of my staff to developed two different Windows Controls. Say ControlA.dll and ControlB.dll. As usual I know how to add these .dlls as the r...more >>

simple textbox validation using regexvalidator
Posted by robin.reyes NO[at]SPAM gmail.com at 9/3/2004 2:08:45 PM
i am trying to validate a simple username textbox using RegularExpressionValidator: TextBox tbUserName = new TextBox(); tbUserName.ID = "tbUserName"; string strPatternUserName = @"\W"; // i've tried using "\\W", "\w", "\\w","@\w", "/\\w", etc... // but it always prints my error msg UNLESS t...more >>

C# example sought
Posted by newsgroupie at 9/3/2004 1:58:06 PM
Hello, I am an experienced MFC/VC++ developer but I want to start learning some C#. I am looking for a C# Web forms sample which allows the user to enter and/or select some data on one form then after crunching some numbers to present the results on a new form (say in a tabular form) ...more >>

Creating new database tables and indexes from existing tables
Posted by Shelby at 9/3/2004 1:07:03 PM
Problem: My company generates its own data export from a propietary database. These (free) tables can be read in C#.NET using a Visual FoxPro driver (vfpoledb). I can read each of the six tables into its own datatable, modify them, and add them to a dataset. It take approximately 15 minutes...more >>

how can I change the system current date (time) using c#?
Posted by George LAZAR at 9/3/2004 1:04:37 PM
how can I change the system current date (time) using c#? thank you George ...more >>

how to list controls in an array?
Posted by Steve at 9/3/2004 12:50:11 PM
Hello, I am just starting out with C#. I have a set of controls on a form that I set .Enable = true; or .Enable = false;. Rather than listing all the controls all over the place, I would like to list them in an array, ArrayList... so that I can loop through the array for (int i; i < ...more >>

Re: Syntax for a static indexer (or it is not possible) ?
Posted by Baavgai at 9/3/2004 12:40:03 PM
When you want a class that's basically for static calls, you may want to try a Singleton pattern instead. Static constructs can have a lot of gotcha's, but just holding onto a single instance can save you a lot of grief. e.g. public class WhatEver { private static WhatEver instance = null...more >>

datagrid header
Posted by ordon at 9/3/2004 11:56:19 AM
Hi How show 2 lines text (column name) in datagrid | col name | | col name | +---------+ | row 1 | | row 2 | Thanks ...more >>

Regular expression confusion...
Posted by Tom Jones at 9/3/2004 11:40:29 AM
I don't understand how to construct the following regex: I need to match a word that is made of up alphas and ends with an optional ',' character. For example: ValidWord ValidWord, NotValid7 Not7Valid NotValid7, I thought that [a-zA-Z]+,? would work but it doesn't, it matches the "...more >>

Inhetited form event order
Posted by Sergey Atun at 9/3/2004 11:15:38 AM
Hi, I inherited form and I writed it's load event: public class frmBase: System.Windows.Forms.Form { .... private void frmBase_Load(object sender, System.EventArgs e) { MessageBox.Show("this event must run after derived class' (frmInherited) load event"); } .... } When I cre...more >>

Syntax for a static indexer (or it is not possible) ?
Posted by Michel Walsh at 9/3/2004 9:50:03 AM
Hi, Looking for the syntax for a static indexer. For a non static 'access', the following would do: public class whatever { static Hashtable myHashtable = null; // ----- here----- public whatever this[string name] { get { ...more >>

building projects
Posted by damienmccauley NO[at]SPAM hotmail.com at 9/3/2004 8:43:24 AM
Folks could do with a little bit of help I am using the dot net framework. Whenever im working on my project I need to build it to test it. The problem is that I need to run a batch file before I build my code. Then for complete testing of the system, I have another batch to run, to cre...more >>

What is needed for socket programming on the client?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 9/3/2004 6:55:33 AM
I have created a program that creates a socket, etc. It works fine on my development machine. It does not work on any other machine. Is there anything other than the same level framework that is needed on the client? It keeps failing to: listener.Bind(localEndPoint); on Windows 98 an...more >>

UserControl - Passing drop event to child control
Posted by Dave Veeneman at 9/3/2004 6:17:20 AM
Is there a simple way to pass drag-and-drop events to a child control in a UserControl? Here's an example: I have created a UserControl which contains a treeview and some text boxes. I want to be able to drag-and-drop to the treeview from outside the UserControl. Now, when I drag over the t...more >>

Problem with Win XP Service Pack 2
Posted by Andreas Fredriksson at 9/3/2004 3:39:02 AM
Hi! I got a problem when I installed the SP2 for Win XP. I use Visual Studio. net 2003 to develop a C# client and a using a SQL Server 2000 on the server. Before the upgrade it worked fine and if I uninstall SP2 on the client it will work fine. But with SP2, I got the following exception... ...more >>

Conservar estado control personalizado
Posted by Rigoberto Cifuentes at 9/3/2004 2:31:45 AM
Hola a todos: Estoy intentando hacer un control y necesito mantener el estado de la siguiente colección que he creado: public struct ColumnaGrid { public string TituloCabecera; public int LongitudCabecera; ......... } [Serializable()] public class ColeccionColumna...more >>

appending text to a file
Posted by Mike P at 9/3/2004 1:21:45 AM
Does anybody have a simple example of appending text to a text file? Cheers, Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Default Project Namespace
Posted by Tank at 9/3/2004 12:59:39 AM
How do I get the default namespace of the project programatically ? For example, the following code loads the embedded resource in the assembly and "MyNS" is the default namespace. assembly.GetManifestResourceStream("MyNS.Test.Rtf"); I do not want to hardcode it. I wish to have something l...more >>


DevelopmentNow Blog