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# > february 2007 > threads for thursday february 15

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

Defaultvalue
Posted by RedLars at 2/15/2007 11:55:44 PM
This code set an employee's salary to =A320,000 by default. I'd like to set this at runtime, i.e. let the variable _recommendSalary be the default value. public class Employee { private string _Name =3D ""; private int age =3D 0; private string _Position =3D ""; private str...more >>


Frames vs Table layout
Posted by Jeff User at 2/15/2007 10:48:13 PM
Hi all I am writing program/framework to server a web site dynamically based on stored web page data with C#, .net1.1 What is the preferred means of controlling page layout, frames or table(s) ? Benefits or problems related to using one or the other ? Thanks Jeff...more >>

for loop only runs when theres a breakpoint in it
Posted by fletch at 2/15/2007 9:48:26 PM
I'm trying to write a little sudoku game. When i try to set a board i use a for loop. Here it is for (int c = 0; c < 6; c++) { Random rand = new Random(); int x = rand.Next(0, 9); int y = rand.Next(0, 9); int r = rand.Next(1, 9...more >>

for loop only runs when theres a breakpoint in it
Posted by fletch at 2/15/2007 9:48:22 PM
I'm trying to write a little sudoku game. When i try to set a board i use a for loop. Here it is for (int c = 0; c < 6; c++) { Random rand = new Random(); int x = rand.Next(0, 9); int y = rand.Next(0, 9); int r = rand.Next(1, 9...more >>

Autocomplete with big lookup table
Posted by Andrus at 2/15/2007 9:48:02 PM
I'm creating a database Winforms application using VCS Express 2005 I have some large lookup tables (may be up to 500000 records) which contains name and id and are stored in sql server. I need to create single line combobox style control which: 1. Allows to type first characters in name ...more >>

MemberAttributes for CodeConstructor
Posted by kishore at 2/15/2007 9:34:29 PM
hi I am trying to dynamically generate a static constructor using CodeDOM. However even though i set the MemberAttributes to static, it generates a constructor with no attributes. not sure how to do. Any help please. Here is my code CodeConstructor staticConstructor = new...more >>

Help me how to start new programmer
Posted by hohsen NO[at]SPAM hotmail.com at 2/15/2007 9:22:00 PM
C# Solution Explorer Tips & Tricks Everything cannot how to work from C# Recent Projects(all cannot to write/read). HELP ME! How to get for C# Recent Projects working!!?? Cannot how to work new project but the name is only from Recent Project How can to start C# Recent Project from Start Pag...more >>

string[] strVarArr = strVar.Split('x'); - Empty character literal error
Posted by gvanosdol NO[at]SPAM gmail.com at 2/15/2007 8:45:22 PM
When on my development machine, I can execute the code in the subject (string[] strVarArr = strVar.Split('x');) without any problems. When I try to move the code to my server, I get "CS1011: Empty character literal." I thought perhaps it was a font issue, but I verified that the font is avail...more >>



how to draw columns ?
Posted by --== Alain ==-- at 2/15/2007 8:15:55 PM
Hi, I'm developing a custom control, which has "rows" and "columns" collections properties. when i add/remove columns/rows, i want to redraw my control. Each column should be redrawn with their relative background color. this is for the principle... My problem is how to code it :-( I...more >>

Async main-thread method execution
Posted by Tomaz Koritnik at 2/15/2007 4:06:43 PM
Is it possible to asynchronously call a method from worker thread so that this method would execute in main-thread? I'm doing some work in worker thread and would like to report progress to main thread to update some controls. But I'd like to do that asynchronously so that worker thread would ...more >>

Databinding with Nested Properties
Posted by Brian Pelton at 2/15/2007 3:20:06 PM
I am trying to bind a textbox to the property of a property. This code works when nested property is not null, but it fails when nested is null. (It fails when SiteLine.Site is null.) The error is ArgumentNullException: component. I setup the binding in the constructor of my Form. ...more >>

Singleton on server
Posted by oleggus NO[at]SPAM gmail.com at 2/15/2007 2:58:35 PM
I hope, I misunderstood some basics here and it is easy to solve.. I need a singleton object running on server which can be used(write and read) by different client interfaces - for example there is webservice that simply transfer calls to this object and there is a COM Interop, that does the s...more >>

How to pass login credencials to DirectoryEntry object
Posted by killbill at 2/15/2007 2:36:55 PM
Hi All, I am working with Active Directory using DirectoryServices libraries. When i create DirectoryEntry object, i pass username and password as parameters. But i am trying to do it without passing username and password. How i can use the credencials of the user currently logged in user on wi...more >>

Radiobutton logic ? How to implement auto unchecking others in panel
Posted by Sagaert Johan at 2/15/2007 2:35:40 PM
Hi I am creating a custom control and i want it to behave like a radiobutton : If multiple radiobuttons are on a panel clicking one unchecks the others. How is this achieved ? I want to do the same with my own control when i put multple of them on a panel or groupbox. Johan ...more >>

Fields in Interfaces, Indexer
Posted by hufaunder NO[at]SPAM yahoo.com at 2/15/2007 2:09:08 PM
SITUATION: I have a class "MainClass" that has an indexer "SubClass1Indexer". This indexer returns an instance that implements a particular interface "ISubClass1". This interface defines another indexer "SubClass2Indexer". Bellow is some code with comments. It should compile. PROBLEM: I wou...more >>

DataGridView
Posted by Chris at 2/15/2007 1:37:11 PM
I have a datagridview bound to a tableadapter/binding etc. I would liek to add an unbound column and bind it to another binding control. is that possible?...more >>

datagrid and checkbox and confirm dialog
Posted by mamun at 2/15/2007 1:32:13 PM
Hi All, I have the following situation and am looking for answer in C#. I have a datagrid and putting checkbox next to each record. In the header I have a Delete button. I want users to checkchekboxes and click the Delete button. That will show a confirmation dialog message with the items...more >>

boundfield max chars?
Posted by Dave at 2/15/2007 12:31:17 PM
I a details view on a aspx page connected to a database that allows editing. When someone types more than the 20 chars allotted in the database, and submits the form, the page crashes. Is there a way in the details view to only allow x number of characters to be enter?...more >>

Help with strong naming .net dlls
Posted by fahd at 2/15/2007 12:28:39 PM
Hi, I am trying to use a particular dll bought from a company that has a strong name. As a consequence had to give a strong name to all the dlls involved in the project. Im also using the following microsoft application block dlls Microsoft.Practices.EnterpriseLibrary.Caching.dll Microsoft...more >>

Size from two Point variables
Posted by Dan Reber at 2/15/2007 12:20:21 PM
I have to Point variables that are being set on MouseDown and MouseUp events -- mousedownPoint = new Point(e.X, e.Y); mouseupPoint = new Point(e.X, e.Y); Is there a way that I can take those two points and get a Height and Width value from it to use for a Size variable? I have tried many...more >>

Serialization Problem - Please Help!
Posted by Gonza at 2/15/2007 11:41:25 AM
Hi group, i'm getting the following excepction while trying to serialize a class: Types 'NYC.TrueFinance.BusinessEntities.ExtendedBaseEntityTypeData.EntityTypes' and 'NYC.TrueFinance.BusinessEntities.BaseEntityTypeData.EntityTypes' both use the XML type name, 'EntityTypes', from namespace ''....more >>

socket connection open for a long time
Posted by Jay at 2/15/2007 10:40:24 AM
I have a client app sending messages over the socket on a certain port. In the client app: I do this for every message I need to send: 1. Create a socket and connect. 2. Send message 3. Close socket. The Listener requires that the client keep the socket connected while sending messages..whi...more >>

Simplest way to calculate the number of business days left in the month?
Posted by sherifffruitfly at 2/15/2007 10:25:24 AM
Hi all, The easiest thing I can see is to use this little class: http://www.codeproject.com/csharp/busdatescalculation.asp And read holidays from a text file into a Hashtable. Example of the functionality I need: DateTime iHateValDay = DateTime.Parse("14 Feb 2007"); int daysRemaini...more >>

HTTP implementatin bug?
Posted by Morgan Cheng at 2/15/2007 10:05:45 AM
If a web server HTTP response is in chunked encoding, CLR client invocation on HttpWebResponse.Close will not return until the whole page is downloaded. If the page is huge, it looks the thread is stuck in HttpWebResponse.Close. An example URL is http://wx.msn.com. This might be a bug for CLR....more >>

Dynamics Array adding an object
Posted by Larry at 2/15/2007 9:59:51 AM
thanks in advance.. if I have an array of objects, without using the array list., how do i add an additional element to the array dynamically while preserving the current contents of the array? anyone have any code samples?? *** Sent via Developersdex http://www.developersdex.com ***...more >>

array size. out of memory exception.
Posted by Joel at 2/15/2007 9:17:51 AM
I'm sorry if this question has been asked before, but is it possible to define a 2 D array of type double with dimensions of the order 65536 x 65536 ? I'm working on a face recognition algorithm called PCA (Principal component analysis), and at an intermediate stage, I need to work with arrays ...more >>

Progress bar!
Posted by DBC User at 2/15/2007 8:10:49 AM
I would like to add a progress bar to a datagridview column. Could someone tell me how can I do that? THanks. ...more >>

Selecting particular sound card
Posted by JVD at 2/15/2007 7:23:28 AM
In my system, i have two sound card installed. I am developing one multimedia application in c# using DirectShow. I want to select particular sound card and play one audio file and, play another audio file in other sound card. i tried adding some audio filter (as suggested in web) but sinc...more >>

C Sharp and cgi
Posted by oandcenterprises NO[at]SPAM gmail.com at 2/15/2007 6:39:00 AM
I have a cgi script that is on a unix server. The cgi script runs some code then it prints two lines of data that I need. The c# program needs to be able to run the cgi program and get the two lines of data that it printed. ...more >>

Adding icons to a dll
Posted by TEK at 2/15/2007 6:32:58 AM
Hello I want to add several icons to my dll, so that it can be used by windows to indicate icons for my known filetypes. I'm using VS2005, but I cannot seem to find out how to do this. I can get one single visible icon by setting the application icon, but that does not do it. I need to set ...more >>

Control Event Monitoring
Posted by jordan.yaker NO[at]SPAM sbcglobal.net at 2/15/2007 6:30:36 AM
I am in the process of creating a C# automation application that will work off of notifications in other applications. I want to be able to monitor the WM_NOTIFY event for various controls and then take the corresponding actions (simple automation stuff). I started out working on this by atte...more >>

how to split region data?
Posted by Kristopher Wragg at 2/15/2007 4:49:31 AM
Hi, I'm currently working on an application for my dissertation for my final year at University. I'm having a little trouble with the System.Drawing.Region class. The application is being designed to help create and study the use of Euler/Venn diagrams, the user can draw various shapes wh...more >>

Closing another form's "X" (close) button
Posted by mfleet1973 NO[at]SPAM yahoo.ca at 2/15/2007 4:40:11 AM
Hi. Visual Studio 2003. Is there a way to disable another application's form's close button that is on the taskbar? Cheers. Mike. ...more >>

Restrict files on Local or Network PCS
Posted by dion.naidoo NO[at]SPAM za.wdsglobal.com at 2/15/2007 3:57:37 AM
Hi ,is there any way one can restrict users to copy files with extensions that we dont want on our networks or local pcs. Users are local administrators of their pcs. PS. If this is not possible using GPO etc, is there an external software that would work for this case. Please advise as we are...more >>

Equation parser - where did I see it?
Posted by trashman.horlicks NO[at]SPAM btinternet.com at 2/15/2007 2:03:43 AM
Hi, A few months ago, I saw an equation parser, written in c#, and using regular expressions (I think!), but now I cannot recall where I saw it- if anyone saw anything like this, could they please post the url? >From memory, the parser not only dealt with operator precedence, but also the use ...more >>

adding countries in a combobox or listview
Posted by Hans - DiaGraphIT - at 2/15/2007 2:03:20 AM
Hi! It's me again with my silly questions. Does .Net framework 1.1 hold any list of all the countries in the world/region? I'm deveolping a windowsform and I need to list all available countries in a combox or listview in the specific language. I rather don't want to add all countr...more >>

Databases Web Front End
Posted by ba.hons at 2/15/2007 1:46:05 AM
Hello all, not sure this is the best place for this questions but this forum always seems to provide good answers so i thought i would try anyway. I have to build a system that will be thin client with back end server database BUT i will also have a central server database where all transac...more >>

Windows scheduling
Posted by Alan T at 2/15/2007 12:00:00 AM
I would like to write a desktop application to create a windows job, say to run an myApp.exe at 9pm everyday. Any API or other function I can call? ...more >>

How to write in C# to check FTP connect or not?
Posted by ABC at 2/15/2007 12:00:00 AM
How to write in C# to check FTP connect or not? ...more >>

C# CrystalReport XI query engine error
Posted by Jason Huang at 2/15/2007 12:00:00 AM
Hi, In my computer, I have the built in Crystal Report for VS on my Visual Studio .Net 2003, but this version of Crystal Report doesn't meet my need. So I have installed a new Crystal Report XI on my VS2003 without removing the built in Crystal Report for VS. When I tried to open a report w...more >>


DevelopmentNow Blog