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# > january 2008 > threads for thursday january 17

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

Application Focus
Posted by NvrBst at 1/17/2008 10:17:28 PM
Is there a quick way to see if my application has focus? I've tried "this.Focused" but it doesn't return true if one of its childen controls is what has focus (IE I just clicked a button to check "this.Focused"). If I run the "this.myBtn.Focused" as the button click event then I get "true". ...more >>

Image has wrong colors
Posted by Joe Thompson at 1/17/2008 8:56:00 PM
I have a Windows form program written in C# 2005. I continually read a stream of data via TCP that comes from a video camera (NTSC). When I have all the data for one frame I update a picturebox (pbVideo) like this: pbVideo.Image = (Bitmap)Bitmap.FromStream(new MemoryStream(m_ImageBuff, 0, ...more >>

how to reference COM dll from C# without the COM dll being registered in the registry?
Posted by DR at 1/17/2008 7:56:17 PM
how to reference COM dll from C# without the COM dll being registered in the registry? ...more >>

when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when i reference a com object by referencing the .dll file
Posted by DR at 1/17/2008 7:22:46 PM
when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when i reference a com object by referencing the .dll file i get this error in my C# application: Error 1 The "ResolveManifestFiles" task failed unexpectedly. System.ArgumentException: Illegal charact...more >>

My silliest extention made yet 2008...
Posted by Michael Starberg at 1/17/2008 6:59:46 PM
... and it is only January. This might get worse. =) I really like languages like C#, that has a foreach on IEnumerable<T>. But sometimes you need to go by index and you have to for-loop. In C-dervived languages it typically looks like this: for (int i = 0; i < theList.Count -1 ; i++) { [e...more >>

Close the Program
Posted by Guilherme Grillo at 1/17/2008 6:34:44 PM
Hi everybody... I'm a beginner and need help. I want to do a application that open a PDF file... I created a form in Visutal C# 2005 Express Ed. with this code: static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Applic...more >>

How to make a singleton dll or exe using C#
Posted by lightdoll at 1/17/2008 6:18:00 PM
Hello...Everyone... i want to make a singleton dll or exe using C#, i want to call the C# dll or exe from C, C++, VB... The C# dll will be called by any process(C, C++, VB), after any process call the C# dll, the C# dll have a same instance all of any process , like a ATL Singleton(Ou...more >>

Consuming PHP-webservice with C#
Posted by Thomas Mueller at 1/17/2008 5:25:54 PM
Hi, I'm currently working on C# code consuming a PHP-webservice (soapserver-class of PHP5). A PHP test-client worked fine and achieved the requested data from the service's server. Using the wsdl-file of the webservice, wsdl.exe generated a C#-proxy class errorlessly. I then tried to insta...more >>



Using Regex to parse string.
Posted by KK at 1/17/2008 4:33:03 PM
Dear All I have a string like this: myOutput = myObject.MyMethod(myInput1,myInput2) I would like to parse this string and separate it into 4 groups. group1 contains left of '='. group2 contains right of '=' and left of '.' group3 contains right of '.' and left of '('...and so on. I'm n...more >>

DataBinding multiple properties to a combobox
Posted by JTC^..^ at 1/17/2008 3:54:07 PM
When i attempt to bind to the "Text" and "Value" property of a combobox on a windows form the value is reset when I leave the combobox. The comboboxes contain the correct Text and Values. I know this as the Value property binds correctly on it own. It is only when I bind the "Text" and "Val...more >>

Creating an array
Posted by Martin Racette at 1/17/2008 2:24:14 PM
Hi, I new to C#, and I would like to know how I can create an array that I do not know in advance how many item will be placed there -- Thank You in Advance Merci a l'avance Martin ...more >>

Looking for a collection that uses hard disk as storage
Posted by GG at 1/17/2008 2:11:52 PM
Anybody knows of any collection where is not stored in memory but using hard disk instead? Thanks *** Sent via Developersdex http://www.developersdex.com ***...more >>

VS2003 - VS2005
Posted by Harry V at 1/17/2008 1:29:07 PM
I wrote a C# Windows app using VS2003 to read selected text files and write the data to 3 tables in an Access database. After "upgrading" to VS2005, I tried to add a feature and rebuild - what a can of worms. At this point, the solution builds and runs, but if I open or restore another w...more >>

Array allocation and garbage collection
Posted by Jon at 1/17/2008 1:24:36 PM
If I allocate an array, eg: double[] x = new double[10000]; then use the array, then at some later point, allocate it again, eg: double[] x = new double[15000]; does the garbage collector know that the memory allocated the first time round can be garbage collected, or do I have to s...more >>

Getting a .NET type given a database-specific type name
Posted by jehugaleahsa@gmail.com at 1/17/2008 1:07:39 PM
Hello: Say I were to query the schema tables from a database management system. Say I got a DataType field that held the string 'VARCHAR2'. Now, I know that VARCHAR2 associates to System.String. However, different DBMSs have different types and worse, even some with the same type turn out to ...more >>

General question to other developers...
Posted by RvGrah at 1/17/2008 12:55:50 PM
I've been writing in C# for about 4 years now, coming from VB.net and VB6 before that, in which I know I'm not alone. I found learning C#, at least to the extent that I use it in developing database front- ends, to be rather painless. The language and VS ide seemed comfortable pretty quickly. ...more >>

BIT banging help
Posted by DotNetNewbie at 1/17/2008 11:59:58 AM
I want to store the maximum amount of permissions in a bit mask. From what I know, I should use the C# long data type and use the bigint in sqlserver. How would I initialize a variable of type long to represent a 64bit mask? I think it is something like: 0x0..............0 But I am ...more >>

Retrieving the COM class factory for remote component with CLSID {...} from machine ... failed due to the following error: 80070005.
Posted by zion at 1/17/2008 11:10:19 AM
Hello all, How can I solve this error in my asp.net C# application? I gave all permissions to com object: ASPNET IUSR_... EVERYONE Thanks ...more >>

Membership User ID is uniqueidentifier, could I use INT and map the to fields?
Posted by DotNetNewbie at 1/17/2008 10:32:38 AM
Hi, I am developing an application that has to scale and be very efficient, and I am using asp.net membership in my application. I set things up in my Users table (it has extra columns that I need over and above what aspnet_users has): UserID INT Membershipuserid uniqueidentifier ...more >>

C# Plugin system - same interface in two different assemblies...
Posted by WTH at 1/17/2008 10:13:28 AM
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out because I have written a generic plugin system for my current and future C# needs. I defined a b...more >>

Sort Question?
Posted by C#Schroeder at 1/17/2008 9:04:34 AM
I am new to SQL and am trying to sort some information. The data is being sorted, but not in the way I desire it to be. Example: Sorted Table Desired Sort Product Name Product Name -----------------------------...more >>

About the abstract class TextReader and the normal StreamReader class
Posted by TonyJ at 1/17/2008 8:50:12 AM
Hello!! If I look in the .NET documentation for the abstract class TextReader and method Dispose it says TextReader.Dispose(). If I look at the Dispose method in the derived class StreamReader it says StreamReader.Dispose(). I just wonder what does it mean when a method is prefixed with ...more >>

Windows Service Application Restart
Posted by MikeZ at 1/17/2008 8:19:04 AM
How Can Windows Service Application Reatarts itself? Thanks....more >>

zero footprint
Posted by DBC User at 1/17/2008 7:16:43 AM
How would you develop a zero footprint application, is the smart client application a zero footprint application? Thanks....more >>

File.Copy() problem
Posted by Code Monkey at 1/17/2008 7:12:25 AM
I've written a windows service in C#. The service copies certain files using a FileSystemWatcher. However, where it copies the files to is a windows share (\\ipaddress \sharename). If I set the service up and run it as a user who has access to this share - Services > Service Name > Log...more >>

Intercept key from an unfocus application
Posted by Nibe at 1/17/2008 6:59:04 AM
Hi, I need to write an application that intercept a key pressed even if it is not in focus. Anybody can advice me a good example to understad better how to manage this problem? thanks a lot nibe...more >>

Determine installed version of software
Posted by Tim at 1/17/2008 6:08:47 AM
I want to write a generic method to read the installed version of software based on the exact software name that is displayed in Add / Remove programs. Is there a way to do this using C#? I found a method which will return all the installed software using this registry key "SOFTWARE\Microsoft\...more >>

Problem when moving a file
Posted by Arjen at 1/17/2008 4:58:29 AM
Hi, I want to move a file. Here is my code: files[i].MoveTo(dirs[0].ToString()); Variable files[i] represents a file in the current directory (of the executable). Variable dirs[0] represents a subdirectory in the current directory. When I run the code, my application 'hangs'. I don't k...more >>

Diamond problem
Posted by weird0 at 1/17/2008 4:11:50 AM
How does C++ and C# solve the Diamond problem? With the help of interfaces that is. Can anyone elaborate ....... Regards...more >>

Compiler Construction
Posted by Max at 1/17/2008 2:50:00 AM
I am working in vb.net to devlope a c++ compiler that will read the whole .cpo file and search for the keywords ,identiferis,opertaors and others and also check the syntax for the whole code. SO would any body there to tell about any algorithem which will serach the whole .cpp file and return ...more >>

LINQ to XML - Performance - Speed
Posted by CodeRazor at 1/17/2008 1:04:02 AM
Hi, Can anyone tell me how the performance compares between working with xml documents in the normal way (i.e. with xpath and the System.Xml) and LINQ. Is it any quicker or slower? Are there are distinct benefits to the user (and not just advantages for the coder) to working with LINQ? ...more >>

ANN: .NET Framework Library Source Code now available
Posted by Thomas Scheidegger at 1/17/2008 12:39:19 AM
..NET Framework Library Source Code now available <URL:http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx> Configuring Visual Studio to Debug .NET Framework Source Code <URL:http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-...more >>

Wpf tooltip exist Direct3d memleak in native code in xp and vista os
Posted by walve_wei at 1/17/2008 12:23:30 AM
<1>use the D3D control panel, enable the debug DLL and maximum validation,for D3D control panel ,you need to install the directx sdk. <2>Start up the debug monitor (<MSVC install directory>\Common7\Tools \Bin\winnt\Dbmon.Exe). <3>If you use the tooltip in native code,then run the program,show th...more >>

Parse and ToString?
Posted by Peter K at 1/17/2008 12:19:21 AM
Hi I have an object which I need to store in a "state holder" for the application the object is to be used in. The "state holder" can only store strings. (I cannot change this code and I must use it). So I need to convert my object to a string to store in the state holder, and provide a ...more >>

Modal Windows
Posted by aagarwal8@gmail.com at 1/17/2008 12:06:30 AM
Hi, I have a main form, which i use to open secondary forms. From the secondary form i need to open a Modal Window in such a way that, my secondary form is blocked, but i can still access my main forms, and open other secondary windows. (An exact analogy for my problem is the Yahoo Messenge...more >>

Searching for server
Posted by cameljs18@yahoo.com at 1/17/2008 12:03:52 AM
i want to create a application which will scan a machine for the server then attach my database to the server.Is there anyplace i can find code to do this. Thanks...more >>


DevelopmentNow Blog