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# > september 2006

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

c# and sql
Posted by Nathan Downes at 9/30/2006 8:06:44 PM
Hi, I am just wondering if anyone has any decent guides on working with sql server 2005 with c#? Thanks in advance....more >>


Forms and asynchronous Serial Communication
Posted by Mo at 9/30/2006 8:00:57 PM
Hi, I have an application where I read a serial port data from a barcode and set the labels on a form. I also have a textbox and button where you can enter the data and here is the problem. if I use the textbox and submit using thebutton everything works fine. If I use the SerialDataReceivedEve...more >>

C# for non-programmers
Posted by Michael A. Covington at 9/30/2006 7:44:55 PM
Can anyone recommend a book for teaching C# to people who have never programmed and who are interested mainly in text processing? ...more >>

I need help with something
Posted by Matthew at 9/30/2006 6:36:07 PM
Ok let me try to explain this as good as I can. I am creating this application where it contains a userlogin class. The user logs in before entering the main apploication. I want to do audit trails and I am trying to figure out how to get the user ID that logged in. Can anyone help me. I have...more >>

Inheriting from array of System.Diagnostics.Process[]
Posted by Gamma at 9/30/2006 3:44:32 PM
I'm trying to create a ListBox that holds list of currently running processes. So I inherited from Process a classes named _Process, which it's objects are to be held in the ListBox (I just overrode the "ToString"). Using the "GetProcesses" method, I get Process[], that I want to cast to _Proces...more >>

Error opening database
Posted by Steve Barnett at 9/30/2006 2:12:17 PM
I've developed a test application on my PC that uses the JET Engine. The connection string is very basic and is constructed as follows: connectionString = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='{0}'", modelName); On the development PC, this works fine. On a test PC,...more >>

Concatenate numerous large binary or text files into one
Posted by ffimbel NO[at]SPAM gmail.com at 9/30/2006 1:40:55 PM
Hi, I would like to find out the fastest way to concatenate large (200 or 300MB) and numerous (500 - 700) files (Postscript files) into a single one (which can ends up being several GigaB) using csharp within a windows form application. One of the requirement also is to make sure the output...more >>

Password Remembering Plugin
Posted by prayag.narula NO[at]SPAM gmail.com at 9/30/2006 7:55:34 AM
Hi there, Hey guys I am trying to develop an Intenet Explorer plugin that would save passwords and allow me to sign up for a service automatically. Now I have figured out most of the things. I am using Pavel Zolnikov's now classic method to develop the plug in using C sharp. http...more >>



CSharp problem
Posted by hkhellhkhell NO[at]SPAM hotmail.com at 9/30/2006 6:59:57 AM
i have an application that will take user input from a text box and write it to an access database. i need to make sure that if they ever enter a single line of text that it has at least 1 space for every 40 characters. so before i write the info to the database i have to make sure there is ...more >>

VS2003 net: Can it be upgraded to .net 2.0 ?
Posted by Rodo at 9/30/2006 1:11:10 AM
Hi all, We have the architect version of VS 2003 .net at work. I was looking at the info on .net 2.0 and it looks like they included a class for the serial port. Useful stuff for me. Can the 2003 version be upgraded to 2.0 ? Thanks ...more >>

Compare unicode string
Posted by Le Minh at 9/30/2006 12:00:00 AM
Hi, i write a application to search in a tree. each treenode is a unicode text. How to compare two unicode string to find extract node i want ? Regards Minh ...more >>

data options for application
Posted by gordon at 9/30/2006 12:00:00 AM
Hi I have an application that currently uses ado.net to read some files and populate a datagrid. The app allows users to search and return values based on a 'like' parameter in a select statement. The data files have always been provided to me in MSAccess format and users have Access on...more >>

wake from screen power save
Posted by Oscar at 9/29/2006 11:55:29 PM
Hi, Is there a way to to "wake" a win xp machine from screen power save using c#? I got a computer that turns off the screen after a while and i'm programming an app that reads smart cards and I want the screen to "power on" as soon as some one inserts a card to the reader. Oscar ...more >>

Delete files to recycle bin
Posted by rob at 9/29/2006 11:19:45 PM
Does C# 2005 have an easy way to delete files to the recycle bin?...more >>

formatting problem
Posted by gopal at 9/29/2006 10:47:17 PM
Hi I am trying to write to log file but the formatting of string is not properly aligned in log file result The results looks some thing like this OK move.xml Successful OK AppUser_ifrUsers.asp Successful Here i have hardcoded OK & Successfull but the file name "move.XML" and ...more >>

Windows Service and multithreading
Posted by Adynan at 9/29/2006 9:42:55 PM
Hello Friiends I am looking for ways to create a multithreaded Windows service in c# which is actually a IM Bot application. Since multiple user can access at same time, I want to create seprate thread when user open a chat Window[for instance for MSN IM]. I coudn't find any such helpful tip t...more >>

Is it possible to use .net framework 2.0 in VS2003
Posted by Tony Johansson at 9/29/2006 9:29:15 PM
Hello! I have VS2003 which use .NET framework1.1. VS2005 use .NET framework 2.0 I just wonder if it's possible to download .NET 2.0 from somewhere to use in VS2003 or is the only solution to get VS 2005 if I want to use .NET framework 2.0. //Tony ...more >>

Random Double with a given Range
Posted by Martin Pöpping at 9/29/2006 6:03:50 PM
Hello, I´ve to implement an array which sum always have to 1. In the API Documentation I´ve found Random.NextDouble(), but it always returns a value x with 0.0 <= x < 1.0. Is there a range to specify the random value a bit more? I want to do it like this: double[] myArray = new Array...more >>

how to zoom
Posted by Yoshitha at 9/29/2006 5:57:40 PM
I'm developing windows application using c#.net (vs 2003), i've placed several images (picture boxes) in panel control and i want to zoom the panel control so that the images and text which contained in the panel control has to be zoomed and i want to work on that zoomed portion like we work i...more >>

Singleton using static constructor
Posted by David Veeneman at 9/29/2006 5:43:23 PM
Why do these questions always come up on Friday afternoon? I'm starting to use GoF singleton classes in my projects. Right off the bat, I've run into a surprise. I thought that a Singleton could be implemented using a static constructor, using code like this, based on version #4 at http://w...more >>

Source Control - what files should/shouldn't be stored in source control
Posted by MarkusR at 9/29/2006 4:10:39 PM
I am currently using StarTeam for my source control. (Will eventual switch to whatever the latest Visual Source Safe is going to be called). With debug, installers, deploy and everything the project directory structure is a mess of files and directories What files should be in source contro...more >>

Find non-quoted string using RegEx
Posted by Joe at 9/29/2006 3:58:24 PM
I need to do a find/replace on a column name in DataColumn.Expression. Is there a way to do the following using RegEx? MyColumn > 10 and Desc = "This is MyColumn desc" I need to replace the MyColumn which is not in a quoted string. Thanks, Joe ...more >>

Need to generate a text file.
Posted by Jens Jensen at 9/29/2006 1:29:57 PM
Hello, I need to generate a flat text file where aeach is made up os fields and space. To automate the process, i want to define an xml file that describe the file form mate in term of <Lines> <Line1> <Field fieldlengh="" value=""></Field> <Field fieldlengh="" value=""></Field> ...more >>

Async Ado.Net Operations (Begin/End OpenConnection)
Posted by Chris Mullins at 9/29/2006 1:29:39 PM
We're building high performance database applications, and are trying to use all the new Async ADO.Net 2.0 features. The problem we're having is that we can't find a SqlConnection.BeginOpen/EndOpen method. We can execute everything using the BeginExecuteCommand, but without the BeginOpen on...more >>

Selecting Files and Folders
Posted by Christof Nordiek at 9/29/2006 1:21:11 PM
Hi, is there a way to combine the functionallity of OpenFileDialig and BrowseFolderDialog, so that user can select as well Files as Folders? ...more >>

C# name
Posted by Marco Dorantes at 9/29/2006 12:06:02 PM
I recently saw the name of this programming language depicted like: HTML: C<sup>#</sup> Is this -somehow- official? ...more >>

Visual Studio 2005 and .Net 1.1
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 9/29/2006 11:50:39 AM
Can you use VS 2005 to create a .Net 1.1 application?...more >>

Can't step into source code
Posted by Jason at 9/29/2006 11:49:56 AM
I have a 3 layer (data access, business logic and UI which is a web project) and up to now I have had full ability to step all the way down to the data access layer. For some reason now I can only step into the business logic and when I get to the data access layer I get the "There is no sourc...more >>

How to dynamically display entries made into a growing log file
Posted by Suman at 9/29/2006 11:32:30 AM
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows service which writes into a log file periodically (text file). I want to create a windows form applic...more >>

Circular dependency
Posted by nyhetsgrupper NO[at]SPAM gmail.com at 9/29/2006 11:11:12 AM
I'm trying to build a .NET application (C#) which I want to seperate into the classic UI, Business Logic and Data Access layers. I expected to seperate each layer into different projects and reference each as required, when I try to do this I run into circular referencing problems between the pr...more >>

stored procedure arguments
Posted by benscribe at 9/29/2006 10:43:01 AM
I've looked high and low for this information and haven't found it anywhere. Is there a way to pass arguments to a stored procedure being used by a selectcommand. I've seen mention of SelectCommand.Perameter.Add() but that doesn't seem work....more >>

Regex - escaping the dot
Posted by Lubomir at 9/29/2006 10:20:02 AM
Hi, I am using the following pattern: "\\b" + MySttring + "\\b" If MyString is "one", this should pick up whole words like "one". The problem is, it will pick up also the word: "one.two" How should I modify the patter to pickup only "one"? Thanks, Lubomir...more >>

Configuration Model in .Net 2.0
Posted by Hardy Wang at 9/29/2006 10:05:38 AM
Hi all, I understand, in .Net 2.0 we have little bit different model to read config file from .Net 1.1. Basically I need to use WebConfigurationManager.AppSettings to read from web.config, and ConfigurationManager.AppSettings to read from Windows Application config. Here is my questi...more >>

Accesing property name at design times
Posted by sracherla NO[at]SPAM gmail.com at 9/29/2006 8:51:39 AM
Hello Guys, Please look at the code sample below. Class Customer { private string _ID; private string _Name; public string ID { get { return _ID; } set { _ID = value; } } public string Name { get { return _Name; } set { _ID = Name; } } } void SomeFunction...more >>

How to create files and validate them using javascript
Posted by ramesh.jetsoft NO[at]SPAM gmail.com at 9/29/2006 7:16:31 AM
How to create files and validate them using javascript ...more >>

How do I Bind Data to a Datagrid in a C# Windows Application?
Posted by Steve B at 9/29/2006 7:06:03 AM
The below code works in a Web application, but does not work in a Windows application. The DataBind() command only exists for Web forms. How do I write this code for a Windows app? Can you give me the code on how to do that? this.sqlConnection1.Open(); this.dreader = this.sqlCommand3.Execut...more >>

Ensure the form is disposed
Posted by osmarjunior at 9/29/2006 5:31:25 AM
How to ensure that a form is disposed? When I work with modal forms I do the following: using (Form1 frm = new Form1()) { frm.ShowDialog(); } As far as I read, when it ends the using scope, the form is disposed. But if I don't use modal forms, like this: Form1 frm = new Form1(); frm...more >>

C++ and C#
Posted by mshetty NO[at]SPAM mail.com at 9/29/2006 4:24:29 AM
Hi, We have some common functionality that has to run with both C++ and C#. What would be the best way to design this. One of the approaches we could think of is to 1. create an exe for the common code 2. create api's in C++ and C# to invoke this exe 3. Put the api's in a library each for ...more >>

Generic Properties/Methods
Posted by Andrew Ducker at 9/29/2006 3:05:15 AM
I have a collection of classes descending from a single root class (let's call it RootClass). They all currently have a property of Logical, of type Logical. However they actually return a subclass of Logical (LogicalA, LogicalB). I'm currently casting them to the right type when I retrieve t...more >>

Export to excel.
Posted by elangovan.cse NO[at]SPAM gmail.com at 9/29/2006 1:54:04 AM
Hi all, I'm exporting a datagrid to an excel file. I'm using the following source code to export. DataTable dt = new DataTable(); DataAccess.StoredProcedure sproc = new DataAccess.StoredProcedure("sproc_getdata"); sproc.Run(dt); DataGrid1.DataSource = dt; DataGrid1.DataBind(); D...more >>

Encoding issue..
Posted by elangovan.cse NO[at]SPAM gmail.com at 9/29/2006 1:48:22 AM
Hi all, I'm exporting a datagrid to an excel file. I'm using the following source code to export DataTable dt = new DataTable(); DataAccess.StoredProcedure sproc = new DataAccess.StoredProcedure("sproc_getdata"); sproc.Run(dt); DataGrid1.DataSource = dt; DataGrid1.DataBind(); ...more >>

Collection Class contains
Posted by Jon at 9/29/2006 1:39:07 AM
Hello all. I have a collection class that holds a number of clauses. One particular type of clause has a member variable called type - this is an enum. How do I check this collection class to see if it has a clause of a particular type? I know I'll have to implement a contains (or simil...more >>

Socket recive problem
Posted by Rene Sørensen at 9/29/2006 1:16:56 AM
I'm using .NET 2.0 VS 2005 I'm creating a function that dos something similar to the. SmoApplication.EnumAvailableSqlServers() function. But for som resone I get an error or do i?. The problem is that the program just return from the function when it reach the recive part( reviced = socket.Re...more >>

No reference!!!
Posted by Arjen at 9/29/2006 12:53:24 AM
Hi, I have an arraylist. I copy the objects in this arraylist to a second arraylist. When I edit the objects in the second arraylist then the objects in the first arraylist are changed too. I don't want this!!! I tried to work with arraylist.clone() but this seems not make any differenc...more >>

Hashtable question
Posted by Macca at 9/29/2006 12:49:18 AM
Hi, I am using a hashtable as a cache. I am only allowed for the cache to take up a certain amount of memory. I think I can state how large I want the hashtable to be on creation. What I need is someway to monitor the size of the hashtable so that as it nears the maximum size I have set...more >>

CommandButton Caption
Posted by kar3n.chandra NO[at]SPAM googlemail.com at 9/29/2006 12:29:53 AM
Hey! i have a c# program opening and creating powerpoint slides and i created a commandbutton on the slide. the problem i'm having is changing the caption of the button. i've placed the code below and the only error is objValue.Caption="Values". when i run the program, the powerpoint crashes a...more >>

how to get value of XML tag attribute in C#?
Posted by Saurabh at 9/29/2006 12:08:44 AM
Hi, my xml is: <ROOT> <FILE NAME="filename">CDATA</FILE> </ROOT> this xml is argument to a function in C#. i want to get the filename in a string variable. how do i do it??? GetElementByTagname("FILE)[0].Attribute retrieves attributelist how do i get the value of attribute???? ...more >>

HTML DOM Tree
Posted by Le Minh at 9/29/2006 12:00:00 AM
I want to construct a DOM tree from the HTML source code. How can i get it ? Do you show me some source code for this. Thanks. ...more >>

Open Source HTML Parsers in C#
Posted by Le Minh at 9/29/2006 12:00:00 AM
Open Source HTML Parsers in C# Hi, Im looking for HTML parser developed in C# which i can extend according to my needs are there any?? Thanks ...more >>

Capture Shutdown events
Posted by bert at 9/29/2006 12:00:00 AM
Hello everyone, I need to capture the shutdown events. I could listen to the SystemEvents.SessionEnding Event but this only tells me if the system log offs or shuts down but not if the shutdown is a suspend or hibernate or reboot.... How can I find out what sort of shut down the system is...more >>


DevelopmentNow Blog