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# > february 2007 > threads for friday february 16

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

iterating through radio button collection as an array
Posted by Peted at 2/16/2007 10:29:34 PM
I know you can iterate through a collection of radio buttons in a panel, using a "for each in control" type iteration that c# supports, but is it possible to iterate through the radio buttons collection, as if they were an array of radio buttons ? Basically i want to plonk the radio buttons o...more >>


can you use delegates to pass a copy of an object when an event happens?
Posted by darthghandi NO[at]SPAM gmail.com at 2/16/2007 9:42:44 PM
I am creating a listener class that listens for incoming connections. When I get an incoming connection, I want to signal an event to happen and pass that connected socket to a different thread for the real work. I want to continue to listen for more connections. So is the socket I pass with ...more >>

Bear with me!
Posted by rayreeves at 2/16/2007 9:27:04 PM
In C# I can easily produce a dialog box to amass a slew of input data from the user but how should I convey this data to my Application? Should I declare it as static data in the Form1 class, even though it has nothing to do with Form1, and try to access it from code elsewhere, or should I cre...more >>

Convert Null to DBNull
Posted by scott ocamb at 2/16/2007 8:25:08 PM
Hello, I have a function that expects the following parms. How can I handle null values. For example, if FirstName comes through as null, how can i propogate that null value to the stored procedure. public long InsertPerson(string FirstName, string LastName, string MiddleName, string EMail...more >>

TreeView node insertion in between existing nodes
Posted by fishware NO[at]SPAM comcast.net at 2/16/2007 5:49:34 PM
I've got a treeview created by TreeNode node = treeView1.Nodes.Add("one"); node.Nodes.Add("three"); looks like: one -> three How do I insert "two" between one and three (one becomes the parent of two, which becomes the parent of three, and the parent-child re...more >>

where is the JSharp newsgroup??
Posted by Larry Linson at 2/16/2007 5:47:18 PM
where is the JSharp newsgroup?? ...more >>

convertir datetime
Posted by Rafael Tejera at 2/16/2007 4:43:42 PM
Como puedo convertir una fecha datetime a una fecha mm/dd/yyyy. He intentado varias cosas, pero no me funciona. Gracias de antemano, Rafael...more >>

Is there any web service to send free SMS in c# project?
Posted by Nick at 2/16/2007 4:02:24 PM
hi, I am trying to implement a sms notification program with c#. And I found a website http://www.webservicex.net which states it can send sms to world wide. But I tried, it says "message has been sent successfully, " but I never get it. Did anyone use it before? or Do you know any good one? ...more >>



change a property does not update custom control
Posted by --== Alain ==-- at 2/16/2007 3:57:54 PM
Hi, I have some issue with my custom control. When i change my property "GridLine.Color" my custom control should redraw its border with the specified color. However, nothing happens. therefore based on an example from a book i implemented an eventhandler and tried to manage it like that....more >>

Q: ServiceController
Posted by Martin Arvidsson, Visual Systems AB at 2/16/2007 3:03:30 PM
Hi! I am using a ServiceController to start and stop my service. If i use the service localy and use the service controller it works fine. If i install the service on my server and try to connect to the service on that machine i get an access denied message. I am logged in as an Adminis...more >>

A question about design!
Posted by TonyJ at 2/16/2007 2:25:51 PM
Hello! Assume we have a steelwork with a lot of different working places. Just to mention some we have a rolling mill, we have casting and heating and then many many more. Is it possible to say something about the design. Is it advisable to have only one database or it it better to have a ...more >>

Using axWebBrowser on a form
Posted by Claire at 2/16/2007 2:15:29 PM
I'm using C# in Visual Studio 2003, XP pro with latest IE plus all patches and security updates. I imported microsofts web browser control onto my tool palette from the COM tab of "Add/remove toolbox items". When I drop the web browser onto a form, AxSHDocVw and SHDocVW are automatically...more >>

string Format overrides
Posted by John Vottero at 2/16/2007 2:07:14 PM
Why does String.Format have overrides of: Format(string, object) Format(string, object, object) Format(string, object, object, object) Format(string, params object[]) doesn't the last one cover the first three? ...more >>

Reporting Component that can handle Objects?
Posted by Joel DaBona at 2/16/2007 1:36:23 PM
Hello, Most reporting components that I'm aware of do not like object graphs with simple C# objects. (like Order - > OrderItems). Instead they require me to transform the structure into datasets. That's so last century... ;-) I'm looking for a reporting solution that can handle OO struc...more >>

XAML: FontSize="12pt"; C#: ?
Posted by not_a_commie at 2/16/2007 11:54:59 AM
I want to take the FontSize from a System.drawing.Font type and turn that into a System.Windows.Controls FontSize. (Actually, I'd like to take the whole font over, but I didn't see any standard converter.) The former is a float and the latter a double. In XAML, though, you can specify a string t...more >>

Central Illinois
Posted by Tod Birdsall at 2/16/2007 11:31:59 AM
Hello, I am a .NET software developer who recently moved from Phoenix, Arizona where there was a very active .NET User Group to Normal/ Bloomington, Illinois where there doesn't appear to be any Microsoft Software Development related user groups. Do any of you live in Central Illinois? If so,...more >>

data size in webBrowser component help...
Posted by trint at 2/16/2007 11:08:08 AM
Is there a way to know the size of the page loaded into a webbrowser component? like: webBrowser1.sizeofpageloaded ? Any help is appreciated. Thanks, Trint ...more >>

Data Source for mdb connection
Posted by esroinc NO[at]SPAM msn.com at 2/16/2007 10:29:11 AM
Would like to replace Data Source mdb location and name with a string variable. For example: where I have @"Data Source = c:\mydirectory\mydatabase.mdb;" + the c:\mydirectory\mydatabase.mdb would be replaced with a variable. Thanks Bob J. ...more >>

Redirecting File input to Memory
Posted by RobKinney1 at 2/16/2007 9:36:10 AM
Hello, Here is a head scratcher for you all: We were wondering if it is possible to redirect file input to a place in memory (say a byte array for example). More specifically, if a function were to take only an input string directed to a file path (physical hard drive location), is the...more >>

Yet another Reflection / Interface Question
Posted by rowe_newsgroups at 2/16/2007 9:31:56 AM
I know this has to be answered in the archives somewhere, but the search results are just confusing me more :-( Anyways, I authored a control library that contains an Interface definition and then some usercontrols that implement that interface. In a separate project I want to load the dll and...more >>

Window Service & C#
Posted by Potsang at 2/16/2007 9:18:08 AM
Hi, I have a window service program created in c#. The window service program is installed and running. In the mean time, I have another c# application, I would like to know if there is a way to find out in this c# application where (the complete path)the window service program is running f...more >>

C# Property Accessibility
Posted by Mike Labosh at 2/16/2007 9:04:20 AM
I have a property block in this class here, and I want it to be get / set, but the set should only be visible to the system. i.e., a user application that uses this library should not be able to set the property. It should be read only to the outside world, but read / write for my infrastructur...more >>

Newbie question: How do I initialize an array
Posted by Dom at 2/16/2007 8:34:59 AM
I need an array to be used by one method in a class. I can do this three ways. 1. Put the array in the method. This seems like the best place, since it is used only by the method. But it occurs to me that the array must be initialized each time the method is called. 2. Put the array an...more >>

Trial versions of MS software require to buy programs just to extract?
Posted by maruk2 NO[at]SPAM hotmail.com at 2/16/2007 7:57:07 AM
I downloaded 90-day trial version of Visual Studio 2005 but this thing is only in .img file format and Microsoft does not provide any extraction utility for .img files. According to this page (related to another software with at least alternative.iso format) http://msdn.microsoft.com/vstudi...more >>

Why does .NET raise_XXX proxy code lock on a mutex.
Posted by daniel NO[at]SPAM mfaconsulting.com at 2/16/2007 7:56:05 AM
Maybe I'm not understanding things. I have a multi-threaded callback producer (Unmanaged C++), which fires into a managed proxy class, which in turn calls into a managed C++ consumer (mixed mode DLL). From the managed C++ class I have defined __events, which are consumed by a C# class. This wo...more >>

AsyncCallback exception
Posted by Steven Blair at 2/16/2007 7:04:21 AM
Hi, I am using an AsyncCallback to receive a TcpClient on incoming connections. The code below works fine until I start the application and no connection is received within the time limit. I could easily try / catch the code causing the problem but I would like to understand why this problem ...more >>

Outlook integration
Posted by Mike P at 2/16/2007 6:40:24 AM
Is it possible to incorporate Outlook in your web app so that you can view your Inbox from your web app? And if so, does anybody have any good links? *** Sent via Developersdex http://www.developersdex.com ***...more >>

A Rectangle Contains/touches other Rectangle
Posted by MAB at 2/16/2007 6:05:36 AM
i m developing a wayfinding solution, i need to check if A rectangle bounds are touching B rectangle bounds. Arectangle.Contains(B rectangle) only checks if Brectangle is completely in the Arectangle. i want to check even if Brectangle is not contained but even if any part of Brectangle is to...more >>

Flickering when resizing controls...
Posted by Steve Randall at 2/16/2007 5:52:07 AM
I have a form with a number of panel controls on it. I have overriden the paint event (of the panel controls) to provide custom painting. What I have done is to use the Paint event to paint the background colour of a number of panel controls to be a gradient colour. This works fine. Is there a...more >>

SQL Statement in C#
Posted by Chris at 2/16/2007 5:34:02 AM
I always have trouble writing a SQL statement when it comes to the handling of the quotes. Can someone please help me with this line of ocde? I know I need to have "Armed Away" in quotes too (I believe) string sCommand = "SELECT CommandString FROM Commands WHERE CommandName = Armed Away"...more >>

problem with constructor of struct using FieldOffset
Posted by Steve Richter at 2/16/2007 5:09:40 AM
I have a struct that uses LayoutKind.Explicit to redefine bytes within the struct: [StructLayout(LayoutKind.Explicit)] public struct PointerStoredValue { [FieldOffset(0)] public int LayoutId; [FieldOffset(4)] public int HeapId ; [FieldOffset(8)] public int B...more >>

Code sample for sending email via outlook using late binding...
Posted by Steve Randall at 2/16/2007 5:01:03 AM
Hi, Does anyone have any code samples (or links to) for sending an email message via outlook using late binding? Many thanks....more >>

Merge sort on Linked List
Posted by Zeba at 2/16/2007 4:31:05 AM
Hi, I have to write program in C# to merge sort a linked list (doubly linked). Is it true that the best way to do it is copy it into an array, sort it and then convert back ? I'm new to C#, but I tried to develop a merge sort program myself, but have got stuck with a Null reference exceptio...more >>

PInvoke question
Posted by shankgreen NO[at]SPAM gmail.com at 2/16/2007 1:27:57 AM
My question is related to what happens under the hood when marshalling happens. When you pass a pointer to a structure from managed to unmanaged, and if the unmanaged code modified the structure, is the structure copied from the stack to unmanaged heap and then back or is it modified in the sta...more >>

send mail
Posted by Peter K at 2/16/2007 12:12:10 AM
Hi using System.Web.Mail how does one send a multipart email? For example, I want to send a "multipart/alternative" email which includes the three parts "text/plain", "text/html" and "text/calendar". So far I do it "manually" - that is I make the body as one big string with all the bound...more >>

How to develop class library?
Posted by Rainer Queck at 2/16/2007 12:00:00 AM
Hi, What would be the best way to develop a class library? I am planing to develop a couple of classes, needed in our company enviroment. These classe will be later used in several projects. Are there any "how to" links available on how to do that with visual studio? Would it be best to h...more >>

Open-source POP3 server in C#?
Posted by Pavils Jurjans at 2/16/2007 12:00:00 AM
Hello list, In order to do some mail processing before it ever gets to the mail client, we plan to implement a POP3 proxy solution. Ie, POP3 mail client would connect to the proxy instead of the actual POP3 mail server, and the proxy would do the actual connection to the mail server, proces...more >>

Date time picker
Posted by Alan T at 2/16/2007 12:00:00 AM
Windows form: I want to put a control to let the user to select the time only. Any idea what control or third party control can do that? ...more >>

Debugging custom control
Posted by --== Alain ==-- at 2/16/2007 12:00:00 AM
Hi, I have some issue to debug my custom control. For example, in my solution i have 2 projects. 1 project is my custom control and the other one, is a windows form application. I would like to be able to trace/debug my custom control, when it is on my other project windows form applic...more >>

Mail reader. Where to store message bodies at runtime
Posted by Claire at 2/16/2007 12:00:00 AM
I'm writing an internal mail system module for an application. The mails are stored on a sql database that may be on a LAN or WAN. The gui has similar functionality to most email systems where you'd click on a message header and the message body appears in a read only text box. To reduce networ...more >>

Visual Studio 2003 and Crystal Report
Posted by Jason Huang at 2/16/2007 12:00:00 AM
Hi, We've been trying working the Crystal Reports XI on our Visual Studio 2003, however, the CR XI doesn't work on our VS2003 at all. So, I am thinking giving up the CR XI. Would someone tell us whcih version of the Crystal Reports will work best on our Visual Studio 2003? given that the b...more >>


DevelopmentNow Blog