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# > march 2007 > threads for monday march 12

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

Draw outside the controls clinet area ?
Posted by Sagaert Johan at 3/12/2007 11:57:08 PM
Hi I want to draw grips around my usercontrol. Becorse the grips are around the customcontrol they are outside the controls drawing area. I tried setting the Region to infinit but that does not seem to work. Any hints or workarounds ? Johan ...more >>

linked list endless loop
Posted by finer at 3/12/2007 10:46:29 PM
i'm new to C#, but i'm trying to write a circular doubly linked list. theres a bug in my code somewhere (i think in my find() method or ToGo() method) that causes an endless loop after i insert a node in the middle of the list. anyone care to take a look? i'm stumped. i appreciate any help. ...more >>

Readonly kind of variable declared somewhere by defined somewhere else?
Posted by nospam NO[at]SPAM nospam.sss at 3/12/2007 10:35:27 PM
I would like to declare variables that can't be modified (like readonly) however I want to declare them in a single class so I can always refer to the same class whenever code uses them. However I want to give them values in constructors in different classes in different files. What's the best...more >>

Progress bar updates via callback.
Posted by bryangrif NO[at]SPAM gmail.com at 3/12/2007 9:31:58 PM
I am attempting to connect a progress bar to my application. I have created a separate form that has a label and a progress bar. I am making a call to CopyFileEx via interop to copy files over a network and would like to use the callback function to update the progress bar on the form. This a...more >>

Making a print dialog close when pressing escape
Posted by peter.mcclymont NO[at]SPAM gmail.com at 3/12/2007 8:23:28 PM
Hi There, I am using a PrintPreviewDialog and I would like it to close the print preview dialog when I press the escape key. What is the best way to do that? I tried to make myself a new class that inherited the PrintPreviewDialog, and then I tried to override the key methods (OnKeyDown,...more >>

Closing a PrintPreviewDialog with the escape key
Posted by peter.mcclymont NO[at]SPAM gmail.com at 3/12/2007 7:34:54 PM
Hi There, I am trying to add the option to close a PrintPreviewDialog using the escape key. Firstly is there an option when creating a PrintPreviewDialog that would allow me to do that? I have tried to inherit the PrintPreviewDialog and override the key events. That didn't work. I als...more >>

REQ: Learn Visual Studio.net Videos from www.learnvisualstudio.net by Bob Tabor
Posted by minipostbil NO[at]SPAM hotmail.com at 3/12/2007 6:36:51 PM
Really want this, would be very glad if someone could help.. i´m most interested in the C# videos and how to use visualstudio videos.....more >>

Adding / Deleting between two DataTables / ListBoxes.
Posted by laurasaur at 3/12/2007 6:25:09 PM
Hi everyone, I have 2 listboxes that I need to move items between, they are both bound to DataTables which get populated from the database with a list of clients. Im getting a few problems, with remove I am getting InvalidArgument=Value of '0' is not valid for 'SelectedIndex'. Parameter na...more >>



OpenGL in C#, is it possible??
Posted by Jeff at 3/12/2007 6:03:16 PM
Hey I'm wondering if it is possible create OpenGL applications using C#, or is this only possible for vc++?? I quess if this should be possible in C# then C# must have a managned OpenGL SDK installed?? Any suggestions?? Jeff ...more >>

TestDriven.NET vs. MS Team Suite
Posted by Shawn B. at 3/12/2007 5:35:03 PM
Greatings, I started using the Team Developer version of Unit Testing and the Team Developer version of Code Coverage. One thing I really like about it is that I can create my Unit Tests in a seperate project in the solution and when I view code coverage, the IDE will show me the coverage ...more >>

Datatable to string array.
Posted by roger_27 at 3/12/2007 3:34:05 PM
hey, I have a datatable here, but I need to make it into a string array. how do I do that? ...more >>

Windows Workflow Foundation: Custom activity property dialog?
Posted by Jon Davis at 3/12/2007 3:18:44 PM
Is it possible to have a custom dialog for setting the properties of a = custom WF activity? For example, in the designer, if you drag-and-drop a custom control onto = the flow chart, I would like to be able to double-click the flow node = and open a pre-built modal dialog box that sets the no...more >>

does not exist in the current context
Posted by nbohana at 3/12/2007 3:18:08 PM
I have and web page 'ePimsRegister.aspx' and assocated with this is some code in ''ePimsRegister.aspx.CS'. the code follows: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using Syst...more >>

DataGridView temp store results in Leave()
Posted by Phil at 3/12/2007 3:10:05 PM
I am using a single grid to hold different categories of data on my form. I store the data for each category in a list when the grid's Leave() function is called and restore it when the Enter is called. However, the contents of the last cell I edit are not recognized unless I move to another...more >>

96 DPI vs 120 DPI causing many form placement problems
Posted by Richard Lewis Haggard at 3/12/2007 3:03:14 PM
I have a client who foolishly insists on running my application at 120 DPI. Many of the forms that look quite acceptable in their original 96 DPI design format have problems with the form's child controls being place below and to the right of their designed position, sometimes so badly misplac...more >>

mdi maximized child mainmenu bug
Posted by Joe at 3/12/2007 2:33:11 PM
Can anyone tell me if this is a confimed bug and if there is a workaround: - Create an form set as an mdi container - Add a Menustrip to mdi container and set form's MainMenuStrip property to newly created menu - Create mdi child form and set it's window state to Maximized When you run the...more >>

Reducing the number of typed parameters
Posted by Efi at 3/12/2007 2:27:08 PM
Hello, I have the following two classes: class Chunk<T,V1> { V1 value; T data; } class Feature<T,V2>{ V2 value; T data} I am writing a class that in essence transforms a Chunk into a Feature. class Transform<T,V1,V2> ... public Feature<T,V2> transform (Chunk<T,V2> foo)... Chunk a...more >>

Auto Size Lable to Text. How can i do this on CF2.0??
Posted by iKiLL at 3/12/2007 2:15:57 PM
Hi All, I am trying to Bulid Windows Mobile Forms Control with C# in VS2005 using CF2. On this control A lable is created and some text set for the control. My problem is that i dont know how lond the text is going to be. so i need to set the height and width of the label a cording to th...more >>

Invoke Methods with Arbitrary (Known) Parameters From a Single Method
Posted by waylonflinn NO[at]SPAM gmail.com at 3/12/2007 2:13:27 PM
I'm looking for a way to invoke methods with an arbitrary number of parameters of arbitrary type from within a single method, when those parameters are known at the time of invocation of the containing method. I don't see a reason why this shouldn't work. I also can't find the language feature w...more >>

Implementing an Http layer over a TCP/IP Socket
Posted by Giulio Petrucci at 3/12/2007 1:15:39 PM
Hi there, I need to implement a light Http layer over a TCP/IP Socket as I have to create an application running on FW1.1 (so I cannot use the HttpListener class :-( ). Which approach would you use? 1) The socket reads all the data; after that it converts the read bytes into a string and...more >>

Graphics and Bitmap objects interop
Posted by Eduardo at 3/12/2007 12:48:05 PM
I would like to have a hint to solve this problem: I have a simple user control (myControl) and I'm writing a custom OnPaint event. I have the Graphics object passed through PaintEnventArgs. Now I would like to copy a region from the control 'canvas' to a Bitmap object to process it. How do...more >>

Web service privileges
Posted by Peter Bradley at 3/12/2007 11:31:37 AM
Hi, I'm writing a Web service (the first one I've ever written in anger, by the way) that has to do some AD manipulation and then has to create some directories on some remote servers. Doing the AD stuff is fine, because I can pass in suitable credentials: however this is not the case (AFA...more >>

Business Entity Hierarchy OO question
Posted by Narshe at 3/12/2007 11:29:56 AM
I've been struggling with this for a while. I have a business entity Employee that has a Company entity attached to it. Ex: public class Compay{ // blah } public class Employee { private Company _company; public Company Company{ // get/set } } I'm looking for a good way...more >>

Hooking up InternetExplorer to a WebBrowser control
Posted by Ludwig Wittgenstein at 3/12/2007 11:03:21 AM
Hi, all. How can i hook up an InternetExplorer object to a WebBrowser control that I have in my windows form. Basically what I want to do is automate the WebBrowser control via the InternetExplorer object (instead of loading iexplorer.exe externally...). Thanks, ...more >>

Beginner C# blogs?
Posted by Marco Shaw at 3/12/2007 11:02:25 AM
Any good C# beginner blogs out there? Marco ...more >>

DataGridView and ComboBox columns
Posted by Chris at 3/12/2007 10:24:38 AM
I am trying to populate a DataGridView Combobox column with a different data binding source (dataset) depending upon a selection made in a previous column. I can handle the previous column but how do I assign the following properties dynamically in code? DataPropertyName DataSource Displa...more >>

Accessing DataGridView column data as an IList
Posted by michael sorens at 3/12/2007 10:20:43 AM
I have a DataGridView bound to a database query result. I would like to pick an arbitrary column from the DataGridView and pass its data to a method that requires it to be an IList. What is the best way to do this?...more >>

DataSet.WriteXml method
Posted by Phil Townsend at 3/12/2007 10:15:21 AM
When using the .WriteXml() method of the Dataset object, is there any way to control how the xml is formatted? In other words, can one specify whether certain values are written as attributes or as elements? Thanks! *** Sent via Developersdex http://www.developersdex.com ***...more >>

Calling a Javascript function from CSharp class.
Posted by Ajit Goel at 3/12/2007 9:41:28 AM
Hi; We have a Javascript function which I have been tasked to move to a CSharp class. This javascript function uses Regular expression extensively. This function has a string input parameter and output parameter. My questions are: a. Can I expose a function in my CSharp code and internally...more >>

Combo Help
Posted by Andy C at 3/12/2007 9:11:03 AM
Hi, Does anyone have an example code snippet from a Windows App that loads a field from a strongly typed DataSet into a Combobox? Even dissecting the DataSet via the Immediate Pane I still can't work out what part of the DataSet I need to load. Thanks very much. Andy...more >>

Dynamically removing Lables Windows forms
Posted by Olan at 3/12/2007 8:21:08 AM
Hi, I'm trying to dynamically remove labels from a windows form in csharp. I have a foreach loop similar to : foreach(Control c in this.Controls) { c.Dispose(); } The code does not find any labels but works fine for othet controls. I'm clearing the entire form (excluding menus) so th...more >>

Creating T From Type
Posted by sternr at 3/12/2007 8:05:16 AM
Hey, I have the following class: public Child<T> { //Some Code } Can I (using Reflection or any other way) create a Child object in runtime without knowing what is T? like this: static object GetChild(Type t) { } Thanks ahead --sternr ...more >>

Get type and value of a MemberInfo m that in fact is a true bool?
Posted by per9000 at 3/12/2007 7:45:20 AM
Hi all, I have a question I am unable solve. I have an inheritance graph like this: // CAR ----- MUSICAR ---- NICECAR // \ \ // \ +------ OLDCAR // \ // +---- HOMEMADECAR All originate from Car. In musiCar I introduce "public bool hasStereo" t...more >>

create/install & start windows service
Posted by softwaresudhir NO[at]SPAM gmail.com at 3/12/2007 3:48:39 AM
Hello, How to create/install & start windows service? Thanks sharwan ...more >>

SQLexpress newbie question
Posted by jed NO[at]SPAM auto-soft.co.za at 3/12/2007 3:20:17 AM
Please help i cant connect to the database in C#Express.I add new data source,i call up the show datasources window.I then drag the table onto the form it automatically sets up the form.But when i run the programme then it doesnt save the data into the database.It seems to just get stuck in the ...more >>

Accessing a Program member from within a Form1 class
Posted by bg_ie NO[at]SPAM yahoo.com at 3/12/2007 2:56:09 AM
Hi, I have my own UserSettings class that I wish to include within my windows application. To include it at the moment, I do something like this - namespace WindowsApplication1 { static class Program { static public UserSettings userSettings = new UserSettings(); ...more >>

c# interview question
Posted by Steve Bugden at 3/12/2007 2:39:05 AM
Hi, I recently had an interview where I was asked a number of questions on C#. Unfortunately I didn't get the answers from the test and find that one of them is still niggling me. It was something like this: Consider the following code: int i = 0; Console.WriteLine("...more >>

System Tray C# App Recieve Keystroke
Posted by ericlangland NO[at]SPAM msn.com at 3/12/2007 12:58:49 AM
Hi, I have a small managed code application (windows forms) that executes on startup and immidiatly minimizes to the system tray. It launches and shows the form when I double click it's small icon in the system tray. So far so good. I'd like for the app to maximize outside of the system tray...more >>

Urgent Memory Leak Problem Using Type Dataset. Please help! :-(
Posted by Simon at 3/12/2007 12:00:00 AM
Hi all, I'm having a baffling problem with a windows service that I'm working on. Basically, I am using a typed dataset to insert a large number of rows into an SQL Server 2005 database. But there's a memory leak that seems to be to do with calling the data adapters update method. It's mak...more >>

FREE C# Backup program
Posted by Apsorakhmer at 3/12/2007 12:00:00 AM
Hi, Anyone interested in C# (zip compression) backup program. If you do go to http://www.apsorakhmer.com Enjoy ...more >>

accessing control from a windowsform through a class file
Posted by KAMAL at 3/12/2007 12:00:00 AM
hi all, I have some unsolving issue. i.e accessing a windowform listview in a classfile. I want access the listview control which is placed in a window form , with full features. Can any body helps. Thank you. Regards, Kamal. ...more >>


DevelopmentNow Blog