Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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# > january 2006 > threads for tuesday january 31

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

Object Test Bench
Posted by A.M-SG at 1/31/2006 11:12:06 PM
Hi, My solution consists of 20 c# projects. When I switch to class view and right click on any class, I don't have the create instance option. I am using visual studio 2005 professional edition. If I create a simple winform application, the create instance option in class view. ...more >>


Use of extended data grid
Posted by piyushgoswami NO[at]SPAM gmail.com at 1/31/2006 10:01:47 PM
Hello All, I am using extended data grid (from Leadit) in my C# winforms application. I have written some serial numbers on the rwo header of the extended data grid. Problem is when I scroll the horizontal scrolbar, the row headers do not stay still and the row header column does not freeze a...more >>

Type based dispatch
Posted by Scott Graham at 1/31/2006 8:33:00 PM
Hi, In the following code, is there any way to get rid of the method marked below (that has signature static void Func(Base o))? It seems that the language should be able to dispatch to the correct function for me based on the actual type of the object, but I can't figure out how to write tha...more >>

how to set the value in html select control
Posted by Mohammed Shafiulla Khadri at 1/31/2006 7:19:47 PM
hi, I have the following piece of html code in a page <table width="90%" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="26%">&nbsp;&nbsp;&nbsp;day</td> <td width="40%">month</td> <td width="34%">year</td> </tr> <tr> <td align="left"> <select ...more >>

printing directly in the lpt1
Posted by Alexandre at 1/31/2006 7:02:00 PM
Does anybody know as printing directly in the lpt1? Tks ...more >>

DateTimePicker
Posted by nbohana at 1/31/2006 6:50:28 PM
How can I use DateTimePicker to select the time? -- Norm Bohana...more >>

Create string of repeated char
Posted by Erick Sasse at 1/31/2006 5:08:37 PM
This is not really a C# question, but I'm not sure which is the best group to post it. Please, point me to the right one. What's the best way to create a string from a repeated char? For instance, I pass char = "*" and size = 5, and get a string = "*****". I could write a function to loop si...more >>

Display date in EST/EDT from an Arizona server
Posted by Max at 1/31/2006 4:06:35 PM
I need to display time as Eastern Time. The problem I'm having is that our server is in Arizona where there is no Daylight Savings time. That means half the year I need to add 2 hours to the time and other other half I need to add 3 hours. I was trying to use IsDaylightSavingTime by passing ...more >>



Read variable from file and re-create with correct type
Posted by Mark Ingram at 1/31/2006 3:59:24 PM
Hi, if in a file i have the following: <variable type="String">Hello World</variable> <variable type="Int32">29</variable> How can i create these variables in my application? (Ignore the reading of the text in, that part is easy). I guess it would be easy enough by doing a giant "if" sta...more >>

Member variables style questions
Posted by Richard Lewis Haggard at 1/31/2006 3:54:13 PM
What is the logic for dropping the C++ prepending of 'm_' from member variables? Has there been a consensus developed on how to discriminate between class members and automatic temp variables? -- Richard Lewis Haggard ...more >>

Setting app wide icon?
Posted by Brett Romero at 1/31/2006 3:27:10 PM
I'd like to use the same icon for my project's EXE file and forms. The icon may change so I need a way to put the icon file name in a variable and assign it to the icon propery of all forms. When assigned at design time, the following code is generated: this.Icon = ((System.Drawing.Icon)(res...more >>

Securing a .NET application
Posted by Mark Ingram at 1/31/2006 2:57:05 PM
Hi, what steps do i need to take to make our application as secure as possible? At some point over the coming months it will be released to the public and we want to make sure that our competitors cant get access to our source code. I know about creating strong key names, but that doesnt st...more >>

using 'new'. Do I have this right?
Posted by relient at 1/31/2006 2:28:34 PM
Putting Polymorphism aside. In a situation where a non-virtual method in a base class is hiden in a derived class by declaring a method with the same signature as in the base, you only have the option of using the 'new' keyword but not the override keyword. Correct? That said, explicitly marking...more >>

snmp in c#
Posted by Deleo at 1/31/2006 2:13:56 PM
Hello im writing a program that need to use snmp to communicate with other devices. Im having trouble finding any snmp support in .NET for c#, can anyone please point a direction to where i might find it or give me a little code piece? ...more >>

What is the point of IDisposable?
Posted by CMirandaman at 1/31/2006 2:12:29 PM
Perhaps someone can help me understand this. I'm trying to understand what the IDisposable interface actually does because as far as I can tell it seems to be just garnish on the plate. If I create a Dispose method to clean up resources I have to either call it explicitly or call it in the...more >>

c# plugin framework
Posted by Weston Weems at 1/31/2006 1:39:08 PM
Hello, I've searched before I bothered asking... I'm looking for an example of a plugin framework for a c# application etc. I understand the basic concept of it, and have an idea of how I'd do it (with interfaces and such) What I think I want is the second of the two examples by Roy Oshe...more >>

Object factory and interface class
Posted by guhar1 NO[at]SPAM yahoo.com at 1/31/2006 12:42:14 PM
A few design issues: 1. If I decide to implement an interface between my "business object layer" and my "data access layer", so as to protect the BOL from changes in DAL, do I provide ONE interface class containing all the other required interface, or do I expose several separate interface to t...more >>

data binding a simple value
Posted by sham at 1/31/2006 12:01:56 PM
Hi to all, I have an object that has a property numberOfFilesDeleted which is an integer. I want to bind a label to it so that when the value changes, the label gets updated on the screen. I have used the following code to bind the text property of the label to the object property. ...more >>

string concatenation....
Posted by Prabhu Dev at 1/31/2006 11:26:35 AM
Hi, I am a newbee to C# and i have a very simple problem. Basically I have a string "servername\userid". I just want to get the userid part. Don't know how. C# Gurus, can you show me a simple solution. ...more >>

Does NAnt support .NET 2.0 final?
Posted by Brett Romero at 1/31/2006 11:15:27 AM
>From here http://nant.sourceforge.net/, it seems to only support 2.0 beta 2. Can some one confirm if the 2.0 final is supported or what effects building with NAnt .85 C3 will have on 2.0 final? Thanks, Brett ...more >>

best way to read specific record from Excel file in C#
Posted by Esmail Bonakarian at 1/31/2006 10:31:44 AM
Greetings all, What is the best way to access specific records in an Excel file? I have an Excel file, I want to randomly and repeatedly (maybe around up to 50 times) draw some rows of data from this Excel file and store them in a struct/class for further processing. (mostly just display the...more >>

Defining a non-integral enum
Posted by Sadeq at 1/31/2006 10:18:14 AM
Enums are useful when we want to constrain the user to choose from a specified number of predifined valuse. But they only accept integral types as their underlying type. I encountered a case in which I have to constrain the use to choose from a specified number of predifined int arrays. For ex...more >>

Custom Combo Box re-draw problem
Posted by Duncan Barnes-Ceeney at 1/31/2006 9:19:53 AM
I’m having problems with a custom Combo box. The main problem is that I want to modify the look of the combo which includes the size of the button. To do this I have inherited from the standard combo set it as a UserPaint and provided my own paint. This along with the standard Owner Draw ...more >>

Hungarian notation pros vs cons
Posted by Ronald S. Cook at 1/31/2006 8:52:02 AM
An ongoing philosophical argument, I would like your opinions. With the release of .NET, Microsoft spoke of moving away from the notation as a best practice. I'm a believer for a few reasons: 1) Consistency throughout and knowing which objects are yours (clsEmployee, tblEmployee, frm...more >>

Inheritance, Specialization, and Factory Classes
Posted by anonymous.user0 NO[at]SPAM gmail.com at 1/31/2006 8:51:41 AM
Using the dotnet v1.1 framework (so no generics possible). I'd like to create a bunch of Factory classes that all inherit from a single abstract base Factory class. Each Factory is responsible for the creation of objects of a type that inherit from a base class. Factory is probably the wrong ...more >>

Generics + collections
Posted by Chris S. at 1/31/2006 7:15:35 AM
Am I correct in thinking that C#/.NET 2.0 removes the need for a collection for each business object you have, and allows you to create just one collection? Or is this just the equivalent of using Object for your collection? ...more >>

NetWork Stream problem.. i gave up :(
Posted by mulham.haffar NO[at]SPAM gmail.com at 1/31/2006 6:41:14 AM
hi guys... im writing a client/server application that uses tcpclient/tcplistener to do the comunications... i defined a tcpclient object called "client" and a networkStream called "stream".. stream = client.GetStream() and the problem is: every two send actio...more >>

Change your country or language.
Posted by Change your country or language. at 1/31/2006 6:26:21 AM
Change your country or language. --- Posted via www.DotNetSlackers.com...more >>

Ping application B from A ?
Posted by GTi at 1/31/2006 5:09:26 AM
I have two .NET 2 applications. Application A need to check if application B is alive. How can I do this? In Win32 I just use PostMessage to B and it posted a message back to A (no hang) But I don't want to use pInvoke. Any other way to send a bit between two application? ...more >>

nothing is returning from remote application.... socket problem
Posted by Khadim at 1/31/2006 3:03:04 AM
I am using the following code, don't know what am i missing. in BYTE2 I am not getting any information from the remote application. any guidance would be highly appreciated, thanking you in advance // PatentRequestPaket is a structure defined above in the class //public struct PatentRequestPac...more >>

Serial Presence Detect Information
Posted by foolsbar at 1/31/2006 2:48:35 AM
Hi there, I'm trying to write a C# application that gets information from a machine such as operating system, memory, cpu etc. I'm using WMI for this, and it all seems to work fine apart from the fact that Win32_PhysicalMemory doesn't have any instances. I have therefore come to the conclusio...more >>

How to create a structural diagram in Visio proffessional from C#
Posted by Hans at 1/31/2006 2:25:15 AM
In developer studio 2003, I created a solution containing a C# windows app. I want to re-engeneer the app using Visio Professional 2003. How can I make visio create the structural diagram??? Hans....more >>

Regarding Auto hide feature for panel
Posted by Aravind at 1/31/2006 2:20:27 AM
Can anyone suggest me how to design auto hide feature for a panel control. I have a few controls in a panel. I want to auto hide them when user is not working with them. Thank you for you help in advance. Aravind....more >>

How to i add scroll bars to a bitmap image
Posted by makdtripper NO[at]SPAM gmail.com at 1/31/2006 2:11:51 AM
I create a bitmap image. I can draw and save it successfulyl...i need to know how to resize the bitmap when i add more and more drawings...or how to add scroll bars to a large created bitmap. My basic problem is to add scroll bars to a bitmap. ...more >>

Which interface(s) do I need to iterate over objects
Posted by Jeff User at 1/31/2006 1:50:57 AM
Hi I want to create a rather simple object with a few string attributes to hold some database user information such as: public class UserInfo { //Basic user information for each user associated with a database. private string sDbName; private string sUserName; .... other ...more >>

Looping through enums
Posted by Wolf at 1/31/2006 1:19:30 AM
Hi all Who can Help me with this one? if I have this Enums: #region Title public enum Title: short { NA = 0, Mr = 2, Adv = 3, Brig = 4, Dr = 5, Genl = 6, Prof = 7, Miss = 8, Mrs = 9, Adm = 10, Rev = 11, Ms = 12, } Now I want to...more >>

Read Keyboard status
Posted by [Yosi] at 1/31/2006 12:20:28 AM
Hi, I want to read the NumLock status , how can I do that ? ...more >>

Adding a Radio Button to a dataGrid column
Posted by Gidi at 1/31/2006 12:07:27 AM
Hi, I know that it's possible to add checkbox column to dataGrid, but is it possible to add a radioButton column? if not, what's the best way to make the checkbox column to act as a radioButton column (meaning, i want to allow the user to check only one row as "true"). Thanks, Gidi....more >>

Timer Problem with Service
Posted by Kevin Antel at 1/31/2006 12:00:00 AM
We have written a service that uses a timer control to check for a process every 60 seconds. This is installed on a Windows 2003 Server w/SP1. The problem we are running into is that the service doesn't stop, but it seems the timer process stops. Has anyone else run into this? What have ...more >>

Webservice, hashtable?
Posted by Peter Kirk at 1/31/2006 12:00:00 AM
Hi I am trying to write a web service. This web service is a "generic webservice" for our solution - that is, it should be able to return different data depending on who calls it. For example, we have 5 possible data items: name, address, company, creation_date, telephone (in reality th...more >>

Exceptions on random
Posted by Vivek at 1/31/2006 12:00:00 AM
Hello, I developed a small application in C# with VS2005Express. It uses the FolderBrowserDialog of Windows.Forms to open this dialog box twice, for the origin and destination of files. It works well but as 2005Ex uses .net 2.0,I remade the project for 1.1 with sharpdevelop and compiled. At t...more >>

method should return DateTime but I want it to return null
Posted by Daves at 1/31/2006 12:00:00 AM
a get { ... } for public property SelectedValue returns DateTime type to be used as a parameter in a Sql update query but I'd like it to return "empty" if no date has been selected... I cannot use return null; because "Cannot convert null to 'System.DateTime' because it is a value type"...more >>

Correct way of reading another application's configuration file
Posted by Mark Ingram at 1/31/2006 12:00:00 AM
Hi, whats the correct way of opening up a different applications configuration file? i.e. i want to open someotherapp.exe.config and read the settings contained in "applicationSettings". Ive done the following code, but i dont if its the correct method (doesnt take any form of security i...more >>

Windows application manipulation word document
Posted by Mats-Lennart Hansson at 1/31/2006 12:00:00 AM
Hi, I want to create a windows application that takes a .dot file containing one page, multiplies that page and the saves it to disk as a .doc file. That is, I want the new document to contain a for example 5 pages that all looks the same. I've managed to open a .dot file and save it as a ...more >>


DevelopmentNow Blog