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# > december 2004

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

Cookies
Posted by Dammit at 12/31/2004 8:03:20 PM
When doing a http request with code I derived from the example from http://www.developerfusion.com/show/4498/3 I noticed that my cookies would only be sent if the name of the page was the same as the name of the page that set them, but I need the cookies to be sent on every page I request from t...more >>

shellexecute in C#
Posted by Le, Thanh-Nhan at 12/31/2004 7:56:23 PM
Hi, Is there a same function in .Net as API shellexecute? Thanks Nhan ...more >>

Use API functions in C#
Posted by Le, Thanh-Nhan at 12/31/2004 7:47:24 PM
Hi, How can I use API functions in C#. Is there in VS .Net any simple Way to use, declare an API Function? Thanks Nhan ...more >>

Serializing private members with public Propery getter doesn't wor
Posted by punkbot at 12/31/2004 5:09:01 PM
consider: public class test { public string[] az; public test() { az = new string[2]; az[0] = "0"; az[1] = "1";} } This will serialize just fine but: public class test { private string[] az; public string[] AZ { get { return az; } } publ...more >>

default parameters and C#
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/31/2004 4:02:43 PM
Hello, Out of curiosity, does anyone know how come default parameters were left out of the C# specification. It seems to me that this feature from C++ comes in handy at times despite the fact that the same goal can be accomplished by overloading a method with different signatures. I would app...more >>

Is "Whidbey" going to de-skill developers ?
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 12/31/2004 2:19:16 PM
Hi I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by 70%. Surely this is going to de-skill or dumb down the developer's task and open up the task of web development to less qualified and trained staff. Tell me if I'm wrong....more >>

How do I share non-static code when I have to use different base classes?
Posted by Wysiwyg at 12/31/2004 12:27:27 PM
I'm new to c# programming and can't figure out how to avoid duplicating common code in multiple classes when I'm restricted to using different system base classes.. I'm using c# in asp.net to write a web application but this isn't specifically a web question. I have two classes which must inhe...more >>

Confusing property names
Posted by Mark at 12/31/2004 12:17:16 PM
I'm struggling with how to properly name a specific subset of Properties in my classes. An example will illustrate it best. Let's say you have a class named Person with the code below. Each Person instance has a single Address instance. The Property name is Address, but it returns an instance ...more >>



calling controls
Posted by freddy at 12/31/2004 10:03:01 AM
I have a frmNewHD.cs form with some textboxes. I would like to creat a new classcalled resetform.cs and I would like to have all the txtbox.clear in the restform.cs and call it from frmNewHD.cs. When I do this frmNewHD hd - new frmNewHD for the resetform.cs I do not see the txtboxes I am...more >>

Refresh a ListBox in ASP.Net with C#
Posted by Bish at 12/31/2004 7:43:01 AM
I want to create a .Net page with 2 controls. The 1st is a dropdown being populated from a database. The 2nd control is a listbox which is also populated from the same database but the content is dependent upon a selection from the dropdown control. I have no DB issues but being new to .....more >>

Read database column properties
Posted by mwn at 12/31/2004 3:03:01 AM
In a C# WinApp how do I display column properties? For example, I want to display from pubs.employee all columns and properties ColumnName DataType Length Precision Scale Default Value Collation emp_id char 9 0 0 fname varchar 20 0 ...more >>

How to pass asp session to C# session ?
Posted by kelvinweb NO[at]SPAM gmail.com at 12/31/2004 1:07:47 AM
Hi All, Please help. How to pass traditional asp session variable to C# session variable ?? Please advise. Thanks...more >>

Filling a Dataset and Dataset.WriteXML method..
Posted by Serdar C at 12/31/2004 12:50:27 AM
hello there, i am writing a program that generates random numbers and shows the numbers on a (x,y) chart.. i decided to use crystal reports to draw the chart and a dataset.readxml to read data.. my problem is when i try to fil the dataset manually and type dataset.writexml i find that theres not...more >>

Standard pattern for parsing command lines
Posted by John Paulsson at 12/31/2004 12:14:04 AM
Is there a C# pattern or perhaps a .NET framework way of parsing a command lines, supporting quoted filepaths etc? (I'm not talking about the current applications command arguments. I've got command strings that I need to parse into an array) ...more >>

C# properties: nothing more syntactic sugar for getters and setters
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/31/2004 12:11:31 AM
Hello, It seems to me that C# properties are nothing more than syntactic sugar for getters and setters. I wonder whether others hold a different point of view. Basically, what more do they have to offer? Thank you for your replies, Best Regards, Neil...more >>

print text or content of a control
Posted by Le, Thanh-Nhan at 12/30/2004 11:41:00 PM
Hi, How can I send a text (string) or content of a control on a form to printer? Thanks Nhan ...more >>

constructor call another constructor
Posted by Le, Thanh-Nhan at 12/30/2004 11:17:52 PM
Hi, How can I from constructor of a class call another constructor? As following (as in Java): public class Test { public Test() { this("", ""); } public Test(String p_sErrorMessage) { this(p_sErrorMessage, ""); } public Test(String p_sErrorMessage, String p_sHelp) { ...more >>

C# terminology: attribute versus field
Posted by nzanella NO[at]SPAM gmail.com at 12/30/2004 10:18:34 PM
Hello, I would like to ask a question pertaining to some C# terminology. My reference book says that within a class, attributes are the same as fields. I would like to know what the standard stays with regards to this terminology. According to the ECMA C# standard, what is the difference betwe...more >>

how do you tell if a key is pressed in mouse event?
Posted by MrNobody at 12/30/2004 8:13:05 PM
Say I want to do a specific action if the user holds down the CTRL key while clicking something in my UI- how can I determine if this key is currently pressed within the mouse event?...more >>

retrieve xmlnode value in XmlDocument
Posted by David at 12/30/2004 7:10:33 PM
I have a xml file: <OrderDetail TotalCount="2"> <ProductLine> <LineNumber>1</LineNumber> <ProductNumber>A001</ProductNumber> <ProductDescription>17"VP171b</ProductDescription> <ShipQuantity>100</ShipQuantity> </ProductLine> <ProductLine> <LineNumber>2</LineNumber> <ProductNumber>A002</Prod...more >>

copy and paste from webpage dosn't work in IDE
Posted by Ray Alirezaei at 12/30/2004 6:34:29 PM
Hi all When I copy and paste a piece of code from a web page into IDE ,,it is well formatted and instead of "<" or ">" characters "&alt" shows up.why is that ? Thanks for your help in advance. ALI ...more >>

Getting serilized data size
Posted by John J. Hughes II at 12/30/2004 6:07:22 PM
Using the below code I am send multiple sterilized object across an IP port. This works fine if only one object is received at a time but with packing sometimes there is more then one object or half an object in the received data. If I place the data in a memory stream on the received side is...more >>

C-style casts versus using the as operator
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/30/2004 5:56:03 PM
Hello, I would like to ask the following question concerning the C# as operator. I would like to know whether the difference between using a C-style cast such as double x = 0; float y = (double) x; and using the as operator is simply that as works on references rather than on primitive ...more >>

How to set marks inside the source and executable ?
Posted by Angelo at 12/30/2004 5:23:10 PM
Greetings, I would like to set marks inside the source and want to locate a same position in the executable ? It's possible in C# ? Thx! ...more >>

paractical applications of the C# 'is' operator...
Posted by nzanella NO[at]SPAM gmail.com at 12/30/2004 5:19:11 PM
Hello, I would like to see some practical uses of the C# is operator. This operator is not present in C++ and I would like to know what some good uses of it are... after all if I declare a variable as int, I know that it is an int, so there is no point to writing stuff like: int x = 0; if...more >>

Calling a constructor in its own class
Posted by Nicolas at 12/30/2004 4:47:56 PM
Hi, How can one call a constructor in the same class as the constructor itself ? Thanks....more >>

C# to VB.NET Conversion
Posted by Matthew Hood at 12/30/2004 3:37:47 PM
I'm playing around with converting some C# code to VB.NET as a learning exercise and I'm running into a little confussion for my lack of understanding some C# syntax. The C# code is: public const int LOCSIG = 'P' | ('K' << 8) | (3 <<16) | (4 << 24) Can anybody explain to me what this is d...more >>

C# arrays
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/30/2004 3:23:57 PM
Hello, It seems that in C# arrays are always created on the heap. This seems like it could prove somewhat inefficient in some situations. I would like to know whether it is possible to create an array on the stack in C# as it is possible in C and C++. Thanks, Neil...more >>

hardware support for decimal primitive data type
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/30/2004 3:22:10 PM
Hello all, I notice that C# supports a special 'decimal' data type not present in the classical C and C++ languages. Such a data type was added to support monetary calculations. I wonder whether most platforms actually provide hardware support for this new data type. If so, then I am somewhat ...more >>

question: size of C# primitive data types according to ECMA standard
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/30/2004 3:17:42 PM
Hello all, In C and C++ a primitive data type is represented by a minimum number of bits as defined by the corresponding standard. For instance an int is assumed to be at least 16 bits on all platform where in practice an int is 16 bits on the arcane 16 bit machines and 32 bits on the most co...more >>

question: XML documentation and compiler flags
Posted by nzanella NO[at]SPAM cs.mun.ca at 12/30/2004 3:00:53 PM
Hello, I would like to know how to generate XML documentation from C# XML documentation comments using the Mono C# compiler. Basically, with the .NET C# compiler it is possible to generate such documentation with a command such as: csc /doc:HowdyPartner.xml HowdyPartner.cs How is this do...more >>

.ASP Properties vs Attributes
Posted by Patrick * at 12/30/2004 2:55:52 PM
Reading a book on .ASP .NET I am getting a bit mixed up as to the difference between "property" and "attribute" as the terms don't seem to be used consistently in the book I am reading. Can anyone give two good definitions? Both with respect to controls. ...more >>

Merging multiple dlls into one
Posted by thechaosengine at 12/30/2004 2:22:45 PM
Hi, I have a solution made out of about 5 projects. At the moment, each one is creating its own dll in its own subdirectory. I seem to remember that there is a way to merge multiple dlls into one big Daddy dll. Does anyone know how to do this and is there anything I should be aware of ...more >>

AfterCheck event for TreeView control
Posted by TJ at 12/30/2004 1:19:07 PM
Hi, I registered event handler to catch the AfterCheck event... myTreeView.AfterCheck += new TreeViewEventHandler(myTreeView_....); It works fine, however, if I set the checkbox as true or false programatically(I mean..in the code, somethinglike node.Checked = true...), aftercheck event...more >>

adding buttons to a datagrid (web forms)
Posted by Phil Townsend at 12/30/2004 11:47:16 AM
I have a datagrid which is part of a web form. I need to place a button in each row to invoke a custom method (not an update, delete, cancel, etc.). I thought that a button in a datagrid item template raises the ItemCommand event. however, I can get no response from the button. The code is never...more >>

How do I scroll DataGrid to specified row index?
Posted by MrNobody at 12/30/2004 11:25:08 AM
I want to know how to scroll a DataGrid so that a specific row index will be visible to the user?...more >>

Namespace issue
Posted by Robert Warnestam at 12/30/2004 11:24:55 AM
I've two class libraries, where one is referencing the other. The first library looks like this; (assembly name and root name space is = set to Codab.Parser) namespace Codab.Parser { public class Parser {...} ... } The second library looks like this (assemble name ...more >>

Finding Next Business Day
Posted by yohaas at 12/30/2004 11:12:50 AM
I need a function that will tell me the next business day from a specific date. Other date manipulation and calcuklation would be nice, but I particularly need the business day one. For those of you familiar with Perl, something like Date::Manip would be great :) Thanks, Yohaas ...more >>

Character Casing in Combo
Posted by UmmagummA at 12/30/2004 11:05:26 AM
How to make a ComboBox to display characters only in Upper or Lower Case as you type? I was trying to override OnKeyDown and OnKeyPress but coudn't figure it out. The problem is that in OnKeyPress new key value is not writed in the Combo.Text until the event is executed. ...more >>

Update a record in SQL Database from C#.NET
Posted by Mihaly at 12/30/2004 10:23:02 AM
I want to update a record into a table in SQL Server 2000 database from C#. This table is used concurently for other users too, and I want to be sure that from the read of record to the update no other user was updated the record. Please tell me how can I do this. Thank you! ...more >>

Getting my finished SQL Reporting Services report in my c# to view it??
Posted by Trint Smith at 12/30/2004 10:21:59 AM
Ok, I have my C# app in VS.Net 2003 (this is a Winform) ready to show the SQL Reporting Services report from the app. What is my next step for showing the report from a "Show Report" button? Thanks, Trint .Net programmer trinity.smith@gmail.com *** Sent via Developersdex http://www.devel...more >>

Newbie question - redirect
Posted by MattNC at 12/30/2004 9:49:06 AM
I have a two-page web app. Page A sets a cookie. Page B reads the cookie. If the cookie exists, I want the user to be redirected away from Page B. I set tracing on Page B, and it is reading the cookie and the cookie's value, but my Response.Redirect is not working. Here is the code I have in m...more >>

Newbie trying to grok namespaces
Posted by carl.manaster NO[at]SPAM gmail.com at 12/30/2004 9:47:59 AM
Hi, I'm trying to get a feel for how to organize namespaces. I've used languages, C++ and others, that had them before, but they've never been so conspicuous as they seem to be in C# - appearing at the start of every file as they do. I could just go with one namespace for all the code I wri...more >>

Adding Items to a Listbox on a Windows form
Posted by John R. at 12/30/2004 9:17:02 AM
How do I create an item for a listbox? I want to do something like this EXCEPT for a listbox: ListViewItem item = new ListViewItem(); item.Text = column.Name; int height = item.Bounds.Height; listView1.Items.Add(item); I want to use the item's properties for something else. What's the...more >>

Asynchronous socket and thread name
Posted by Droopy Toon at 12/30/2004 8:22:05 AM
Hi, I am using asynchronous socket (BeginAccept for example). I tried to name each thread I am using but threads created by asynchronous Socket functions (like BeginAccept) creates "anonymous" threads. I named the thread (see sample code below) in Accept callback started by BeginAccept but a...more >>

Hierarchical data in a datagrid
Posted by Phil Townsend at 12/30/2004 8:22:00 AM
Does anybody know of a good, yet simple example of displaying hieracrchical data in a datagrid? Ideally, this datagrid should be similar to a treeview control, where a user can click on a plus sign and view child records. I have seen this done before but have not done it myself. There are many e...more >>

Finding the time on a remote machine
Posted by Shruti Dube at 12/30/2004 8:17:01 AM
Hello Could someone please guide me on how to write an application to access the time on a remote machine on my LAN. What I want to do is a csharp equivalent to what the command "net time\\nameof the computer" in cmd. Thank You...more >>

SendMessage API w/ strings
Posted by Tim Mulholland at 12/30/2004 7:51:01 AM
I just realized i had been posting under a managed newsgroup account that had expired. hopefully this one works better and gets me a response from Microsoft.. I have an MFC app that i'm trying to send messages to using the SendMessage API through a C# application Here is the signature and...more >>

nbtstat - getting NetBIOS name of remote machine
Posted by siddharth_jain_1 NO[at]SPAM rediffmail.com at 12/30/2004 7:50:20 AM
hello I want to write a little console application to get the NetBIOS names of a remote machine...exactly like the command nbtstat -a [IP], but in a programmatic way. I googled around quite a bit but without success. Could someone plz guide me how to go abt doing this. Thanks Siddharth...more >>

telephony components
Posted by Dante Hicks at 12/30/2004 7:21:41 AM
Does anybody know of a component available that is capable of dialing a telephone number? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>


DevelopmentNow Blog