Groups | Blog | Home


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# > november 2007 > threads for monday november 5

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

RegEx Help
Posted by slg at 11/5/2007 10:59:55 PM
Gurus, I am new to RegEx. How can i validate following. All characters in my strings are [A-Za-z0-9] and underscore The string MUST begin with Upper Or lowercase character. Maximum length is 51 can have underscores in between but no spaces any where cannot end with underscore Valid =...more >>

arraylist - how do I retrieve a single element?
Posted by Peter Webb at 11/5/2007 10:54:32 PM
This is driving me crazy. I have defined an arraylist as follows: public ArrayList drawnballs; This is instantiated through drawnballs = new ArrayList(); I add balls to this just fine with: drawnballs.Add(myball); I can access every element (every ball) through a foreach s...more >>

Replace function
Posted by Soulless at 11/5/2007 10:48:21 PM
Hi, I am tryng to use replace and it is not working. i'm surprised as it would seem to be a simple method. My code: foreach (DataRow row in dsSched.Tables["Schedule"].Rows) { if (_bStopWork) break; lsTemp = String.Empty; ...more >>

Passing parameters to Crystal reports
Posted by Dan Aldean at 11/5/2007 9:47:45 PM
Hi, To create a Crystal Reports I use a ReportViewer. How can I pass parameters to the report which is based on a stored procedure. Please provide some code. Thanks ...more >>

VS2005 Designer choking when I add Acrobat Reader ActiveX control
Posted by sklett at 11/5/2007 7:40:53 PM
I'm curious if anyone has encountered this. I'm developing an outlook add-in that needs to display a PDF. I've included the Adobe Reader ActiveX cotnrol and when I re-load the form I get the dreaded "The path is not of a legal form" error. I've tried all the usual solutions to this error ...more >>

Learning Generics & Generic Collections?
Posted by clintonG at 11/5/2007 6:19:43 PM
I have to master these relatively new constructs. I'm looking around and asking you too for your suggested learning resource(s). ...more >>

Microsoft to release Visual Studio 2008 this month
Posted by Fred Mellender at 11/5/2007 5:54:39 PM
http://www.news.com/8301-10784_3-9810848-7.html?part=rss&subj=news&tag=2547-1_3-0-20 ...more >>

The value violates the MaxLength limit of this column
Posted by Scudder Consulting at 11/5/2007 5:29:10 PM
Im my application is a Winforms C# 2005 front end to a SQL Server 2005 database. I have several phone number fields in which I use a MaskedTextBox to format the phone number. All is good until I create a new record and try to save it to the database at which time I get the message "The val...more >>



.NET 3.5
Posted by Alan T at 11/5/2007 5:09:55 PM
Is it simple to download the 3.5 SDK to install on my VS2005 box so that I can program .NET 3.5 Framework using VS 2005? ...more >>

Export Image
Posted by Rafael tejera at 11/5/2007 4:03:17 PM
I need to export Image from my Mssql 2000 I'm using a dara reader for that, but my code it is not working. How I can save bImage = (byte[]drMyReader["MyImage"] To a file? I had used MemoryStream and FileStream. What I'm doing wrong? MemoryStream ms = new MemoryStream(bImage); Bitmap ...more >>

Reading XML into Listview Control
Posted by Alij at 11/5/2007 3:52:24 PM
Hi, I have a dataset ds that I populated using ds.readXML(...). The problem I am having is to populate the a listview control with the data from this file. How do I go about doing this? I intent to use details view to allow me multiple columns as the XML file is in the following format: ...more >>

Strange problem drawing text in a dialog
Posted by Rinaldo at 11/5/2007 3:46:03 PM
Hi, I have a label on my dialogbox who has to change text while running. This is what I do: lblBackup.Text = "Bezig met de backup naar " + F1.FTPserver; but the text does'nt appear, only if I draw (call) a messagebox, then the text appears. What can it be? I had made a total new one, bu...more >>

Reflection question: Dynamically populating an objects properties
Posted by MarkusJ_NZ at 11/5/2007 3:17:38 PM
Hi, I am trying to dynamically populate an objects properties using reflection. Specifically, I have an object called the theObj and it has a number of properties. property is a PropertyInfo object What I want to do is to be able to set the property value dynamically which I am doing so ...more >>

Get a file from my resource file and write it to disk
Posted by JT at 11/5/2007 2:30:32 PM
Hi, Here's my problem. I am using an obscure font in my Windows Form application, so I want to ensure that people using the application will have the text displayed as intended. I've included the ttf font file in my resources file and I want to write it to disk so that I can then use Privat...more >>

Modal forms
Posted by Dave at 11/5/2007 1:38:00 PM
I want to have 3 forms open modally. They are 1: a background form (bgform); 2: form_x; 3: loginform. bgform is always open. form_x could be any random form that that bgform has shown modally. Whenever, the pc is idle for x minutes then loginform is displayed. This all works fine, except that ...more >>

Date to 4 byte string
Posted by Steve at 11/5/2007 12:57:51 PM
Hi All, I have a registration code that currently has 4 bytes that are unused. I'd like to store a future date in those 4 bytes. Is there a way to convert a date to a 4 byte string? When I do something like this, string stringDate = DateTime.Parse("1/15/2210").ToBinary().ToString("X")...more >>

Menu items as radio buttons
Posted by RBrowning1958@gmail.com at 11/5/2007 12:39:37 PM
Hello, Is there a way to group menu items so they act like radio buttons - that is when one is checked the others in the same group are unchecked - I'm looking for a property to group menu items but can't see it. Delphi's VCL has GroupIndex for example. Ta Ray ...more >>

Methods as part of interfaces
Posted by RBrowning1958@gmail.com at 11/5/2007 12:37:33 PM
Hello, Here's a question - when reading through a class's code and seeing method implementations - how do you know whether a method is implementing something from an interface or is just a method in the class and has nothing to do with interface. Do you need to look up the entire inheritance ...more >>

Windows Installer problems
Posted by Claire at 11/5/2007 12:23:33 PM
Hi (Visual studio 2005) My windows installer Setup project needs to install a desktop application plus an optional Windows Service, into a single destination folder. Both applications share the same assemblies and are part of the same solution. Installation of the Windows Service is optional an...more >>

Assigning null to the locked object?
Posted by Ympostor at 11/5/2007 12:11:32 PM
Can I do this or it will give problems?: lock(this.myObject){ this.myObject.Dispose(); this.myObject = null; } Regards, Andrés -- ...more >>

Fax Class
Posted by Luke Davis at 11/5/2007 11:32:26 AM
Is there an API for the Microsoft Fax Driver on Server 2003? Thanks ...more >>

Predicate methods like TrueForAll() for IEnumberable<T>?
Posted by cody at 11/5/2007 11:04:26 AM
Hi! It's great that Arrays and List<T> support functions that use predicates like TrueForAll(), ConvertAll(), Foreach() and so on. But why are there no such methods for IEnumerable<T>? The guidelines say that we should not work with implementations like List<T> but instead only with interfac...more >>

Auto implemented properties in c# 3.0
Posted by Satish Itty at 11/5/2007 10:57:21 AM
What is the advantage of the new auto implemented properties introduced in ocras? For example is there any difference between public string Message; and public string Message {get;set;} Thanks....more >>

Insert text in a RichTextBox
Posted by Alberto at 11/5/2007 10:52:59 AM
I have to insert serveral words in a RichTextBox control with a different size each one of then so why I need is how to insert a single word in this control giving the size. Thank you. ...more >>

A Possible Scenario for LINQ
Posted by Bob Johnson at 11/5/2007 10:41:33 AM
Just wondering if LINQ might be useful and appropriate in the following scenario: I'm writing a Windows Forms app that enables the user to search for a "client account". The client account is made up of a client number, plus a case number. A given client can have many cases. Here are two c...more >>

What do you think of LINQ? Looks like not intended to be used with WCF so what architecture do you like?
Posted by Ronald S. Cook at 11/5/2007 10:11:50 AM
Sorry if this is the wrong forum, but wondering what you guys think about LINQ. We were architecting our enterprise Win app as WCF for the benefits of: - single place for business tier - thin client But those aren't incredibly strong arguments, since 1) ClickOnce makes client deploymen...more >>

Windows Service and the "RegisterServiceCtrlHandlerEx" function
Posted by McKool at 11/5/2007 9:32:07 AM
Hello Group, I'm writting a Windows Services under C# to get some USB events. = Because the ServiceBase class does not supports the = SERVICE_CONTROL_DEVICEEVENT handler, I'm using P/Invoke to call the = RegisterServiceCtrlHandlerEx funtion, using a callback to manage the = needed handler. ...more >>

Drag and Drop
Posted by Trecius at 11/5/2007 9:19:04 AM
Hello, Newsgroupians: I've been looking on the Internet for some resources to create a simple drag-and-drop application, but they all seem too complicated or not what I need. I have created a Form with a ToolStrip that has a couple of buttons at the top. What I want to do is allow the u...more >>

Export Image
Posted by Rafael tejera at 11/5/2007 8:53:12 AM
Somebody has an example of how to export an image from my database. Sincerely, RT ...more >>

Winform calendar control
Posted by vermin at 11/5/2007 8:43:01 AM
Hello! I am looking for a free outlook-style schedule control, to put it in a winforms application. Could anybody recommend one please? Thank you!! ...more >>

best way to do between check
Posted by DBC User at 11/5/2007 7:10:08 AM
This is a very simple question, I have a number and I want to check if the number is between 2 integers. I can use 'if' to resolve this situation. But I am curious, if there is any other verbs that I can use in C# like sql 'between'? Thanks. ...more >>

Question about the Mask property on the MaskedTextBox
Posted by Mark Collard at 11/5/2007 6:37:04 AM
I'm using the MaskedTextBox to make sure the user inserts a valid international phone number. I want to set the Mask property so that the user sees +49-__-____-____ in the text box. I set the Mask property to "+49-00-0000-0000", but because 9 is a Masking element the masked text box contain...more >>

buttonRun_Click(sender, e);
Posted by CMartin at 11/5/2007 6:36:04 AM
1. Is this the correct code to have in toolStripStatusLabel3.TextChanged event to trigger another buttons click event? toolStripStatusLabel3.TextChanged += buttonRun_Click; buttonRun_Click(sender, e); 2. What the heck does this do? ...more >>

Web Service to InfoPath
Posted by Helen Trim at 11/5/2007 5:48:02 AM
I have written a C# web service in Visual Studio 2005, to be used by InfoPath 2007 to retrieve and submit data. The web service works perfctly, but only after I have opened Visual Studio, opened the web service solution, selected the asmx file and viewed it in a browser. Do I need to add s...more >>

StackOverflowException when serializing
Posted by etienne.maitre@fr.michelin.com at 11/5/2007 5:12:11 AM
Hi, I work against .NET 2.0 using C# 2.0. I am facing a problem trying to serialize the class foo (given below). Basically, foo can contain other foos in a list. When I try to create a serializer, using the test() method below, I get a superb StackOverflowException. I googled for it but didn'...more >>

Ho to retrieve the CPU Usage in C#
Posted by naamala at 11/5/2007 3:19:33 AM
Hi, How Can I retrieve the CPU usage (%) and Number of the processors in my system? Thanks. naamala ...more >>

Default method on COM idl from C# interop
Posted by Francisco at 11/5/2007 1:44:15 AM
Hello, May I have a method exported as default on a exported COM interop from a C# dll using attributes? Thanks in advance. ...more >>


DevelopmentNow Blog