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# > recent posts

Re: HttpWebRequest - data is truncated?
Posted by Jon Skeet [C# MVP] at 4/24/2008 10:15:23 PM
Logician <sales@logicians.com> wrote: > I am looking for some help about the method below which partly works. > The problem is that the data returned is truncated in that the > returned data has missing bytes near the beginning of the data. I am > using VS 2005 and C#. The StreamReader is pro...more >>


Re: Determine if assembly is installed in the GAC
Posted by Willy Denoyette [MVP] at 4/24/2008 10:05:13 PM
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin@gmail.com> wrote in message news:e63b059c-0512-40de-a491-9a484a37204f@y38g2000hsy.googlegroups.com... On Apr 24, 12:32 pm, "Cramer" <A...@B.com> wrote: > I'm wondering if there is an easy way to programmatically determine if an > assembly is i...more >>

Re: how to get memory usage
Posted by Willy Denoyette [MVP] at 4/24/2008 9:45:16 PM
"auldh" <auldh@discussions.microsoft.com> wrote in message news:517FFD25-0F09-4894-941A-3F9D245002BC@microsoft.com... > Willy, > if you look at the task manager you see the memory usage column. > but in the "win32_process" i don't see how to find the actual memory > ussage > of the process. ...more >>

Re: Displaying high-res images in .NET?
Posted by Bob Powell [MVP] at 4/24/2008 9:18:53 PM
There are no real solutions to this problem. A 32 bit process has a 2 gigabyte address limit but in reality the usable limits of memory in a .NET program are somewhat less. GDI+ is not well suited to dealing with large images and certainly, a 14000 by 10000 full colour image would hit the s...more >>

Re: Cache in Dlinq
Posted by Andrus at 4/24/2008 9:08:29 PM
Marc, > For info, looked at the EF offering... unfortunately it is harder to > profile, and I don't have my SQL profiler handy; following gets the > right objects at least - but I don't know (until I get a few seconds > to switch servers) how many times it hits the database: Thank you. Have...more >>

Re: Problems Only When Using Run Without Debugging
Posted by Will at 4/24/2008 8:48:18 PM
On Apr 24, 8:30=A0am, Chris Shepherd <c...@nospam.chsh.ca> wrote: > Will wrote: > > Hi Everyone, > > > I have been having a bizarre problem when I do Run Without Debugging > > (I have been doing this do to the intensity of some code which runs > > slow when Debugging). When I run without debug...more >>

using DataSet and property
Posted by Tony Johansson at 4/24/2008 8:22:29 PM
Hello! Here I display all the existing rows in the products table in the database using the TableAdapter fill method to put these rows into the DataTable object. private void quryButton_Click(object sender, EventArgs e) { NorthwindDataSetTableAdapters.ProductsTableAdapter prod...more >>

Re: convert double to string
Posted by Jon Skeet [C# MVP] at 4/24/2008 7:52:06 PM
Denis <Denis.Nicklas@googlemail.com> wrote: > I am trying to convert a double to a string. The problem the value of > the double may vary and I need to always the exact value without the > exponential and without rounding. If you need the absolute *exact* value, you can use the DoubleConverter...more >>



Re: how to get memory usage
Posted by Willy Denoyette [MVP] at 4/24/2008 7:51:10 PM
"auldh" <auldh@discussions.microsoft.com> wrote in message news:A6ECC4F9-164D-49D4-8432-51307EDE6EA4@microsoft.com... >i have need to build a program in C# that will collect specific data for a > service on remote machines. > > i see how i can use "win32_process" to get threadcount and handlec...more >>

Re: Determine if assembly is installed in the GAC
Posted by Willy Denoyette [MVP] at 4/24/2008 7:42:10 PM
"Cramer" <A@B.com> wrote in message news:upVDbjipIHA.3960@TK2MSFTNGP02.phx.gbl... > I'm wondering if there is an easy way to programmatically determine if an > assembly is installed in the GAC. > > This would be similar to our ability to easily determine if a file exists > (File.Exists(path...more >>

Re: getting first element from array
Posted by Jon Skeet [C# MVP] at 4/24/2008 7:34:22 PM
CSharper <csharper@gmx.com> wrote: > Thanks Jon and I appriciate your answer and the link and yes, I will > buy the book (based on the content on your page, it is worth > pursuing...) > I am starting to write a blog for myself and bunch of my friends at > work to keep up with C# and here it the...more >>

Re: getting first element from array
Posted by Jon Skeet [C# MVP] at 4/24/2008 7:33:10 PM
Chris Dunaway <dunawayc@gmail.com> wrote: > On Apr 23, 4:32 pm, Jon Skeet [C# MVP] <sk...@pobox.com> wrote: > > > <shameless plug> > > If you want *lots* of detail, look at chapter 9 in my book - click on > > the image on the left hand side of the page linked above. > > </shameless plug> > ...more >>

Re: Writing a DAL with TDD
Posted by Cramer at 4/24/2008 7:10:44 PM
> Cramer wrote: >> I've finally gotton board with TDD (test driven development) and wow is >> it effective! I went from sceptic to True Believer with my first effort. >> >> My question: According to the various books and articles I have read >> about TDD, a good unit test does not rely on the...more >>

Reading data from a dataset
Posted by sweetiecakes at 4/24/2008 7:10:17 PM
Simple Googling only results filling controls with information -- not this. The scenario is, that I have a whole table in my dataset. I know the ID (autoincrementing integer field) of the row to grab data from in the dataset. How do I get all the data of that row in the dataset?...more >>

Re: Microsoft SQL Server Compact 3.5 (.NET Framework Data Provider for
Posted by Martin Racette at 4/24/2008 6:56:50 PM
Sorry, but those screen do not appear anywhere in the C# or VB Express 2008, and this is all I have to work with "Peter Bromberg [C# MVP]" <pbromberg@yahoo.NoSpamMaam.com> wrote in message news:4A8D32FE-79E2-4292-8C5C-362B7F43F32D@microsoft.com... > See here: > http://erikej.blogspot.com/2...more >>

Re: Process List / Module List problem..
Posted by Peter Duniho at 4/24/2008 6:45:51 PM
On Thu, 24 Apr 2008 17:42:15 -0700, dogatemycomputer@gmail.com = <dogatemycomputer@gmail.com> wrote: > > I'm new to C#. > > I am using the following C# method to populate a TreeView control. If= > you call this method once during the life of form then it works > perfectly. If you cal...more >>

Re: hide public property in propertygrid
Posted by J-L at 4/24/2008 6:25:18 PM
Il se trouve que Marc Gravell a formulé : > [Browsable(false)] > > Marc Thanks a lot Marc, I have found this after :-). While you are here, can you help me a little ? In propertygrid, I use Filenameeditor to display windows dialog box. Is it another editor but to choose a directory ? J...more >>

RE: Adding a reference from the GAC.
Posted by Peter Bromberg [C# MVP] at 4/24/2008 6:13:00 PM
If you set a reference to a local copy of the assembly, .NET always checks the GAC first, I believe. -- Peter To be a success, arm yourself with the tools you need and learn how to use them. Site: http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://ittyurl.net "Fra...more >>

hide public property in propertygrid
Posted by J-L at 4/24/2008 6:06:51 PM
Hi, I have a class with a public property that I don't want to display in ma propertygrid. Is is an attribute to hide this property ? J-L ...more >>

How to write a .NET attribute which does just like ObsoleteAttribute...
Posted by AshokG at 4/24/2008 5:56:46 PM
Hi, In .NET there is attribute named ObsoleteAttribute which is derived from System.Attribute Class. This attribute when applied to a target (class or method etc.) gives a compiler warning/error. I know we can write our own attributes by inheriting the System.Attribute but I want to make i...more >>

Displaying high-res images in .NET?
Posted by Usenet User at 4/24/2008 5:48:51 PM
..NET 1.1/2.0 I have a need to display high-resolution scrollable images in a .NET application (Windows Forms). One well known solution is to create a Panel with AutoScroll set to "true" and then add a PictureBox or another Panel to it, that is used to display the image. The above approach ...more >>

NEW WEB 2.0 MAKES YOU RICH!
Posted by ktwon73 at 4/24/2008 5:47:52 PM
Hello, I found this new FULL INTERNET UPGRADE technology that is about to upgrade THE ENTIRE INTERNET to Web 2.0 standards and IT'S FREE! Plus, they are giving away ONE MILLION DOLLARS to spread the word about it - and you can get a share for helping - NO COST! Check it out at: http://ww...more >>

Process List / Module List problem..
Posted by dogatemycomputer@gmail.com at 4/24/2008 5:42:15 PM
I'm new to C#. I am using the following C# method to populate a TreeView control. If you call this method once during the life of form then it works perfectly. If you call the method a second time (without closing and reloading the app) then the process list populates the TreeView control...more >>

Re: Writing a DAL with TDD
Posted by Ben Voigt [C++ MVP] at 4/24/2008 5:07:00 PM
mgsram wrote: > On Apr 24, 11:52 am, "Ben Voigt [C++ MVP]" <r...@nospam.nospam> wrote: >> Cramer wrote: >>> I've finally gotton board with TDD (test driven development) and wow >>> is it effective! I went from sceptic to True Believer with my first >>> effort. >>> My question: According to the...more >>

Re: Displaying high-res images in .NET?
Posted by Ben Voigt [C++ MVP] at 4/24/2008 5:04:02 PM
Bob Powell [MVP] wrote: > There are no real solutions to this problem. A 32 bit process has a 2 > gigabyte address limit but in reality the usable limits of memory in > a .NET program are somewhat less. At least, potential solutions such as MapViewOfFile aren't very accessible from C#. > ...more >>

Re: delegate instance
Posted by colin at 4/24/2008 4:55:00 PM
oooh that looks cool, I didnt come accros that, theres quite a lot to read... why is the information I need always so hard to find that I have to make so many posts here lol. many thanks Colin =^.^= "Ben Voigt [C++ MVP]" <rbv@nospam.nospam> wrote in message news:%23K4KpJipIHA.2064@TK2M...more >>

Re: newbie inheritance question
Posted by Paul E Collins at 4/24/2008 4:53:34 PM
"Paul E Collins" <find_my_real_address@CL4.org> wrote: > [...] because static methods are not inherited. Ugh, sorry, I'm apparently half-asleep. Static methods are inherited in the sense that they're available to the derived class. I meant that there's only one implementation that cannot b...more >>

Re: newbie inheritance question
Posted by Paul E Collins at 4/24/2008 4:50:14 PM
"Paul E Collins" <find_my_real_address@CL4.org> wrote: > you could try something along these lines: Or you could just make the GetSomething method static, so you don't *need* an instance. That might be more useful for your purposes, but then you don't need the inheritance at all because st...more >>

Re: newbie inheritance question
Posted by Paul E Collins at 4/24/2008 4:46:51 PM
"BillE" <belgie@datamti.com> wrote: > I have a C# console application. > The class which contains the "static void Main()" method inherits from > a base class. > The base class contains a function GetSomething() > When I try to call this function GetSomething from Main(), I get the > error...more >>

Re: creating multiple variables with a loop
Posted by Paul E Collins at 4/24/2008 4:42:58 PM
"AMP" <ampeloso@gmail.com> wrote: > UInt32.TryParse((multiArrayofData[x, 1, 0] + multiArrayofData[x, 1, > 1]), System.Globalization.NumberStyles.HexNumber, null, out chans[r]); > with this error: A property or indexer may not be passed as an out or > ref parameter. Well, chans[r] is an in...more >>


DevelopmentNow Blog