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 saturday november 24

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

Width an decimal places of DbLinQ property
Posted by Andrus at 11/24/2007 10:51:46 PM
I have lot of columns in database like Price Numeric(5,2) Street Character(30) For UI display and validation I need to retrieve width and for numeric properties, decimal places of corresponding DbLinq property. pgsqlmetal generates code for column properies without width and decimal ...more >>


Parameter contents changing after class creation
Posted by Picqua@gmail.com at 11/24/2007 10:09:06 PM
I'm having trouble with a class that accepts an ArrayList as a parameter. The code looks something like this: ArrayList arrayOne = new ArrayList(); arrayOne.Add("Hello "); arrayOne.Add("There!"); someClass sc1 = new someClass(arrayOne); arrayOne.Clear(); arrayOne.Add("Oh "); arrayOne...more >>

No memo control in C#
Posted by Rob Stevens at 11/24/2007 8:57:50 PM
I am writing my first PPC program in C#, but I just noticed that there is no memo control in my toolbox by default. What is the procedure of installing a memo into the toolbox? Thanks ...more >>

C# Code Checker
Posted by Paul Jones at 11/24/2007 7:40:44 PM
Does anyone know if there is a C# code checker that will spot any (or preferably all) of the following: - Unused parameters in functions; - Unused functions; - Wrong scope (of functions, variables, enums, etc.,) e.g. can their scope be reduced from public to protected or private. Thanks, P...more >>

newbie question about data persistence
Posted by Peter Webb at 11/24/2007 5:59:03 PM
Sorry about the stupid newbie questions, but some things aren't very well explained in the doco ... at least that I can find. I do something in my code that works just fine, trouble is I don't know why. Here is is .. namespace WindowsApplication1 { public partial class Form1 : Form ...more >>

Hidden data in ListBox/ListView items?
Posted by markliam@gmail.com at 11/24/2007 5:26:53 PM
I have a ListBox that is displaying a formatted string based on the contents of a DataSet. The purpose of the listbox is for the user to select an entry to delete, but I'm not sure how to match the listbox entry with the corresponding DataRow. The DataRow contains a unique id, but the id is n...more >>

Nested Generic Dictionary Declaration
Posted by David Morris at 11/24/2007 4:39:00 PM
I am trying to create a nested Dictionary and get an error that seems odd to me. Here is my declaration: private IDictionary<Guid, IDictionary<Guid, string>> myNestedDictionary = new Dictionary<Guid, Dictionary<Guid, string>>(); I get an error unless I nest a Diction...more >>

How about this syntactic candy?
Posted by Hilton at 11/24/2007 4:22:46 PM
Hi, for (int i = 0; i < list.Count; i++) has a hidden performance hit; i.e. list.Count gets evaluated each time, so we write something like: int listCount = list.Count; for (int i = 0; i < listCount; i++) How about simply: for (int i = 0; i < const list.Count; i++) I think it lo...more >>



SendMessage mouse click to treeview node
Posted by R.A.F. at 11/24/2007 3:47:47 PM
Hi, I would like simulate a mouse click on on of my treeview nodes when my form opens. for that i was thinking to use the same simple way as under C++ : SendMessage(TreeView.Nodes[0].Handle, WM_LBUTTONDOWN,0,0); but it does not work. i do not get any error message and application runs...more >>

How to renumber cell content in DataGridView column
Posted by Tim Sprout at 11/24/2007 3:06:12 PM
I have about a year's experience with C#. How can one rename a column of cell value numbers from an Access database in a DataGridView? Say, have: 4 3 6 5 8 7 as cell values, want: 1 2 3 4 5 6 Thanks, --Tim Sprout ...more >>

what is wrong with save code
Posted by forum.microsoft.com at 11/24/2007 2:45:05 PM
inserted record is present only in the dataset/bindingsource but not in the sql table same for updated record, changes is only in the dataset or the bindingsource but not in the actual physical sql table. If I refill from table I will not find any changes. Also the primary key name in the...more >>

Check Size of Web File Before Downloading it?
Posted by jehugaleahsa@gmail.com at 11/24/2007 2:05:08 PM
Hello: Is it possible to request the size of a file given a URL? I would like to ignore files less than a user-specified value, but I don't think I should have to download it first, just to find out. Any help? Thanks, Travis...more >>

Faking Referer URL with WebClient
Posted by jehugaleahsa@gmail.com at 11/24/2007 1:29:07 PM
Hello: How is it possible to specify the referrer's URL when using WebClient. A lot of sites do not allow hotlinking, which is problematic for my application. However, if I use the web site with the link in it, I will be able to get access. Could someone send me an example of setting the re...more >>

.NET 3.5 Runtime
Posted by Peter Morris at 11/24/2007 12:29:56 PM
Is it true that to get the .NET 3.5 runtime onto a fresh XP installation requires a 200MB download? ...more >>

using Intercase and inheritance
Posted by Tony Johansson at 11/24/2007 12:20:03 PM
Hello! Assume I have this IComparable interface and I implement this IComparable in my class called MyTop see below. If I now inherit a new class called MySub from MyTop this new class is not obliged to implement this IComparable interface isn't that strange. Wouldn't it be more correct to ...more >>

encrypting licenses
Posted by ReneMarxis at 11/24/2007 7:57:32 AM
Hello i have one question reguarding crypting. First let me explain what i like to do: I need to pass some licese files to customers. Everything needs to be done "offline" which requires me to send files to the customer that include the license I like to encrypt the license file in one appli...more >>

Get assembly info. Thank You.
Posted by shapper at 11/24/2007 6:53:19 AM
Hello, I created an DLL Library which includes various web controls, classes, ... I would like to create a class, named Info, with a function that would return some information about the library like its version, copyright, etc. A user that uses this library in its web site could do some...more >>

C# - Email problems
Posted by Eugene Vital at 11/24/2007 6:41:53 AM
Hi all I am having trouble with sending email via a C#2.0 application, I use the same settings as I use in Outlook but I cannot get email to send. I am trying to use SSL on port 465 and get the error below, If I disable SSL and use port 587 all goes well. I have been Googling for 2 days...more >>

update query in ms-access doesn't working
Posted by abhilashcashok@gmail.com at 11/24/2007 3:18:04 AM
hi guys, my prblem is that I cannot update sql query against MS ACCESS using C#. Everytime wen i do so, i got an exception (at runtime) as 'UPDATE syntax not correct'. I don find any error in my 'update' syntax. I can successfully run other dbase operations like insertion, deletion & all.; ...more >>

Dynamic SplitterDistance
Posted by Tom at 11/24/2007 2:30:20 AM
My goal is to dynamically adjust a SplitContainer's vertical split between a directory TreeView on the left and a detailed file ListView on the right. The code is working but does not initialize correctly. Rough Method >> 1) Autosize columns by setting widths = -1. 2) Clear items from li...more >>

File.Copy
Posted by rgw1@hotmail.com at 11/24/2007 12:18:12 AM
Hello, Can anyone help with this? I am using C# with IIS 6.0 on Windows 2003 Server. I am trying to copy a file over the network. It is attempting to copy a file on a NAS (external hard drive), which is Linux based. I have already set the permission on the NAS and I can copy files manually ...more >>


DevelopmentNow Blog