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 2007 > threads for saturday may 19

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

Capturing image of a hidden control (webbrowser)...
Posted by - Electronic.HR - at 5/19/2007 10:49:59 PM
So, my problem is that i have to get picture from this site (the one with code on it), but I can't figure out how to do that. Picture is generated from php code, and I can't find way to save that image. Now, my web browser control (axWebBrowser) is hidden on the form and there's problem wi...more >>

Calling generic method with a T parameter determined at runtime
Posted by Anders Borum at 5/19/2007 9:23:25 PM
Hello! I'm trying to call a generic method by providing the T parameter at runtime, as opposed to compile time (i.e. by specifying the T parameter in the method call). I was under the impression that the CLR was able to infer the T type dynamically - perhaps I was wrong or simply "asking th...more >>

Clear Recent Project items from Start Page
Posted by Maarten van Stam [MVP VSTO] at 5/19/2007 9:12:22 PM
I posted a feedback item in Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=277761 Please have a look at this, as I think it is a relative small feature request that could be easily solved but was rejected all the time in the VS 2005 cycle. I...more >>

Something wrong with the code
Posted by David McCallum at 5/19/2007 8:22:51 PM
The object of the code snippet below is to save and restore a form's size and location. The saveFormSettings() method is called when a form is closing and restoreFormSettings() is called after InitializeComponent(). The problem is even though the settings appear to be being saved, the strWi...more >>

Serialize Hashtable to readable format?
Posted by Jen at 5/19/2007 6:58:59 PM
I have a Hashtable serializing to a binary file ok but I really would like the file to be in XML format or other readable format. I DO NOT want to change all my code, I want to keep the Hashtable in place. Is there an easy way to serialize/deserialize to/from something readable instead of bi...more >>

Removing items from a Hashtable in a loop?
Posted by Jen at 5/19/2007 6:52:59 PM
The usual trick to get around the "collection was modified" problem by looping through the collection backwards by index won't work with a Hashtable because there is no way to access by index, right? How do I loop through a Hashtable to selectively remove items? ...more >>

newbie needs help accessing ResultPropertyValueCollection
Posted by Neil Chambers at 5/19/2007 5:43:08 PM
Hi all, I'm converting a Powershell script I have into C# but I've hit a hurdle right out of the gate . . . I can't seem to access the (string) value of a ResultPropertyValueCollection - all I get is the object type returned. In the following example I'm enumerating the SearchResult Prope...more >>

Combo that displays tree.?
Posted by perspolis at 5/19/2007 5:26:53 PM
Hi all I'm looking for a Combobox that displays tree. Does anyone has a source code for that??? thanks in advance ...more >>



Can lock into a dispose?
Posted by BLUE at 5/19/2007 5:26:05 PM
I've a class A that implements IDisposable interface and has a method that start a thread. In Dispose(bool) can I use the lock keyword to wait for thread exit before disposing resources it use or it's enough to pay attention when disposing objects of type A from "consumer" classes? Thank...more >>

"DataSet.Merge()" simple problem
Posted by Mark Chambers at 5/19/2007 10:29:55 AM
Hi there, Can anyone explain the following (very) simple scenario. 1) I make an exact copy of my "DataSet" and delete one record from a given table (in the copy) 2) I invoke "DataSet.GetChanges()" on the above copy and pass the results to "DataSet.Merge()" on the original copy 3) If I no...more >>

Add relationships between tables c# VS2005 Server Explorer
Posted by morleyc NO[at]SPAM gmail.com at 5/19/2007 10:09:22 AM
Hi, i've started a c# project using MS compact SQL as a datasource. I am able to add tables in the server explorer and columns in these tables, but how can i add relationships between tables (define a column as a foreign key), such that when i add the tables as a datasource the relationship is a...more >>

Adventures in Excel
Posted by Rahvyn at 5/19/2007 9:29:18 AM
Hi All; I'm working on a simple desktop application that does the following: 1 - Reads in an Excel spreadsheet into a DataGridView as follows: try { string strConnectionString = ""; if (header) { strConnect...more >>

STA/MTA
Posted by mehdi at 5/19/2007 5:17:27 AM
Hi folks, I would like to know whether the ApartmentState (and specifically, the Thread's SetApartmentState method) addresses the "COM Apartments". i.e., does it only affect the threading model of those COM components that's being referenced via an Interop Assembly within the .NET FX? TIA, M...more >>

Regex multiline option does't work - why?
Posted by ommail NO[at]SPAM wp.pl at 5/19/2007 4:39:28 AM
Hi! I have a simple regural expression: \w+$ and text to match: abc dddd ggg hhh It should match three times: dddd ggg hhh but it only match once (for hhh). Why? I USE multiline option so $ should match end of each line. (I checked it in Python and Java and in these languages it...more >>

How to obtain template for .Net 3.0 with vs2005 ?
Posted by timor.super NO[at]SPAM gmail.com at 5/19/2007 12:15:41 AM
Hi all, i would like to work with the framework dotnet 3.0, so i've installed the Microsoft .NET Framework 3.0 Redistributable Package. Then I've installed the Windows Vista SDK. But, I've no project template to make an 3.0 application. What should i do ? I work with Visual Studio 2005 te...more >>

Configuring AspNetSqlProvider to use a different database
Posted by Mike at 5/19/2007 12:00:00 AM
I need to configure the provider to use a database in SQL Server instead of the SQL Express database default, but the admin tool does not give any options to change the database. Does anyone know how to change this configuration? I tried to change default connection in web.config file. Now...more >>

class inherited, what about its resources(particually imageList)
Posted by Ryan Liu at 5/19/2007 12:00:00 AM
Hi, If I extend a user control, do I need to so something for its resource file, like ImageList used in parent class? I ask this question because I often get inconsistent problem with images on a toolbar button. Thanks a lot! Ryan ...more >>

.Net 2.0 C# GridView CheckBox question
Posted by Jason Huang at 5/19/2007 12:00:00 AM
Hi, In the C#.Net 2.0, given that we don't have any data source bound to the GridView in the design time, is it possible to have CheckBox in a GridView? Thanks for help. Jason ...more >>


DevelopmentNow Blog