Groups | Blog | Home


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 2006 > threads for sunday march 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

SqlXml to XmlNode
Posted by Roy at 3/19/2006 7:56:28 PM
I have a xml data type in database and read back as a SqlXml data type. How do I assign it to a XmlNode type?...more >>


WebClient problem
Posted by vin.dor NO[at]SPAM gmail.com at 3/19/2006 6:28:32 PM
Dear All, I am using WebClient in my Visual Studio .Net 2003 project to download an image from the Internet. The following is my function: C# Code: public static bool downloadFile(string URL, ref string fileName) { bool result = true; System.Net.WebClient webClient = new System.Ne...more >>

Help Needed! Really Stuck. C# dvents & null delegates
Posted by c#2006user at 3/19/2006 6:04:49 PM
Hi everyone. i know there is a lot of code and ive reduced it as much as i could, its a bit much to ask but i am really stuck! i've been at this for a week! this is converted from vb to c# and something has gone wrong with the events as the original code used "WithEvents" and "Handles" keywor...more >>

DrawReversibleFrame covered by control
Posted by Paul E Collins at 3/19/2006 4:06:50 PM
I have a user control consisting of a picture box inside a panel (to permit scrolling). When the user clicks and drags on the picture box, I use ControlPaint.DrawReversibleFrame to draw a dashed selection rectangle. For some reason, the rectangle does not persist beyond its initial drawin...more >>

add directory to path
Posted by Tanja Krammer at 3/19/2006 3:37:01 PM
Dear experts, is it possible to programatically add/remove variable to path? ...more >>

DllImport
Posted by Bart at 3/19/2006 3:16:29 PM
Hi, Imagine the following situation : a.dll depends on b.dll and a.dll is imported in C# with DllImport["a.dll"]. Is it correct that if b.dll cannot be found, you get an error about a.dll and *not* about b.dll ? Thanks, Bart -- www.xenopz.com...more >>

XML Dataset Code Gen Internal Constructors
Posted by Steven Nagy at 3/19/2006 3:10:37 PM
Hey All, I have written a tool that generates XML for a dataset. You know when you add a dataset file to a project, you write the XML and the code gets generated automatically? Well I want this sitting in a seperate DLL project. However, the code generated by VS specifies a constructor that i...more >>

Combobox heading
Posted by Richard MSL at 3/19/2006 2:57:10 PM
I have an owner drawn combobox with multiple columns. I would like to implement headings for the columns. I have attempted to do this within the DrawItem event, but there is no space, I can not draw outside the region, and if I move where the items are drawn (down from e.Bounds.Y) to make spac...more >>



How do I new T()?
Posted by Brett Romero at 3/19/2006 1:24:43 PM
I'd like to do this: public class myclass<T> { myclass() {} public void CreateNew() { T myp = new T(); } } However, I get this compiler error: Cannot create an instance of the variable type 'T' because it does not have...more >>

Simple Threading Question
Posted by Ryan Pedersen at 3/19/2006 12:00:17 PM
I have a small program that executes a single very long running background thread today. The scope of all variables in the method that is running in this thread today are all local to the method. The method doesn't do anything outside of its local scope. My question... can I start up a 2nd...more >>

Making systray icon color transparent!
Posted by Lee at 3/19/2006 11:48:01 AM
Hi, I have a notify icon and have been trying to make the background color transparent. But do .ico files allow a transparent color? when i select the image for the notify icon it askes for type .ico. now i know i can set a transparent background with png's ect, but can i use tranparent ...more >>

How do I refresh ListView when a subitem text is changed?
Posted by Vern at 3/19/2006 11:10:27 AM
I changed the text for a sub-item in a non-databound listview. However, it doesn't change on the display. Here's the code I'm using to change the item: [code] lvPendingErrors.BeginUpdate(); lvPendingErrors.Items[_SelectedIndex].SubItems[4].Text ="Y"; lvPendingErrors.EndUpdate(); lvPending...more >>

newbie sql server bit to c# bool question.
Posted by AbeR at 3/19/2006 10:57:27 AM
This should be easy but... I'm trying to get a simple bool written into a bit column type using a stored procedure (VS2003 with SQL Server 2000). My understanding where that they were equivalents. ------------ CREATE PROCEDURE sp_UpdateFPRFByVP @fGuid uniqueidentifier, @vpResponse bit,...more >>

Detecting cross-apartment COM calls?
Posted by jlamanna NO[at]SPAM gmail.com at 3/19/2006 7:34:22 AM
I was wondering if there was a utility that could tell you when your C# application is making cross-apartment COM calls. I have a fairly large application that makes extensive use of a 3rd party object system that is exposed to .NET through COM, and I'm really trying to avoid slow cross-apartmen...more >>

Programming databases in .NET - please help
Posted by lennon1 NO[at]SPAM poczta.wp.pl at 3/19/2006 5:35:47 AM
Hi, I have already started learning .NET and I have a question. If I want to do anything - Display Data, Navigate, Update - with database (SQL Server) in Visual Studio 2005, do I have to use all this objects : - DATASET - sqlDataAdapter - BindingSource - sqlConnection I usually write da...more >>

Size of a class
Posted by Dave at 3/19/2006 4:58:26 AM
I am serialising an object to a memory mapped file (using the CreateFileMapping and MapViewOfFile p/invoke calls). These need to know the maximum size of the "file". I can put in a "good guess" ie it won't be more than, say, 1K, but it would be tidier to use the actaul size. Is it actually p...more >>

How to add a ShortCut on the user's DeskTop
Posted by ad at 3/19/2006 12:00:00 AM
I want to add a shortcut on the user's desktop, the shortcut is a URL to a website (like http://www.microsoft.com) How can I do it with c#? ...more >>

Null
Posted by James Roberts at 3/19/2006 12:00:00 AM
hiya i'm using this piece of code RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Retrospect", true); if(key != null) { // Sets up the registry, when run for the first time. // Creates the subkey and sets the key to the directory its in key = Registry.CurrentUser.CreateSubKey(...more >>


DevelopmentNow Blog