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 2005

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

set a DateTime to NULL
Posted by Paulb1us NO[at]SPAM newsgroup.nospam at 1/31/2005 10:05:03 PM
I want to set a DateTime field to Null before passing it to the DB //First I check to see if anything is in this datarow column, because sometimes we have no data. DateTime dt; if ( datarow["date"].ToString().Length > 0) { //We assume the data is a date dt = (DateTime)datarow["date"]; } ...more >>

Any free/trial s/w for measuring .Net performance
Posted by James dean at 1/31/2005 10:04:40 PM
I am comparing performance of my own application with another microsoft product. Is there first of all any s/w that could measure the performance of a running application like Ms publisher.....would be great if their was. I would at least like s/w to measure the performance of my own C# applicat...more >>

C# and recording microphone data with winmm.dll
Posted by sirusdv NO[at]SPAM gmail.com at 1/31/2005 9:50:13 PM
Has anyone been able to record microphone data via C# in any way? I know there is a way with winmm.dll but I have not been able to manage the whole process yet. Any code would be GREATLY appreciated! ...more >>

e.Handled = true; Not working?!?
Posted by Uchiha Jax at 1/31/2005 9:31:14 PM
I have created a custom textbox which contains an arraylist of permitted chars. Any chars that are not in the list are not permitted. One of the events looks like this and is attached to either this.KeyUp or this.KeyDown: private void TextBoxEx_KeyAction(object sender, KeyEventArgs e) { ...more >>

Handling File Delete Events
Posted by Bhavtosh at 1/31/2005 9:23:02 PM
hi im trying to write an app in C# which catches file delete event and keeps a copy of deleted file to a location before windows sends the file to the Recycle Bin. Im not able to do this wehn i delete an outlook message. any help on this issue wud of help. -- thanx.. Bhavtosh...more >>

How to change System time?
Posted by Srinivas Kollipara at 1/31/2005 8:31:08 PM
Hello all, i have a problem to change system time programatically in C#. Can Any one help me with that. thanks -- Srinivas L.Kollipara ...more >>

TCP broadcasting/Multicasting.. with C#
Posted by Naveen Mukkelli at 1/31/2005 8:29:01 PM
Hi, I'm writing a server application which uses TCP sockets. In real time, there would be about 4000 clients connect to this server app. I need to broadcast a packet regularly to make sure all clients have up to date info. Can anyone suggest me how to broadcast a packet to all o...more >>

c# Error when trying to send email
Posted by Devhead at 1/31/2005 7:36:04 PM
i need to present user with an Outlook mail item. the following code is a modication to the code found here(http://support.microsoft.com/?kbid=819398). However, when the line is question is run(Outlook.MailItemClass mItem = (Outlook.MailItemClass)oDoc.MailEnvelope.Item;), it generated an exc...more >>



Loosing Information of Parent in XmlNode
Posted by Saurabh Sharma at 1/31/2005 7:21:20 PM
Hi When i select a node by "node.Selectnodes("*/ABC")" the nodes dont have ne details abt the parent. Can some one plz tell me why its is not storing the parent details. after selecting i need to delete the nodes so i need the parent details Regards Saurabh ...more >>

access a control in another form
Posted by authorking at 1/31/2005 6:48:19 PM
How to access a control in another form and how to make a form become a MDI container. ...more >>

Standard Input/Output Locking Up
Posted by _ at 1/31/2005 6:02:26 PM
Since the .NET framework 1.1 does not come with any built-in file/stream compression methods, I've had to come up with my own solution--which is not much of a solution because it doesn't work for all cases. I don't know why. It'll work for short input strings, but the problem is when I try and...more >>

Events between MMC snapin and Window service
Posted by Julia at 1/31/2005 6:00:38 PM
My service send email messages and log all information to a log file I wonder if it's common to raise events from the service(the remote object which hosted inside the service) to my MMC snapin, so user will be able to see (roughly) what the service is doing I am thinking about something si...more >>

Problem of selecting nodes in Xml
Posted by Saurabh Sharma at 1/31/2005 5:55:32 PM
Hi, I am using Dom Parsing in Xml. I am the parent node and it has many children and each children has many children. I want to select children with a given name . Is there any method by which we select them with not going to each child node .. something like node.selectnodes (* +...more >>

can't clear clipboard
Posted by zbcong at 1/31/2005 5:38:53 PM
hello in my program,i have following method,it copy a jpg file to clipboard,and works well: Private Sub CopyImage() Dim file As System.IO.Stream = Me.GetType().Assembly.GetManifestResourceStream("ProductCatalog.Nwind.jpg") Clipboard.SetDataObject(System.Drawing.Image.Fr...more >>

Getting data from an XML serialised class .
Posted by Bredahl jensen at 1/31/2005 5:15:32 PM
Hello, I'm calling a web method of an xml web service. The method returns a class that is serialized according to an xml schema definition. The xml schema is very extensive an has several level of nodes (child nodes). My question is: How can i best read data from the class that the web ...more >>

How to add new word in Microsoft word dictionary using Word Object.
Posted by Sakharam Phapale at 1/31/2005 4:27:33 PM
Hi All, I am working on Text editor. We are using Microsoft Word object for Spelling checking and correcting. Now I want to add new word in Word dictionary using Word object. Can anyone guide me how to achieve my goal. Any suggestions will be appreciated. Thanks and Regards. Sakharam ...more >>

Should a window service use its own evenl log?
Posted by Julia at 1/31/2005 3:43:13 PM
Hi, I am writing a window service and I wonder should I use my own event log or should I use one of the predefined event logs? Thanks in advance ...more >>

Getting column header text
Posted by objectref at 1/31/2005 3:27:36 PM
Hi to all, i populate a ListView with data from a datareader and i just want to know the column name of the cell that the user clicks on. E.x., if the user clicks on the 2nd column, 3rd row in the ListView, i want to get the string that the column header displays. How i can do that ? ...more >>

c# Screensaver
Posted by Simon Mercer at 1/31/2005 3:08:16 PM
I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I have managed to get a simple data access screensaver to work, however, i can't get the application to work with some prebuilt assemblies i have. Also, ...more >>

Type versus Class
Posted by Mark at 1/31/2005 2:50:01 PM
I always use the word "class" to describe a class that can be instantiated. However, I don't get the concept of "Type" or at least I don't know how to use the word properly. If I have a class called Person, what is its "Type" and how does it relate to the class? Thanks in advance. mark ...more >>

Display order.....
Posted by Paul Aspinall at 1/31/2005 2:47:26 PM
This is probably a simple one to answer, but I can't seem to find it.... When in VS designer, I have some components in a panel, which is docked to FILL..... Sometimes when I drop a component on the form, it ends up 'behind' the panel, and therefore can't be seen, despite it existing.... ...more >>

bitmap
Posted by Hrvoje Voda at 1/31/2005 2:33:46 PM
What is wrong with this code ? I get message "Attachment.bmp". Bitmap bm = Bitmap.FromFile(@"..\..\Attachment.bmp") as Bitmap; //use the color from 0,0 as tranparent //uncomment this line to make the blue transparent bm.MakeTransparent(bm.GetPixel(0,0)); imageList.Images.Add(bm...more >>

DEBUG doesn't work!
Posted by TX_COX at 1/31/2005 2:27:04 PM
Hello, I need help as soon as possible. I have installed Visual .NET 2003 Professional on Windows XP O/S in my classroom. I cannot DEBUG using a an account that does not have ADMINISTRATOR rights. Error message "access denied" occurs. The account is in the DEBUGGER USERS group, but it...more >>

Looking for Internet Componets : anything comparable to IP Works ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 1/31/2005 2:21:32 PM
Looking for Internet Componets : anything comparable to IP Works? Hi, I need a suite of components that provided me with SMPT, POP3, NNTP, Telnet and Ping protocols. I have been looking and found "IP works" actuallly works very well, just it is a bit pricey ($400.00). Indy seems to wor...more >>

Insert statement error
Posted by bardo at 1/31/2005 2:07:05 PM
Hello all, I have the following problem that I can't seem to solve. I have a database with 6 different tables. when I update the tables I have no problems expect with 1 table. I get a "the instruction Insert contains a syntax error" (I translated this to english cause I get the error mes...more >>

Rubberband
Posted by Mas Fabien at 1/31/2005 1:48:02 PM
Hi, I want to manage a rubberband For that, I use the "controlPaint" class. No problem to draw my rectangle, I use "DrawReversibleFrame()" No problem to draw my selection, I use "DrawSelectionFrame()" No problem to draw my hands, I use "DrawGrabHandle()" But after, I don't know how to do to er...more >>

Intercepting the Enter key
Posted by Steve Murphy at 1/31/2005 1:45:16 PM
I have a default button on a form, but when a certain textbox has focus, I want to intercept Enter key events and perform a different action. Is there an easy way to do this, or should I just check the textbox's focus in the default button's event handler? Thanks in advance, Steve Murphy ...more >>

Dataset question
Posted by Keith Smith at 1/31/2005 1:30:41 PM
For authentication purposes I query my Access database using a Username and Password. If the dataset turns up empty then the user does not have access. If it shows up with a value in the dataset then the user is authenticated. The problem I am having is that when I count the number of entrie...more >>

writing spyware software
Posted by freddy at 1/31/2005 1:17:02 PM
I would like to know how to write a spyware program....more >>

When to open a database connection?
Posted by Keith Smith at 1/31/2005 12:58:50 PM
I read in a Visual Studio .NET book that with C# it is now recommended to open database connections whenever you need to query a database as opposed to the traditional method of opening a database at the start of your app and closing it at the end. Their reasoning was that "opening a database...more >>

How to "kill" a tcp port...
Posted by Jako Menkveld at 1/31/2005 12:52:02 PM
I'm building a relatively simple client-server app. One of the functions of the client is to notify the server when it terminates, this all works fine. The problem comes in when the server is stopped before the client, in which case the client "hangs", waiting to talk to the server. This is h...more >>

How do I prevent OnMouseUp in a DataGrid
Posted by Scott at 1/31/2005 12:43:06 PM
I have a derived DataGrid class that overrides the OnMouseUp event so that I can highlight multiple cells for cut/copy/paste functionality. When the user selects to open a new file via a OpenFileDialog dialog, the OnMouseUp event for the grid is called after the user presses the Open button o...more >>

loop threw dataset?
Posted by DaveF at 1/31/2005 12:32:20 PM
I have a dataset that I need to loop threw the rows of the table. What is the best way to do this? -- D ...more >>

proper destruction techniques
Posted by DKode at 1/31/2005 12:02:31 PM
This should be an easy question. With all of my dataadapters, when I am done with them i do the following: DataAdapter da = new DataAdapter(); // do something with da da.Dispose(); Is that the proper way to destroy an object when I am done with it? Or should I be doing: da = Nothing; ...more >>

Detecting Object type and creating readonly copy at runtime
Posted by Danielb at 1/31/2005 11:57:13 AM
I need to create a read-only copy of Object X at run time, I know how to find the type of Object X (using GetType) but how do I go about creating a readonly copy of X? What I want to do is this: System.Type ValueType = Value.GetType(); create readonly object of type ValuteType and copy Value...more >>

Pointer scrambled when running in a thread
Posted by DBW at 1/31/2005 11:57:02 AM
I am using a com server to return a memory pointer to a C# program in .net. The code works fine when it is not in a thread. When it is run in a thread the pointer no longer points to the data the com server has. I am using a System.IntPtr to transfer the pointer. Are there marshaling issue...more >>

Serialize in dataBase
Posted by PawelR at 1/31/2005 11:33:35 AM
Hello group, I have irrational idea but I thing that this solution is good for me. In my apps I have custom class MyClass with few public, and private integers, two ArrayList etc. How serialize this class to dataBase. I need have completly object in one place. I know that I want create few t...more >>

about CSharp Parser
Posted by news.microsoft.com at 1/31/2005 11:03:21 AM
Hi: I work in Csharp's parser files by LEX/YACC.Now I have only CSharp-lex.l and CSharp.y file,but they not have CSharp'comment Parse. this is a part of CSharp-lex.l. ..................... /***** Comments *****/ "/*" { yy_push_state(IN_COMMENT); } <IN_COMMENT>. ...more >>

Is C# 2.0 fully implemented?
Posted by Anders Borum [.NET/C# MCP] at 1/31/2005 10:56:48 AM
Hello! A longer version of this posting was originally sent to the C# whidbey newsgroup, but it seems like those newsgroups don't get much attention from Microsoft. I'm wondering on the status of C# 2.0 and whether it's been fully implemented in the released betas of VS .NET or we can expec...more >>

MDI Repaint Problem
Posted by Nick at 1/31/2005 10:34:19 AM
I'm creating an MDI application with multiple maximized MDI child forms. When a child form is open, the title/caption is merge with the MDI's title/caption. So, if the MDI title is "Parent" and the 3rd MDI child is "Child 3", then when the 3rd MDI child is opened, the title becomes "Pare...more >>

Using C# and SQlite
Posted by roland.bengtssonsf NO[at]SPAM home.se at 1/31/2005 10:32:06 AM
I have an application that I want to use an embedded database in. I started with MySQL and ODBC (client server model) but want to change that. I found SQLite http://www.sqlite.org and found it promising, a single dll-file contains all the needed functions. I'm new to C# but I found that I have...more >>

NT AUTHORITY\NETWORK SERVICE
Posted by Next at 1/31/2005 10:22:35 AM
I am building a windows services that accesses files on another machine in the domain. My understanding is that I should use NT AUTHORITY\NETWORK SERVICE as the account to run the service under if I want to access resources on another machine. However, I get Access denied. I can't find very...more >>

Credentials for network shares
Posted by GCeaser NO[at]SPAM aol.com at 1/31/2005 9:31:20 AM
All, I have a situation where a Server exists in a stand alone workgroup on an Active Directory domain. The server can access domain resources with the correct domain security information provided (for example I can map a drive from the server to a server in the AD by connecting as a different...more >>

radio buttons (array)
Posted by jima80 NO[at]SPAM gmail.com at 1/31/2005 9:27:12 AM
Hello, I need a control which will contain radio buttons that will be added in a loop. I am using this control a source of some other control. I tried to use group box windows control and to add the radio buttons this way(in a loop): this.groupBox1.Controls.Add(radio); but I can see there o...more >>

Calling SQL DMO to backup / restore DB via C#
Posted by Paul Aspinall at 1/31/2005 8:47:57 AM
Does anyone have any sample code, or references to help when calling SQL DMO to backup / restore DB via C# Thanks ...more >>

Multiple Monitor Software
Posted by Lizim at 1/31/2005 8:17:03 AM
Does anybody know if it is possible to write software that works across multiple monitors? and if so, is it possible to program one so it is private to the user / administrator and the other public. i.e they both show different things. Or even better- the private one shows both screens and the...more >>

Method advice
Posted by jez123456 at 1/31/2005 6:41:06 AM
Hi I have the following code which runs ok from a button click event private void btnCompact_Click(object sender, System.EventArgs e) { string mdbComp = @"C:\Compact.mdb"; string mdbTemp = @"C:\tempdb.mdb"; JRO.JetEngine jro; jro = new JRO.JetEngine(); jro.CompactDatabase(@"Provider=...more >>

What is the difference
Posted by DAMAR at 1/31/2005 6:23:03 AM
between STAThread and MTAThread?...more >>

new to C#
Posted by Mr. McMaster at 1/31/2005 5:43:30 AM
Greetings, I am new to C# and programming in general. Taking the self study route with an associate in an attempt to increase skill sets, and potentially start a business of it. Just wanted to introduce myself to the group. Thanks for being such a great resource!!! --------------- tm...more >>

string syntax
Posted by jez123456 at 1/31/2005 5:05:03 AM
Hi I'm attempting to pass a string into another string but I get an error This code work ok jro.CompactDatabase(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Compact.mdb", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\tempdb.mdb;Jet OLEDB:Engine Type=5"); However when I declare ...more >>


DevelopmentNow Blog