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 2007 > threads for monday december 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

putting the same local variable into a member variable
Posted by lianqtlit at 12/17/2007 11:49:00 PM
lets say there are 3 int ncount variable in every method private void x_method1() { int ncount = dv.length; } private void x_method2() { int ncount = drarr.length; } private void x_method3() { int ncount = dr.length; } Is it best to do this? and why? int m_ncount; priva...more >>


Enter null values from ComboBox
Posted by Andrus at 12/17/2007 11:15:46 PM
I need to enter null value from combobox to business object property. My combobox datasource does not contain ValueMember with null value. So I tried to create combobox which stores null to bound object when text is deleted. However bound object contains old value in this case. To reproduce...more >>

Best way to check if string is numeric
Posted by tshad at 12/17/2007 10:02:30 PM
I have a string field and a decimal fields and was wondering what the best way to check for numeric is? I have to do something like: If (myAmount is numeric) { total += myAmount; } Thanks, Tom ...more >>

C# classes
Posted by Bart C at 12/17/2007 6:36:05 PM
Was looking through a C# book today and come across something like this: class Circle... Circle c = x Circle d = c My understanding is: o Both c,d contain the same value x o But this is the exact same value of x o Assignment d=c would do the same o If I change part of c, then d also ...more >>

Is there a difference between datarow.length == 0 and datarow == n
Posted by lianqtlit at 12/17/2007 6:14:02 PM
Is there a difference between datarow.length == 0 and datarow == null in terms of performance?...more >>

CascadingDropdown
Posted by Cindy Lee at 12/17/2007 5:32:14 PM
I'm using the ajax control toolkit... for 2 cascading dropdown menus. The dropdowns call the webservice to get their values and everything works fine, but I want to be able to pass the end user's web browser to the app file of the web services. I want to use the global resources, but it always ...more >>

sorting on a hash table
Posted by Paul at 12/17/2007 4:59:00 PM
Hi have data in a hash table that I copy into an array list. The data is in the form name(string) number(string)-because it can have some letters in it user(string) starttime(datetime) endtime(datetime) I want to sort it by name and then starttime,could you do this from the arraylist? ...more >>

variables
Posted by RobcPettit@yahoo.co.uk at 12/17/2007 4:02:52 PM
Hi, Is it possible to declare multiple arrays of the same name. Eg if I tracking share prices and I use a array STOCKPRICE. Im adding a new tabpage for each stock I want to follow. So today I follow ony one so I use STOCKPRICE. Next day I want to follow 3 so I want to use STOCKPRICE, STOCKPRICE(...more >>



efficient / easy way to convert an Excel.Range to a double[,]
Posted by My interest at 12/17/2007 3:34:04 PM
Somewhat I remember I used to be able to do sth like the the following double[,] values = (double[,])excel_range.Value2 But it seems to be not working any more, throwing an exception "cannot convert System.Object[,] to System.Double[,]" Of course, I can do iteration and, as a bottom line, ...more >>

BindingSource / DataSet / DataTable - Event when changed
Posted by Daniel Jeffrey at 12/17/2007 3:23:30 PM
..Net 2.0 VStudio 2005 C# I know this is going to seem like a strange question, as even I am sure I have missed something - but I cant find it. I want a simple event on any of the objects (BindingSource, DataSet, DataTable) that fires when data in a bound control changes. Eg someone t...more >>

user control mouse
Posted by RobcPettit@yahoo.co.uk at 12/17/2007 3:10:18 PM
Hi Ive added a usercontrol to a form. When I hover over the control with the mouse, it shows the timer icon, but my control is just a layout and Im not actively updateting it. If I come of the control ten I have the arrow. Im assuming that the timer meens that somethings actively happening withi...more >>

XML writer in web service
Posted by E.Oosterhoorn at 12/17/2007 3:03:52 PM
Hi, I am trying to implement the following: connect to data source, run stored procedure, store data in data table. This all works fine, data table is accessed and the rows and columns are writing their data into a string. What I want to do is put XML data tags around the returned data, if I ...more >>

external event
Posted by csharpula csharp at 12/17/2007 12:43:45 PM
Hello, I would like to know how to do pooling of some external event (not via callbacks because the event won't come from c# module) in once in a while according to what user will decide? How to implement this? Thank u ! *** Sent via Developersdex http://www.developersdex.com ***...more >>

Adding a row to a DataGridView
Posted by Dom at 12/17/2007 12:23:15 PM
I'm just playing around, to confirm my mental picture of what is happening in CSharp. Looks like I got the wrong mental picture, because I thought this would work. I created a class, MyDGVR, which extends the DataGridViewRow, and just added a little functionality by adding a property called N...more >>

filewatcher question
Posted by GS at 12/17/2007 11:34:07 AM
I seem to get two file watcher changed invocation for a file change. I thought may be the cause is third party software effect the change I checked the general attributes of the files, it clearly shows the original created date and new modified date time.. I also tried notepad on the file ...more >>

search ms word documents' contents by search patterns
Posted by peter at 12/17/2007 11:08:54 AM
Hi I want to search all ms word documents' contents in a fold by search patterns, like searching 'Wind' and 'Rain' not 'Hail'. Then return all file names that meet the searching criterion. Thanks Peter ...more >>

struct containg a reference
Posted by Jason at 12/17/2007 10:35:57 AM
Hello Using c#, I've got a struct, in which I use the NEW keyword and make a reference to a class, so now I've got a struct on the stack, that contains a reference to the HEAP. Is there a way in VS2005 when I'm debugging to see what type of memory is getting used, stack versus heap? T...more >>

autoscale
Posted by RobcPettit@yahoo.co.uk at 12/17/2007 7:48:40 AM
Hi Ive created a usercontrol containing a graph and label. What setting do I use so when I maximise the window, the control auto scales also. Regards Robert...more >>

new GenericPrincipal(user.Name, roles);
Posted by DotNetNewbie at 12/17/2007 7:29:23 AM
Hi, When adding roles to the GenericPrincipal, is this a per request object or is it in session? In my global.asax.cs , which event should I be adding the roles to the GenericPrincipal?...more >>

Overriding SQLMemberShip Provider
Posted by DotNetNewbie at 12/17/2007 7:11:43 AM
Hello, Can we see all the source code for the built-in membership provider somewhere? It would make customizing it a little easier for me....more >>

Openssl and Telnet
Posted by Sharief at 12/17/2007 7:04:01 AM
Dear All, I must write a client program in C# which will communicate with a switch throught telnet. When I create a socket connection on port 22, the switch responds with some text and at the end with some unreadable characters. I found out that the operating system of the switch is redhat...more >>

Oracle Data Provider
Posted by Dom at 12/17/2007 6:48:52 AM
Someone in a post mentioned the Oracle Data Provider. Can anyone tell me about it? I'd like to know the following: 1. Is it much faster than OleDB? 2. Is it essentially the same approach, eg, new Connection, new Command, set CommandText, ExecuteDataRead(), cursor through a DataReader, a...more >>

Microsoft(r) Virtual Earth
Posted by Nikolay Podkolzin at 12/17/2007 4:47:02 AM
Good noon, community! Please help me solve my problem. I need use Microsoft(r) Virtual Earth in the my application. How can i do it? Thanks in advance! ...more >>

Adding fields/columns to DataSet
Posted by Cartoper at 12/17/2007 4:37:59 AM
I am working on my first VS2008 project and using DataSet's, which I am not super familar with. I have a user table in the data set that has a first name and last name, I would like to add a computed field/ column that is "<fname> <last name>". In .Net 3.5, what is the best way to do this? ...more >>

Desktop movement streaming to LAN
Posted by Cuong Tong at 12/17/2007 4:05:16 AM
Hi All, I'd like to start up a personal coding for fun project which performs some desktop movement recording/(then)streaming. Basically all i want to do is to have few users on LAN to be able to see what I am doing on my desktop sort of like MS Live meeting but this is for LAN. I did so...more >>

Entity factory
Posted by Andrus at 12/17/2007 2:24:39 AM
I need to create Factory() method which creates entity objects from string type names ( e.q. "Customer", "Product" ) for 3.5 WinForms Linq application. I tried code below but got error shown in comment. How to fix this code? How to create constructor from string type name and call it usin...more >>

"Private" classes
Posted by Peter K at 12/17/2007 2:23:20 AM
Hi if I am developing a "class library" which contains some classes which should be exposed to the outside world, and other classes which I really would rather have "private" to my library (helper/utility classes), how do I achieve this? Obviously public classes can just be declared "pub...more >>

double operation
Posted by IceMan at 12/17/2007 2:18:46 AM
Hello I am getting some odd answers when i use doubles in c# 0.55-0.5 = 0.050000000000000044 why am i not getting 0.05...more >>

Interop: C++ Console & C# GUI
Posted by Sheikko at 12/17/2007 1:12:15 AM
Sincerly is a little bit complicated to explain to you what I have in my mind, but I will try: Above all the problem is the type of data that I want to passe between these two applications. The complete application that I want to create consiste of two applications: - the console developped ...more >>

ADO.NET: GETCHUNK & APPENDCHUNK
Posted by AA2e72E at 12/17/2007 12:50:03 AM
ADO has GetChunk & AppendChunk, features that are not supported by ADO.NET. Is there a workaround in ADO.NET? I am trying to write large files to LOB fields in a database table....more >>


DevelopmentNow Blog