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 > threads for friday january 14

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

C# Network Programming
Posted by Eric at 1/14/2005 11:26:27 PM
Does anyone know of any GOOD network programming book(s) that are C# based, as well as any online tutorials and forums on network programming? Thanks ...more >>


Recommendations for Outlook style interface
Posted by Paul Aspinall at 1/14/2005 10:34:26 PM
I am designing a Winforms app, using the NetAdvantage (Infragistics) controls - which are very good. How can I make multiple different contents in my content pane?? ie. In Outlook, there is a content pane, which displays multiple different formats (one for Calendar, one for Notes, one for M...more >>

DataGrid without binding
Posted by CD at 1/14/2005 10:09:40 PM
If I am presenting a DataGrid to the user in which the contents cannot be changed, is there a way to have the data automatically bound? I want to issue a freeform select statement and have the data populate a DataGrid, but I do not want to have to config each column with the details of the dat...more >>

Non Static Members
Posted by Richard at 1/14/2005 8:59:34 PM
im fairly new to c# but im trying to display some text in a textbox and i get the error "Cant access nonstatic member from outer type "Server.Form1" via nested type "Server.Form1.SocketPacket" code: - public class SocketPacket { public Socket thisSocket = null; public byte[] byte...more >>

Array initializers
Posted by cody at 1/14/2005 8:27:07 PM
Iam wondering why I can do DateTime[] a = {}; but Iam not allowed to do: DateTime[ , ] b = { {}, {} }; instead I have to write: DateTime[ , ]b={{new DateTime()},{new DateTime()}}; this isn't very consistent. ...more >>

Advantage of const against static readonly?
Posted by cody at 1/14/2005 8:07:11 PM
Iam wondering what the benefit of using const over static readonly is. static readonly is a runtime constant and can be set once in the initializer or the static ctor, whereas const is suffering from binary incompatibility since it is hardbaked into the binary. I do not believe there is a ...more >>

NotifyIcon Problem
Posted by james at 1/14/2005 7:22:31 PM
My app has a notify Icon, but after the app exits, the Icon is still visible, and then when I runthe app multiple times I get multiple icons so that my status bas keeps accumulating them to the point it becomes un-usable. The only fix I have found is to re-boot. Not a godd solution. How do...more >>

Dymanic Checkbox problems (Web App)
Posted by Tomas Vera at 1/14/2005 7:12:25 PM
Hello All, I'm having problems creating a page with dynamic checkboxes in a WebApp. In my app, I need to query a database, then (based on results) add checkboxes to my form and set their "Checked" state. Since the controls are dynamically created, I'm using the OnInit event to create the check...more >>



Question about crypto and soap calls
Posted by Greg Merideth at 1/14/2005 3:37:49 PM
I've got a project where I need a client application to perform a "challenge/response" from the client to the server via webmethods to authenticate and pass data so that the session cannot be replayed if someone captures the data stream. I've played around with RijndaelManaged in the past b...more >>

What's wrong with my WSDL files?
Posted by hellrazor at 1/14/2005 3:27:33 PM
Hi there, I'm trying to import the following files as web reference: http://216.18.68.93:9999/CollectionWsInterface.wsdl The hosted web service was not created with Visual Studio.net. Could any of you import it into a project and tell me why I cannot invoke the "getSimpleCollecti...more >>

IBM DB2 Connector throws exception with .Connect() in .net
Posted by C.E.O. Gargantua at 1/14/2005 3:00:54 PM
I am using the IBM DB2 Connector class of the Redistributable DB2 Run-Time Client Lite in a c# .net application using Visual Studio. Running the code: string myConnString = "DATABASE=192.168.1.43;UID=XXXX;PWD=XXXX"; DB2Connection myConnection = new DB2Connection(myConnString); myC...more >>

HELP! Design ideas for an inheritance problem.
Posted by walker_712 NO[at]SPAM hotmail.com at 1/14/2005 2:51:52 PM
I have a Person object and from that I'm inheriting other objects including Client, Carer, Doctor (and others). The Person object has a large number of properties and methods that I want available in Client, Carer and Doctor. Person <- Client Person <- Carer Person <- Docto...more >>

where is "exit"?
Posted by flemming eriksen at 1/14/2005 2:26:14 PM
Hi NG. I looked after an "exit(par)" language construct, but it's not include in C#. How do you solve that in elegant manner? A bunch of conditionals to omit the code after some place, where a "bad condition" occured, is awfull. Regards, flemming ...more >>

missing click event for image
Posted by Frederik at 1/14/2005 2:16:05 PM
Hi all, Situation: Windows Forms, DataGrid, CSharp, WinXP Pro, VS 2003 How can I add a click event to an Image? The Imageis in a DataGrid, drawn with the 'DrawImage' mehtod. The Image does not seem to have a click event! [Using a PictureBox instead of an Image resulted in buggy drawings.] ...more >>

reg exp to validate version
Posted by gilligan at 1/14/2005 1:46:22 PM
ahoy lads, whatz a regular expression to validate the AssemblyVersionAttribute version part. ie i want to validate a string is in the format 12.3.* or 3.4.0.0 I have ^([0-9])((\\.[0-9]))(((\\.\\*)|((\\.[0-9]))((\\.[0-9])))) but it doesn't fails on 12.3.* because of the 12 but will validate...more >>

vs2003
Posted by mp at 1/14/2005 1:28:13 PM
How do I change the IDE's back color from white to some other color? Thanks ...more >>

Operating System Development
Posted by Saadi at 1/14/2005 1:15:01 PM
Hey Guys, I am looking to develop a simple infact a very simple Operating System, to submit as my BS final project, which can independently start the computer and some simple application which are supported by it like simple text document. but these are secondry phases. First I need to deve...more >>

double quote in verbatim string
Posted by fred at 1/14/2005 12:34:41 PM
Hi, is there a way to put " (double quote) into a verbatin string? thank you...more >>

double quote in verbatim string
Posted by fred at 1/14/2005 12:34:41 PM
Hi, is there a way to put " (double quote) into a verbatin string? thank you...more >>

use the same dataset in the second form (by reference)
Posted by MajorTom at 1/14/2005 12:31:02 PM
Hello everybody, I need help on how to use the same datase in two different form, this is the scenario: at the first form I load a big dataset (ds1) for short, but I not want to load it again at the second form at some point I use a second form Form f = new FormX(); f.ShowDialog(); at ...more >>

SQL CE sync with MSDE (ie. running on XP Home, with no IIS)
Posted by Paul Aspinall at 1/14/2005 12:08:44 PM
Hi, I am trying to write an app that will run on XP Home (ie. no IIS), using MSDE, but which will sync to SQL CE. Can anyone offer some pointers or code samples (prefer C#), on how to do this. All the articles I can find seem to suggest using replication, or RDA, but both appear to use I...more >>

assuming that object from arraylist is button ??
Posted by Grisha0 at 1/14/2005 11:55:32 AM
hi, [code] System.Collections.ArrayList a = new ArrayList(); Button b = new Button(); b.Top= 40; b.Left= 30; b.Parent= this; b.Text ="blah blah blah"; a.Add(b); b.Text= (Button)a[0].text; [/code] \c\Form1.cs(1...more >>

TextArea in C#
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 1/14/2005 11:54:26 AM
I want to add an textare into my program like in html but i saw there is no such class as textarea are there anyway to create it? Thanks *-----------------------* Posted at: www.GroupSrv.com *-----------------------*...more >>

How to debug program running on a different computer?
Posted by Jeff at 1/14/2005 11:03:01 AM
I am writing a program that must be run on a specific server due to its dependancy on the application we are writing for. VS .NET is installed on my laptop and I installed the Remote Debugging components on the server. Now how do I debug my program while running it on the server? It is a Co...more >>

AutoResetEvent..WaitOne() Question
Posted by Phil at 1/14/2005 10:47:04 AM
I have an application that has a main thread and a worker thread. From time to time, the main thread, because of user input, needs to notify the worker thread to execute an extra bit of code, in addition to it's normal work load. I created 5 AutoResetEvent objects and have the main thread ca...more >>

Using VB's "With" in C#
Posted by John S at 1/14/2005 10:46:17 AM
In VB, you could start manipulating a controls properites and methods just by using the statement With <control name> ..Text=gnkn end with Does anyone know if there is anything similar in C# ...more >>

LDAP query not working but I don't know why
Posted by dln at 1/14/2005 9:39:15 AM
Hello all. I'm trying to find the right group to post this to and since it's a coding question (of sorts), hopefully this is the right place. I'm attempting to run an LDAP query to return the Recipient Update Policies on an Exchange server using the DirectorySearcher class, but it's not retu...more >>

anonymous blocks as delegates?
Posted by Marcos Stefanakopolus at 1/14/2005 9:14:17 AM
In C# is there any way to use the concept of delegates to have multiple = implementations of a particular block of code, so that you can choose = between them without the overhead of possibly expensive if() or switch() = logic, and without the overhead of a function call? As an example, consid...more >>

Properties vs fields
Posted by keithv at 1/14/2005 9:10:04 AM
I'm looking at a bunch of code which has lots of class fields converted into properties with just the simplest code: private int empID; public int empID { get { return empID; } set { empID = value; } } My question is, isn't this useless and inefficient? I can't see any benefit to this ...more >>

Event to receive in multiple objects at the same time - how ?
Posted by ts NO[at]SPAM ck-de.net at 1/14/2005 8:54:34 AM
Dear experts, this time my problem is, that I will have objects of 3 different classes, which all should receive their events without knowing each other. In real life the following happens: I have three fingerprints which are waiting for a finger to be put on sensor. As soon as the firs...more >>

Window recreation on theme change
Posted by Peter Wone at 1/14/2005 8:49:23 AM
The short version is that when the theme is changed my application barfs. The problem is a control I've created to host the WebBrowser control and implement all the com callbacks for browser customisation. The problem only occurs when it's present. I'll fix it, but first I need detailed in...more >>

accessing unmanaged DLL in C#
Posted by delphiconsultingguy NO[at]SPAM yahoo.com at 1/14/2005 8:38:23 AM
Hello, I'm trying to convert a VB.Net app into C#. The VB app calls functions in an unmanaged DLL. I'm able to call most of the functions in the DLL from C# with the exception of the one below: in VB.Net, the unmanaged function is declared through an interop as: Public Overridable Functio...more >>

Sorting DataGrid bound to collection
Posted by Pete Davis at 1/14/2005 8:23:46 AM
A different question this time. I have a DataGrid bound to a collection. Is there any way for me to allow sorting? The DataGrid.AllowSorting=true doesn't work, but that's probably because it can't assume the data types and thus can't sort them. I thought about implementing IComparable, but I d...more >>

Call Adobe reader from C#
Posted by robeneal at 1/14/2005 7:55:04 AM
In a c# program, how would you get the default program associated with the ".PDF" extensions and then get that program to execuete the program using the PDF file? Thanks in advance bob -- Robert Neal West Palm Beach, FL USA...more >>

Move controls and set font sizes on the fly
Posted by John S at 1/14/2005 7:54:24 AM
How can I move controls and set their forecolor and font size in code on the fly? ...more >>

CodeDom namespace
Posted by mark at 1/14/2005 7:45:19 AM
Using the CodeDom namespace, how do you create a blank line in a method primarily for formatting? Without it, autogenerated code is challenging to read. I tried something like: //Assume method is an instance of CodeMemberMethod. method.Statements.Add(new CodeExpressionStatement(new CodeExp...more >>

AutoNummering in Access DataBase
Posted by bardo at 1/14/2005 7:33:13 AM
I don't know if there is a solution to this question. Situation: With MS Access I made a database. In table 1 I have a column MainID that is the a primary key. This column uses autonummering. This means that the nummering is taken care of without me writing any code. In table 2 I also hav...more >>

AutoNummering in Access DataBase
Posted by bardo at 1/14/2005 7:33:05 AM
I don't know if there is a solution to this question. Situation: With MS Access I made a database. In table 1 I have a column MainID that is the a primary key. This column uses autonummering. This means that the nummering is taken care of without me writing any code. In table 2 I also hav...more >>

AutoNummering in Access DataBase
Posted by bardo at 1/14/2005 7:09:06 AM
I don't know if there is a solution to this question, but I am hoping there is. What I would like to know is the follow. I made thru Access a database with 1 tablel having a primary key (column is called mainID) and another table having a foreigner key (using OleDB statements to read ...more >>

About installing Framework 2
Posted by david.kao NO[at]SPAM opco.com at 1/14/2005 7:05:03 AM
Hi all: I installed DotNet Framework beta 2.0. My web service program stop working in debug mode under VS 2003. I took all steps that Microsoft help page suggest, and none of them are working for me. At the end, I took a look at IIS web configurations app mappings property, and found all as...more >>

Interop versions
Posted by The God's Awful Truth at 1/14/2005 7:02:51 AM
I wrote an application on my dev machine ( XP, Office 2002 ) that uses the Excel type library 10.0 Now I want to deploy on a machine that runs w2k, Office 2000...that's type 9.0 right? How can I deploy? -- incognito...updated almost daily http://kentpsychedelic.blogspot.com Te...more >>

OOP book
Posted by Mark at 1/14/2005 6:44:15 AM
Hi i have been using c# for over an year and I would like to get a good book to start on Object orientation with patterns Also I would appreciate if someone could point me to a good book on designing solutions/projects using OOP i.e how to go about creating classes etc thanks for...more >>

switch case with true
Posted by Eric S. at 1/14/2005 6:23:41 AM
Why doesn't something like this work? I get "a constant value is expected" on all 3 case statements. private DataGrid CurrentDataGrid(DataGrid firstDg, DataGrid secondDg) { try { switch (true) { case firstDg.Items.Count != 0 & secondDg.Items.Count != 0: throw new Exception(); break; ca...more >>

'inaccessible due to its protection level' Error
Posted by Larry at 1/14/2005 5:38:38 AM
I have a VB background and am developing a new windows app in Csharp. I'm getting the error. 'inaccessible due to its protection level' I've added a TextBox1 and a Button1 to a form. I double click the Button1 button. inside the method I type string strName; strName = TextBox1.text;...more >>

'inaccessible due to its protection level'
Posted by Larry at 1/14/2005 5:28:39 AM
Thanks in advanced for your help I've added a TextBox1 and Button1 to a form in C# in VS.net 2003. When I double click on the Button1 at design time, a private method ButtonClick. I've defined a local variable inside the ButtonClick event named 'string strSample;' { string strSamp...more >>

File System Watcher Usage
Posted by Stuart Ferguson at 1/14/2005 3:33:33 AM
I am currently writing a Windows service which monitors multiple folders and processes the files in them accordingly. The folders to be monitored are stored in a string array. I can think of 2 ways of determining which folder has had the file dropped into it and was wondering if there was a be...more >>

Declaring an extended value type
Posted by Michael.McD at 1/14/2005 3:25:03 AM
Hi, I want to create a type that behaves like in integer but only allows assignment of say 3 digit integers where attempts to assign values greater or loess will throw an exception. E.g. int threeDigitInteget = 7; will throw an exception. I can achive this behaviour through the new types...more >>

Image SlideShow?
Posted by Brian Basquille at 1/14/2005 3:17:27 AM
Hello all, Am interested in doing on Image SlideShow. The user will add some photos into a ListBox and then press Start Slide Show and it will then display these selected photos in a SlideShow. However, is it possible to do it like it was a screensaver? In other words, with the image goi...more >>

Error while sorting with IComparer
Posted by arne.wiklund NO[at]SPAM intellifield.no at 1/14/2005 12:36:51 AM
Hi, I am sorting an arrayList using a custom comparer, but it sort the element in a uncommon fashion. Take a look at this code. using System; namespace ConsoleApplication8 { /// <summary> /// Summary description for Class1. /// </summary> class Class1 { ...more >>


DevelopmentNow Blog