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# > june 2005 > threads for saturday june 18

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

C# COM object not being released
Posted by techie at 6/18/2005 11:15:51 PM
I have a VC++ client that creates a COM object that is implemented in C#. The problem is the COM object doesn't get released, so I get a memory leak. I have no problems creating the COM object and getting a pointer to the required interface (IATImportFilter) in the client: COleDispatchDriver...more >>

is firing events threadsafe?
Posted by cody at 6/18/2005 9:16:15 PM
the common used idiom is like this: MyDelegate d = MyEvent; // receiver of the event unsubscribes after this line in another thread if (d!=null) d(this, EventArgs.Empty); Am I right if I think that it is possible that in a multithreaded environment an object may receive an event *after*...more >>

Custom control borders/WM_NCPAINT
Posted by Jim Margarit at 6/18/2005 6:27:32 PM
I have create a Panel subclass that I can resize at runtime. I want to draw resizing handles that accurately track the panel frame. So far I have tried drawing them in the wm_sizing handler, the wm_paint handler and the overriden OnPaint event and cannot get an accurate rectangle to use to pa...more >>

File path in same folder question
Posted by Jlaz at 6/18/2005 6:22:45 PM
I want to know how to open a jpeg file into a pictureBox without explicitly writing the entire path? Example in VB it would be written like: pictureBox.image = (App.Path & "\MyFolder\Pics\MyPic.jpg") ...more >>

regex: multiple matches after initial text
Posted by Chance Hopkins at 6/18/2005 5:06:06 PM
I'm trying to match a set of matches after some initial text: mytext: "something" "somethingelse" "another thing" "maybe another" (?:mytext: )(?<mymatch>["]{1,1}[^"]+["]{1,1}[\s| ]+)+ I only get the last one "maybe another". I want to get all the values with quotes as a gro...more >>

Accessing WebService usingh SOAP / no .NET proxy
Posted by MuZZy at 6/18/2005 4:46:20 PM
Hi, I'm not sure if this is the appropriate NG for rthe question, so please don't beat me if it's not :) In my c# windows app i'm trying to use a CurrencyConverter web service provided by WebserviceX.net. The Service doesn't have a .NET proxy, so how do i access it thru SOAP? All the exmaples o...more >>

C# to SQL Server datatype mappings
Posted by Mark Rae at 6/18/2005 10:13:48 AM
Hi, Can anyone please point me to a definitive mapping of SQL Server 2000 datatypes to C# datatypes? I'm currently using the mapping below, but I'm sure some aren't correct... BigInt, int Binary, object Bit, bool Char, string DateTime, DateTime Decimal, decimal Float, float ??? I...more >>

DateTime Null value in Typed DataSet gives Invalid Cast Exception - Please help !!!
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 6/18/2005 7:47:04 AM
Hi Folks I have a strongly typed dataset which works perfectly well until a NULL value is returned for a DateTime field. Whatever I try to do to test for a NULL value results in an Invalid Cast Exception I have tried Microsoft's suggestion of editing the XSD file as follows:- xmlns:co...more >>



Why are out parmeters included in an BeginInvoke ?
Posted by Jon at 6/18/2005 6:01:40 AM
Why are out parmeters included in an BeginInvoke? They seem to do nothing? TestProgam: using System; namespace TempConsole { class App { public delegate void MyDelegate( out byte b, out string s ); public static void OnMyDelegate( out byte b, out string s ) { ...more >>

C# Aplpication and Excel Add-In
Posted by Rushi at 6/18/2005 5:54:42 AM
Hi Friends, I have created an add in C#, which is popup a form on excel. Now my query is, i have a tree control which contain some data. now when user drag any item to excel cell at that time i want information about that cell...like cell location, WorkSheet name, cell value...etc... In firs...more >>

Putting Images into a ListView SubItem
Posted by Mark Roberts at 6/18/2005 5:27:12 AM
Greetings: Is it possible to put a small image into a ListView item when the target item is NOT the item 0 (ie: its not the item on the left-most column). What I am trying to accomplish is to create a list representing some real world items with various options and features. I would like t...more >>

scroll bar in datragrid
Posted by Philip Germanos at 6/18/2005 1:58:02 AM
Hello, I am displaying one row in a datagrid, and i made its height larger than the datagrid height because it contains long descriptions, so a vertical scroll bar appears but with no cursor on it to let me move down the grid. How can i have access to the datagrid scrollbar? or what else ca...more >>

C#2.0: struct & class constraints
Posted by Alex Sedow at 6/18/2005 12:00:00 AM
Hello. Why following code is compiled in vs2005beta2? class C<S,T> where S : struct, T where T : class {} 1. How S can be both value-type and reference-type? 2. Can anybody give example of correct instantiation of type C? -- Alex. ...more >>

How to trim the duplicate char in a string
Posted by ad at 6/18/2005 12:00:00 AM
I have a string like "1,2,2,3,3,3,4" I want to trim off the duplicate part, and make it to "1,2,3,4" How can I do? ...more >>

How to trim the last character of a string
Posted by ad at 6/18/2005 12:00:00 AM
I have a string variable lik: sList="1.Tiger, 2.Wolf, 3.Rabbit," I want to trim off the last character "," Have there pre-define function to do that? ...more >>

DataTable in ToolBox??
Posted by perspolis at 6/18/2005 12:00:00 AM
Hi all I implemented a class and in this class I manage a DataTable.. is it possible to put this class in ToolBox item?? thx in advance.. ...more >>

How to get startup path with Compact Framework?
Posted by Tomá¹ Machala at 6/18/2005 12:00:00 AM
To get startup path on normal Framework, I'd use Application.StartupPath but how can I do the same on Compact Framework? There isn't such method in Application class. Thanks. ...more >>

Sort multi dimensional array
Posted by rj at 6/18/2005 12:00:00 AM
Hello, I have multi dimensional array with names and ages. I want sort this array in a way that the youngest person is on the first row. Any ideas or examples? Richard ...more >>

Getting registry value's data type (REG_SZ/REG_EXPAND_SZ)
Posted by Asaf Ganot at 6/18/2005 12:00:00 AM
Hi, I'm looking for a way to retrieve the date type of a registry value using c#. Since I couldn't find a way to do it with 'Microsoft.Win32', I tried to use the good old API call 'RegEnumValue' which gives you the data type as well as other things... After many tries, I managed to call t...more >>


DevelopmentNow Blog