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# > may 2006 > threads for tuesday may 2

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

Dynamic UI
Posted by DH at 5/2/2006 6:41:15 PM
Hi All I was wondering if anyone could point me to some good resources on creating dynamic winforms. I would like to allow users to add, position and resize buttons on a winform. Cheers, DH ...more >>


Want a key value collection that maintains ordering
Posted by illegal.prime NO[at]SPAM gmail.com at 5/2/2006 4:21:30 PM
Hi all, is there a key value collection in .Net that maintains the ordering in which I add items. I'm finding that I'm creating a number of classes that contain a name and then some object. I would prefer just to use some collection that maintains the ordering in which I add things (like Arra...more >>

Same ConnectionString in designTime & runtime from App.Config. How?
Posted by A.Neves at 5/2/2006 3:28:15 PM
Hi, I'd like to have my ConnectionString retrieved from the same place in RunTime or in DesignTime (in VS2005). Is It possible? How? Any help would be very much appreciated. Thanks. ...more >>

Copy files to a shared folder with User /pass
Posted by Dámaso Velázquez Álvarez at 5/2/2006 3:03:59 PM
Hi, I need to copy files to a shared folder protected by username/password. I don't now autenticate me in the server to copy the files. Do I need to use the credentials to do it? How can i do it? Anybody can help me? Thanks. ...more >>

Architecture with a DataReader
Posted by Andrew Robinson at 5/2/2006 2:42:33 PM
I am working on a data access layer using a pattern that I see more and more. Define a class that is a data container that is then added to a generic List<>. I am then using this List and support classes in conjunction with an objectDataSource control. public class Item { public Item(...more >>

web services and multi-threading
Posted by VMI at 5/2/2006 2:35:01 PM
I'm working on a web service that processes an ascii file by storing its information in a sql server table. This process takes a few minutes to complete, so I want to display something in the aspx that's consuming this service (a counter or a progressbar) while it's running. How can I update ...more >>

Help me with this error message
Posted by amita at 5/2/2006 1:04:02 PM
when i am writing a program in c# using windows app I am getting this error message as System.Windows.Forms.Control.Text is inaccessable due to its protection level. In the design window when i am placing some controls like textbox,label and button.---my code the code displayed is as follo...more >>

string limit
Posted by tshad at 5/2/2006 12:09:20 PM
Is there a string limit is C#? I have a Textbox that I am allowing users to paste into (can be a word document). But I am finding that I am losing data when I write large files to my Sql Server database. The fields is set to text. The data is kept in an object in a "string" variable wh...more >>



Is this possible?
Posted by mitch NO[at]SPAM bmtmis.demon.co.uk at 5/2/2006 11:26:00 AM
In a c# client I have the following: double [] data = {1.0,2.0,3.0,4.0}; I have an OCX wriiten in c++ using dev studio 6.0. Can I pass the array to the OCX? How would you do this? I've looked and looked and failed so far. Is it possible? Thanks, Mitch. ...more >>

Sorting dataset (C#)
Posted by Hushpappy at 5/2/2006 10:50:23 AM
Hello, I'm trying to sort a dataset, for some reason, when i use the writeXml of the dataset obeject I don't see any change. i'm trying to put the view into a dataview and then sort it but nothings happens. please advise. ...more >>

Controls overlap
Posted by Dan Aldean at 5/2/2006 10:50:12 AM
Hello, I place in a web application some controls: labels, text boxes, buttons. Labels tend to overlap the text boxes if the text is long and the text box is not placed far enough from the label. Is there a good method to determine where to place the controls so that they do not overlap? Can ...more >>

DropDownList DataTextField and ToString()
Posted by Andrew Robinson at 5/2/2006 10:47:08 AM
I am binding a List<Item> to a asp:DropDownList control. Is there any way to bind to the ToString() method of the Item class or can I only specify a property? The same goes for a Bind("") field on a GridView. I am guessing not, but throught that I would ask. -- Andrew Robinson ...more >>

How to add total in datagridview
Posted by amit.vasu NO[at]SPAM gmail.com at 5/2/2006 9:59:03 AM
Hi I am using visual studio 2005 windows forms to create an application. The heart of the application is datagridview which reads the data from the database and display result to the user. Now the data is numeric value and Some column needs to add total of the column at the bottom of the da...more >>

C# fixed array in structure
Posted by dzar at 5/2/2006 9:49:39 AM
I'm new to C# and have the following problem that I hope is simple for you C# experts out there! I have a need to call an unmanaged DLL (written in C) that needs the following structure defined (C syntax): typedef struct { BITMAPINFOHEADER bmiHeader; RGBQUAD bmiColors[256]; } bmBI...more >>

What is the equivalent of a Java package in .Net
Posted by vivekian at 5/2/2006 9:28:32 AM
Hi , New to dot net and C# and was wondering what is the equivalent of a java package in dot net ? thanks, vivekian ...more >>

Inherited form doesn't have controls from parent
Posted by Steve Teeples at 5/2/2006 9:06:03 AM
I have a simple form with a panel that is docked in the base form. The panel has three controls - two buttons and one treeview. I use "Inherited Form" when creating a second form derived from this parent form. The only thing is there are no controls in the inherited form. I made all the b...more >>

starting application with a service.
Posted by Lamis at 5/2/2006 7:14:02 AM
Hi, i have just created my first Windows service and it is working great.. my problem is that I need to start an application in my service: protected override void OnStart(string[] args) { eventLog1.WriteEntry("In OnStart"); this.frm = new Form1(); this.frm.Show(); } I can't find my...more >>

Change my hostname
Posted by Lamis at 5/2/2006 7:11:02 AM
Hi, I need to change my hostname in my machine using .Net and C# thanx for the help -- LZ...more >>

Threading: Stopping, restarting, etc
Posted by Steve at 5/2/2006 6:54:51 AM
I'm having a problem with my Thread usage and I think the general design of how I'm working with them. My UI class calls a method in another class that does a lot of work. That "worker" class looks something like this(pseudo code): class WorkerClass { Thread _listenerThread; pu...more >>

Global variables in windows forms
Posted by None at 5/2/2006 5:41:14 AM
Hi, I want to maintain gloabl variables in windows forms like session in asp.net. How can i do this. Is there anyway to do this? If anybody knows the solution pls let me know.. Thanks and Regards, Vinothkumar B bvinoth@tvsinfotech.com ...more >>

Removing Context Menu Items
Posted by WhiteWizard at 5/2/2006 5:19:02 AM
I have an Windows app that allows users to save "bookmarks", on pages they have been to, and then navigate back to them. That all works. In addition, we have restricted them to 15 bookmarks, and if they select a 16th, the first one in is popped out. I am attaching a Context Menu to a button on...more >>

Custom compiler warning message
Posted by Sorskoot at 5/2/2006 5:09:57 AM
Hi, I'm currently building a DoublePoint class as an extention on the standard Point and PointF classes. The DoublePoint class will be part of a bigger library and may be used by serveral people. It's posible to convert from Point to DoublePoint. But when this is done implicit I would like to...more >>

how to trim off trailing spaces and or commas from a string - thankyou
Posted by garyusenet NO[at]SPAM myway.com at 5/2/2006 3:51:56 AM
In my continuing education regarding string manipulation, can someone advise me how to take any trailing spaces, and commas from a string. these strings are comming from the streamreader for instance. string 1 = 'abcd ' string 2 = 'abc,' and i want the string mapped to string1 t...more >>

Inheritance
Posted by Al at 5/2/2006 3:50:01 AM
Hi, I have a class (ClassA) which inherits another class (ClassB). I need to instantiate ClassB using a value determined in ClassA's constructor - ie can I have a constructor as follows; public ClassA() { //Do various things base(iMyValue); } ....instead of... public ClassA() : base(...more >>

How do I create Toolbar Dropdown Button?
Posted by Joseph Geretz at 5/2/2006 3:25:54 AM
I'm writing an Addin for Outlook using C#. I am able to create the interface to my Addin by adding Menus and Buttons to the Outlook Menu and Toolbar, respectively. I'd like to add one particular button to the Toolbar, but I'd like it to function like a menu. Basically, like the native 'New'...more >>

Best way to retrieve more than one field in a single record
Posted by zoro at 5/2/2006 2:44:33 AM
Hi, I am looking for the recommended way to retrieve several values from a single record, i.e. a typical lookup scenario. An example would be a query that needs to retrieve user_name, user_addres, user_email for a given user. I know that if I had to get a single values I should use the Command...more >>

How to check if a string starts with a certain character
Posted by garyusenet NO[at]SPAM myway.com at 5/2/2006 2:11:25 AM
Hello, Can someone tell me how to check if a string variable starts with a dash. ' - ' Thanks, Gary. ...more >>

Write Formatted text in a doc file
Posted by sonu at 5/2/2006 12:23:48 AM
I am getting some data 'strData' from database through reader object. The data 'strData' is sent to a doc using FilesystemObject line by line in doc file located on a specific location. 1.Code for writting line to doc is: ////////////////// Dim objReader As StreamWriter ...more >>

Help with csharp and regex
Posted by BILOAGA at 5/2/2006 12:06:32 AM
Hi I want to add the patern <font face="verdana,sans-serif\" into string patern = @"<font face="verdana,sans-serif\""; how I do it? It is not correct the way I do it Anyone can help me ? ...more >>

OT: HTML Generator
Posted by Materialised at 5/2/2006 12:00:00 AM
Hello all; Sorry about the offtopic post. I am wondering if a add-in exists for Visual Studio 2005, which will automatically format highlighted code to HTML. The type of output I am looking for is something similar to what enscript for Linux/Unix systems will generate with the colour flag set...more >>

Clickonce deployment and args
Posted by Anders Elm=e9n at 5/2/2006 12:00:00 AM
Hi! I have an application as takes 1 argument. When i start the application from the command line it works, but after clickonce deployment the deployed my.application does not takes arguments. The assembly is deployed using an unc path. How do pass an argument to the application? The cod...more >>

Mouse over location
Posted by at 5/2/2006 12:00:00 AM
Hello C-Sharpers, Lets say i have a UserControl which draws a circle of radius r at co-ordinates x,y. How can i tell if the cursor is currently inside or outside of the circle? thank you, bk ...more >>

get default program name
Posted by Nico at 5/2/2006 12:00:00 AM
Hi all, Is there a way in C# to know which program will be launched when I do: Process.Start(new ProcessStartInfo(@"C:\video\test.avi")); thanks in advance for your help....more >>

Replacing international characters
Posted by Alain at 5/2/2006 12:00:00 AM
Hi, I am working on a project where I need to convert international characters with acii values. Like André -> andre and Björn -> bjorn. How can I do this without replacing every single character? lastname = lastname.Replace("â", "a"); lastname = lastname.Replace("é", "e"); lastname = l...more >>

Security question...
Posted by Jacek Jurkowski at 5/2/2006 12:00:00 AM
My application (Net Framework 2.0 C#) is connecting to a remote server running SQLServer2005. When it does, a firewalls are activating asking me if I really do want to allow my application to connect. Whatever i chose (allow or not) the connection to SQL server fails because firewalls are blocki...more >>

Aborting threads
Posted by Mantorok at 5/2/2006 12:00:00 AM
Hi all I have an app that can kick off one or more threads, a thread will run a COM EXE Server. What I want to do is provide the facility to cancel a thread that is running, and also, when the app closes down to close all running threads. What's the best way to achieve this without runn...more >>

Remoting question
Posted by Sagaert Johan at 5/2/2006 12:00:00 AM
Hi Can remoting fit the following problem ? I have a client PC with a form containing an RTF Control. Can i from another PC using remoting write to the RTF Control on the client PC so it appears on the clients PC screen ? J ...more >>


DevelopmentNow Blog