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 friday march 9

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

OpenSubKey return null though the key exist
Posted by Han Qiao at 3/9/2007 9:50:18 PM
Hi, I'm trying to open this key "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications", and "HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache" but it returns me null. Anyone know why is that so? Thanks in advance. -- (^oo^) 百 as pure as snow...more >>


Benchmarking C#, what is the most efficient way of running console code?
Posted by Wisgary at 3/9/2007 9:01:53 PM
I'm doing some benchmarking tests to compare Microsoft's CLR against Mono's CLR. I could use some suggestions for how to objectively compare the code. To my surprise the few tests I've run so far have had Mono running quite a bit faster than Vanilla .NET on my Windows XP installation, which has ...more >>

DeskTopBounds adds a view pixels?
Posted by Marcel Brekelmans at 3/9/2007 9:00:51 PM
Hello, I save and restore the position and dimensions of a form using 'this.DeskTopBounds'. However, every time I open the form its Height grows with 19 or so pixels! Is there something I should subtract from the DeskTopBounds Rectangle's Height value? Thanks, Marcel ...more >>

Setting the height of the caption bar
Posted by Ruben van Engelenburg at 3/9/2007 7:40:35 PM
Hi all, Is there a way to set the height of the caption bar of a form? I know I can retrieve the height using the SystemInformation class, but I'd like to change it too to make it smaller. The only options I seem to have is changing the border style to remove the whole caption bar, but that...more >>

Regex string extraction - help needed
Posted by TheSteph at 3/9/2007 7:10:32 PM
Hi, I'm new to Regex.. Could someone show me how I can extract substring enclosed in [] ? Example : Source String : "hjklhjlhjl [PARAM1] hjhlhjl [PARAM2] jsqdhjldhl" Regex Match: [PARAM1] [PARAM2] I Googeled it, found anything but that ki...more >>

MessageQueue Event for new messages
Posted by Dave Booker at 3/9/2007 5:54:02 PM
Is there any way to create an event that notifies when a message is added to a MessageQueue, without resorting to polling the MessageQueue? I.e., suppose we have a MessageQueue with several messages still in queue. My process wants to know when a new message (of any sort) is added to the q...more >>

Stop a Windows Control from getting to Small?
Posted by iKiLL at 3/9/2007 4:33:40 PM
Hi All i am developing a Windows Mobile User Controll and i need to make sure that it is not sized to small. i am developing in C# with CF2 for Windows Mobile 5. How is this done? i am hoping there is like a Min width and height propertiy. Thnaks ink ...more >>

Programming the User-Account_Property using C#
Posted by Chris Noble at 3/9/2007 4:01:34 PM
I am not sure that I have picked the right newsgroup for this post. I am writing a program in C# VS 2005 to create user accounts for our students in Active Directory. This is to replace a program I wrote some years ago in VS6 using C++ and ADSI. I am trying not to use ADSI in my new progr...more >>



generic inheriting from strongly-typed Dictionary
Posted by John Grandy at 3/9/2007 3:12:41 PM
What is the correct syntax for the following : Public Class EnumList<T> : Dictionary<int, T> { } Or is this even possible ? ...more >>

How to convert a byte array to a string in C#
Posted by Jo at 3/9/2007 3:04:04 PM
TIA for the help! ...more >>

Object Design Best Practice
Posted by Steve at 3/9/2007 2:58:19 PM
I am building an object library for tables in a database. What is the best practice for creating objects like this? For example, say I have the following tables in my database: User: - Id - FirstName - LastName - CompanyId (many-to-one [Users to Company]) Company: - Id - Name - Addre...more >>

return value cannot be ref or out
Posted by Zytan at 3/9/2007 2:04:23 PM
It seems I cannot return a reference to a value type as the return value of a method. I will have to use an out parameter instead. Is there another way to do it? Zytan ...more >>

Question on Locking and Deadlocks
Posted by Chris Newby at 3/9/2007 2:00:37 PM
I'm trying to undertand some details on the C# "lock" statement. I came across some code during a review and thought I spotted a deadlock scenario, but the programmer said he'd taken it from a reliable source. Does the following code contain a potential deadlock? or are the locks granted to...more >>

How do you bypass cells in a "DataGridView"
Posted by Michael Torville at 3/9/2007 12:13:13 PM
Does anyone know if it's possible to prevent a user from entering a particular "DataGridView" cell. I simply want to redirect them into the next available cell but nothing I try works. Setting the "CurrentCell" property for instance causes no end of problems. If I call it in a "CellEnter" ha...more >>

button_click
Posted by Chris at 3/9/2007 10:11:00 AM
Is this the correct code to have one button execute the code of anothe rbutton? private void printToolStripMenuItem_Click(object sender, EventArgs e) { printToolStripMenuItem.Click += new EventHandler( buttonLoad_Click); }...more >>

File Selection Dialog
Posted by marathoner at 3/9/2007 10:07:28 AM
How do we invoke the file selection dialog? I would like to do this in C# in ASP.net. I would like to open a file for reading. Marathoner ...more >>

How do I dynamically resize portion of form with WinForms splitter control on it.
Posted by JDeats at 3/9/2007 10:00:50 AM
I have a simple WinForm with a WinForms splitter down the middle. I would like to make it so when the user clicks on a button inside the left portion of the screen (the panel to the splitters left) that portion of the form is reduced in size by about 90% (I want to shrink this area of the of the...more >>

CLS complaint = Operators should not be overloaded
Posted by Zytan at 3/9/2007 9:06:37 AM
http://www.devarticles.com/c/a/C-Sharp/Making-Your-Code-CLS-Compliant/ Does anyone follow this? I know it's good to not have to deal with unsigned types in the interface, so that's great. But CLS compliance is quite strict: "Only properties and methods may be overloaded, Operators should n...more >>

Web Service export enum to consumer
Posted by bsma1 NO[at]SPAM hotmail.com at 3/9/2007 8:25:22 AM
I building a web service that has an enum I want the consuming application to be able to use. I have the enum declared in the web service as: public enum myEnum { ONE = 1, TWO = 2, }; I want to be able to access these from the consuming application such as: myConsumer.localhost.myEnum...more >>

How to find a particular program is running or not?
Posted by DBC User at 3/9/2007 7:52:04 AM
I have a program which ccan be called multiple times. Each time, it will open a window and the windows title has unique name. I do not have any control over this program. I want to know is there a way to find out which are all the windows open and also how to identify the windows title? I wan...more >>

need some help!
Posted by rcoco at 3/9/2007 7:26:25 AM
Hi everyone, I'm having trouble with a datagrid that is supposed to insert data. But one row has to insert data in the data base using Radio button. So I created two buttons one of Bad Mood then the other one is Good mood. when one is selected, the data is to be inserted into the database. this...more >>

No ItemDataBound event in DataGridView - help!
Posted by teddysnips NO[at]SPAM hotmail.com at 3/9/2007 7:02:16 AM
I come from a VB background and I'm on my first C# project. I have a panel with a DataGridView control. When the program is first run, the panel is instantiated with 4,000 empty rows (this is a business requirement. Trust me.) At some time in the life of the program the user will attempt t...more >>

Crystal Reports: Display data according to session
Posted by weird0 at 3/9/2007 6:40:19 AM
I am trying to display a crystal report in .aspx page. I created a dataset for that but i wrote the query: SELECT atm_amount,atm_branch,atm_date,balance FROM ATM_Transactions WHERE user_id=Session["UserId"].ToCharArray() But this query does not work.... I dont have much knowledge how...more >>

Refrencing another project class
Posted by JPS at 3/9/2007 5:21:46 AM
When I have two projects open in a solution and I want a class from one to refrence/inherit from the class of another, what is the proper syntax. I know it has to do with the namspaces, but I'm not 100% sure ...more >>

Free Online CSharp 2 Windows Course
Posted by auratius NO[at]SPAM gmail.com at 3/9/2007 2:44:05 AM
http://www.auratius.co.za/index.html C# 2.0 Programming for Windows Applications [Introduction to .Net] Introduction to .NET Overview of the .NET Framework How .NET is Different from Traditional Programming Common Language Runtime (CLR) Common Language Specification (CLS) Common Type Syste...more >>

SQLexpress newbie question
Posted by jed NO[at]SPAM auto-soft.co.za at 3/9/2007 2:31:24 AM
I had developed a data app in C#express.When i add records to the database in shows on the screen that it has been added but when i close the app all the records are lost.I created the database in VisualStudio using SQLexpress.I am beginner please help ...more >>

how to send NULL to database?
Posted by Bllich at 3/9/2007 1:29:00 AM
hy, I have int column 'number' in my table that allowes nulls when I instance a dataTable in my winform app. and I want to do table.AddTableRow(string name, int number); I need to send null value for 'number' to my table. I don't know how.. I tried with Nullable<int> and else .. didn't work. ...more >>

Resharper: how to roll #region
Posted by mamin NO[at]SPAM o2.pl at 3/9/2007 12:37:00 AM
Is there any shortcut to roll #region in VisualStudio 2005 or in Resharper ? Or maybe there's somewhere an option that causes that after openinig cs file all regions are rolled? ...more >>

How ca I syncronize scrollbar with two richedit scrolls?
Posted by Iker Llanos at 3/9/2007 12:33:20 AM
I want to synchronize one scrollbar with the movement of the scrollbar of two richedit. How can I do it? Thanks -- La ventaja de ser inteligente es que así resulta más fácil pasar por tonto. Lo contrario es mucho más difícil....more >>

Some ADO.NET Mobile Advice please.
Posted by iKiLL at 3/9/2007 12:00:00 AM
Hi all I am building an Windows Mobile 5 forms control in C#, for a Windows Mobile 5 application. I am using CF2.0 and SQL Mobile 2005. The control is a Questions and answer control. Basically I have 3 applications using the same code to dynamically display questions and sav...more >>

Convert a string?
Posted by G at 3/9/2007 12:00:00 AM
Hello, I would like to convert string "I am a fish" into a hex string if easy? Fairly new to .NET and have looked on google etc without much luck. Any help appreciated, Gary....more >>

How To Change or modify Embedded String Resource In An Assembly.
Posted by raghu sunkara at 3/9/2007 12:00:00 AM
Hi, How Can i Change or Modify Embedded String Resource In An Assembly. I Need To Modify Embedded String Resource In An Assembly. Please Help Me. Thanks Raghu. ...more >>


DevelopmentNow Blog