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 2006 > threads for monday june 26

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

Central namespace
Posted by Arnd Iffland at 6/26/2006 10:48:49 PM
Hi, i use VS 2005 Web Developer Express and C# Express. What is the right place to put a namespace with classes that i need in both enviroments? At the moment, the namespace is in the App_code when i use the Web Developer and C# Express copies the files to the project directory. Is ther...more >>

åÇã ÌÏÇ æÔßÑÇÇ
Posted by ahmed_2124 NO[at]SPAM yahoo.com at 6/26/2006 9:59:21 PM
5cftIMfkxyDa1uYgzM/tzyDd7SDj7d/R5iDT5t3KICDH5Mcgx9HtzwrH5CDHytrh4yDH4dvlIMfh x+TM4e3S7eUgIObH0czmCsfh49PH2s/lIOPk3+MgyMjRx+PMIMfhytHM4+Ugx+YKx+Hm08fG4SDH 4c7H1eUg4eHK2uHt4yDhx+TtIMfkxyDj1ArIx9rR3SDH3tHHIMfkzOHUIObH0czmIMfh49PH2s/l IObh3+MKzNLt4SDH4dTf0Qo= ...more >>

DAL
Posted by jack at 6/26/2006 9:04:17 PM
Hi all i needed some DAL examples couldnt find any perfect one on net please help ...more >>

Sockets class question - sending TCP data
Posted by D. Patrick at 6/26/2006 6:19:58 PM
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. So, I used a packet sniffer and saw the protocol (TCP), the port, IP address, etc. All is good. I t...more >>

How to play the swf file from this code in windows application
Posted by Prashant M at 6/26/2006 6:17:58 PM
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca b#version=6,0,29,0" width="324" height="307"> <param name="movie" value="http://www.dirtbike-action.com/dirt%20bike%20crashes.swf"> <param name="quality" val...more >>

unable to attach the process
Posted by SenthilVel at 6/26/2006 6:01:14 PM
Hi I have a question when debugging dotnet code when attaching vb6.exe code to this process. i get an error like : unable to attach the process. there is no managed code running in the process. INorder to attach a process with the .NET Debugger, managed code must be running in the pro...more >>

The right Data Structure for the job
Posted by Ron M. Newman at 6/26/2006 5:50:12 PM
Hello Gurus-- I have a collection of attributed elements. Each element can have n number of named attributes and a value. Let's assume each element represents a person and one of the properties is "age" (integer, although byte would do the trick as well, eh?). I'd like to write an *effic...more >>

Max Execution Time on Thread
Posted by Dan Manges at 6/26/2006 5:00:54 PM
How can I set the max execution time on a thread? I would like to throw an exception or indicate a failure if a thread runs longer than x seconds. Thanks, Dan Manges...more >>



Tutorial about asynchronous sockets
Posted by Juliano.net at 6/26/2006 4:49:49 PM
Do you have any material about creating an asynchronous sockets application where the server can accept N connections (over a hundred connections)? I need one that has a good explanation, not only a sample, I want to learn about async sockets. ...more >>

Overriding Base Properties
Posted by Robert W. at 6/26/2006 4:30:02 PM
This question concerns something I'm trying to do with the CF but it's really a generic C# question. With the Compact Framework, one can't add a radio button with a long label because the labels don't wrap. So I've decided to create my own custom radio button. With my version there will b...more >>

VS2005: Collection properties not serialised by designer on custom controls
Posted by Martin Robins at 6/26/2006 4:29:19 PM
I have developed a custom control that, among others, includes a = property that is a collection of "Items". If I place an instance of my control onto a CF form, I can view all of = the properties correctly in the property grid and my collection appears = with the ellipses ready to open the co...more >>

Callbacks from .NET 1.1 process to .NET 2.0
Posted by Dave Booker at 6/26/2006 3:57:01 PM
Is it possible to call a .NET 2.0 delegate from an event in a .NET 1.1 process? We have a class compiled with Framework 1.1 that has a public Event called 'Error.' That class is instantiated in a separate process and made available to our Framework 2.0 process via Remoting. A class in...more >>

picturebox detect pixel color
Posted by Vrijbuiter at 6/26/2006 2:52:26 PM
I want to detect a pixel color number when i move the mouse over de picturebox. I think the next line has the color but i don't now how i get it: System.Drawing.Point pt = new Point() ; pt.X =151; pt.Y =195; this.textBox3.Text = string.Format("{0}",pictureBox1.Image.Palette.Entries.ToStri...more >>

System.Net.Mail
Posted by Paul Cheetham at 6/26/2006 2:37:57 PM
Hi, I am trying to send an email using the MailMessage Class. Everything is working, except that it will not send the message immediately. When I try to send the message nothing happens. If I then send another message, the first one is sent, and the last one is not. On closing the applicat...more >>

How to use this generic?
Posted by Brett Romero at 6/26/2006 2:06:47 PM
I have this class: public class MyClass<TValue> where TValue : IMyClass, new( ) {...} I need to create a class that will hold instances of the above class using List<>: public class MyClassCollection : List<View<TValue>> {...} The above will give this error: The type or nam...more >>

Find Objects Bound To DataTable?
Posted by Fred W. at 6/26/2006 2:04:14 PM
I wondering if there is a way to determine which objects are bound to my DataTable. I update my DataTable from a thread. My DataTable is bound to a DataGrid in my main UI. Apparently I will need to perform my table update on the UI Thread or the DataGrid has issues. Ideally I would like the...more >>

Call VB6.0 exe from c#
Posted by pargat.singh NO[at]SPAM gmail.com at 6/26/2006 2:00:35 PM
Hi Everyone: I have VB 6.0 exe program which currently i am calling through batch file.I need to use the same program from C# program and i am doing as below which is not working System.Diagnostics.Process runner = new System.Diagnostics.Process(); runner.StartInfo.File...more >>

Control.Invoke with ShowDialog
Posted by Chris Dunaway at 6/26/2006 1:50:16 PM
I have a main form with a "lock" button. When the lock button is clicked, another form is shown using ShowDialog(this). The user must enter their PIN on this form to close it and resume the main app. Because it is showing using ShowDialog(this), the main form in the back cannot be used until t...more >>

How do I know if its compiled for release?
Posted by Scirious at 6/26/2006 1:48:00 PM
People, how do I know if my software is comiled for debug or release? And how do I compile for release? TIA, Scirious....more >>

Help parsing string
Posted by LEM at 6/26/2006 1:21:04 PM
Hi all, I'm new to C# and I'm trying to parse a string into several variables. I used to do this in C with sscanf, but I don't know how to do it in C#. Basically I have this. String cBuffer = "abc|defgh|ijk"; String cPart1,cPart2,cPart3; After calling my function, I should get cPart1 ...more >>

Textbox property
Posted by SemSem at 6/26/2006 1:15:02 PM
if i have a textbox and want to change the text inside the textbox into (blod-italic) using buttons i try this textbox1.font=font.italic; \\ for the button italic and its not work and give me error-> can'y implicitly convert type bool to system.drawing .font plz someone tell me how a...more >>

port 80
Posted by Alexandre Brisebois at 6/26/2006 12:52:36 PM
Hi all, How can I have my application running on port 80 while ISS and other applications also run through port 80? for remoting (without hosting it in IIS) and or simply using sockets. regards, Alexandre Brisebois ...more >>

random limited repetition from array...
Posted by mj.clift NO[at]SPAM virgin.net at 6/26/2006 12:40:01 PM
Hi All, I need to be able to choose a random string from an array. That is easy enough, but I want to restrict the repetition of that string until one or two other choices have been made. So the following output would be ok a,b,c,a,d,c or a,c,d,a,d,a but the following would not; a,b,c,c, or a...more >>

P/Invoke calling mismatch
Posted by andrewcw at 6/26/2006 12:31:01 PM
Can someone suggest a way to get the functions to match - I am trying to get file versions, etc info. But its still in unmanaged code as far as I can find. VGetFileVersionInfoSizeA' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged t...more >>

Component develoment
Posted by Claudio at 6/26/2006 11:59:16 AM
I am developping a component that there are some properties and methods, and one of these properties has its own properties (ex. A componen name MYCustomers with the property ADDRESS that has NAME, NUMBER, CITY, ZIPCODE as its own propertis) How do I create this component in a way that I can ...more >>

Crystal Reports, C# and a random 100% CPU lockup
Posted by steveberwick NO[at]SPAM gmail.com at 6/26/2006 11:47:51 AM
**Using Visual Studio 2005 and Crystal Reports XI Release 2 Developer Edition. I currently have a multi-threaded C# application that loads a Crystal Report at runtime, fills out the necessary parameters and then exports the file to disk. I export around 5000 reports a day, in about 3 hours ...more >>

Singleton & Interfaces
Posted by rob at 6/26/2006 11:02:21 AM
I have two different classes singleton1 and singleton2 that both are singletons. Both classes implement the same functions. Therefore, I would like to have an interface containing these functions. The problem is that an interface does not allow static functions and an abstract class does not wor...more >>

Exporting A DataSet - Recommendations?
Posted by David P. Donahue at 6/26/2006 10:50:08 AM
I'm re-writing an application in C# that was originally written in Delphi 7. The heart of the application is a DataSet displayed in a DataGrid. One of the main functions of the previous application was to save the data to a file (it was XML, but the format is unimportant) that can be re-...more >>

Calling nAnt functions with parameters?
Posted by Peter Rilling at 6/26/2006 9:37:33 AM
I have the following nAnt task which does not work. The problem is that I an calling is-assembly(...) passing in as a parameter a dynamically property. This property is not known until runtime. I get the error "Unexpected token 'Dollar'". How can I call functions that take parameters in ...more >>

ArrayList
Posted by Obinna at 6/26/2006 9:26:04 AM
' -------------------------------------------------------------------------- This is a follow-up to a question I asked "What's with the Assembly Stuff?" All the people that gave me a responce asked me to produce the code and the error message and here it is: ' VB.NET code to save the ArrayL...more >>

SQL Server Everywhere?
Posted by David Veeneman at 6/26/2006 9:17:14 AM
I'm looking at SQL Server Everywhere, Microsoft's new version of SQL Server for desktop apps, now in CTP. Has anyone come across any 'getting started' walkthroughs on using SQLSE with desktop apps? I'm looking for a quickstart to show me how to use the product. Thanks. -- David Veeneman ...more >>

Retreiving the correct MacAddress using the corresponding IP address
Posted by DaTurk at 6/26/2006 9:02:30 AM
Hi, I want to to find the Mac address of the NIC being used by a given process using a corresponding IP address. It should be pointed out that the machines that this program will be running on will be using more then one NIC. SO I have to use the IP adress to get the correct MAC. Here is ...more >>

Webcasts discussing different software architectures?
Posted by VMI at 6/26/2006 8:49:02 AM
I'm searching for a webcast that discusses some of the software architectures available to develop software. I've mostly used n-tier architecture, but, the way I understand it, there are so many more design patterns (business objects, MVC, etc...). Are there any webcasts that discuss this? ...more >>

User permission problem
Posted by schaf at 6/26/2006 8:34:58 AM
Hi NG ! I try to solve a problem with the LogonUser() function, as you can see in the topic: http://groups.google.ch/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/cffc0f53f5f75153/?hl=de# Now I have a special occurence of the function after the call. I run the code under...more >>

Creating Custom Collection
Posted by MikeSwann at 6/26/2006 7:55:02 AM
Dear All, I am trying to decide on to create a collection object for a project that I am working on. I am fairly new to OOP so this may be on the basic side. I have looked on the groups, but can't seem to find the answer I am looking for - just more questions! I want an object to hold...more >>

Which process is locking a file ?
Posted by Paddy at 6/26/2006 7:43:54 AM
We have a recurring problem where a (long-running) service throws an exception while trying to access a file. The problem is that this is very rare (happens once every week and without warning) but does happen time to time. We are trying ways to find which other process is holding on to the file...more >>

Why can't an XmlDocument be passed via remoting?
Posted by William at 6/26/2006 7:08:09 AM
I don't get it? Of all things, shouldn't an XmlDocument type be serializable by default? How can I pass this type through a remoting service? It just doesn't make sense, especially since DataSets can be passed, which are XML. ...more >>

windowsforms.treeview control question
Posted by rhaazy at 6/26/2006 7:02:15 AM
I am using VS2003 and am workinig with the form.treeview class. I want to add a piece of code to my "double-click" event that checks to see if the selected node has any children. If it does, then I need it to do a toggle, if it doesn't then it will execute the desired code. Any suggestions ...more >>

How to create an object instance by its string type?
Posted by Sharon at 6/26/2006 5:48:02 AM
I have a list of System.Type and I wish to create an instance for each of this types. string[] types = "System.Boolean", "System.Int32", "System.Single", "System.Double", "System.String", "System.DateTime"}; System.Type type; for( int i=0; i<types .Length; ++i ) { type = System.Typ...more >>

Retrieving data types from database
Posted by Baal80 at 6/26/2006 5:40:02 AM
Hi, I have the following problem: I want to retrieve SQL data type of every column from database (means I want to retrieve bigint, varchar(20) etc. instead of System.Int32, System.String etc). I've written the following code: string[] datatype = new string [100]; int i=0; foreach (Data...more >>

Printing a WinForm as a Graphic
Posted by randy1200 at 6/26/2006 5:39:01 AM
I'm using Visual Studio 2005 and C#. I need to print a WinForm used for data entry as a graphic. In other words, I need to print the exact WinForm the user sees on the screen. I searched through the newsgroups, and found the code below. This seems reasonable, except for the fact that the au...more >>

Generic method: cannot convert 'T' to ...
Posted by Christophe at 6/26/2006 5:11:27 AM
class A {} class B {} interface MyInterface { void method(A a); void method(B b); } class Foo { public Foo(MyInterface myInterface) { _myInterface = myInterface; } private bool Process<T>(T t) { if (t == null) return false; ...more >>

dataadapter.fill slow
Posted by incolsa NO[at]SPAM leveltelecom.es at 6/26/2006 4:25:06 AM
When i try to fill, it takes about 25 seconds, and the sql sentence in the analyzer only takes 1 sec. The sentence returns 60 rows and 32 columns sda.Fill(ds,"alojamientos"); tabla = ds.Tables["alojamientos"]; Anyone has the same problem ? thanks ...more >>

Creating inputless Button
Posted by keith.halligan NO[at]SPAM gmail.com at 6/26/2006 4:12:10 AM
I'm trying to create a button that will take no focus (it's for a dialog designer app). I've tried sub-classing the button control and overriding the WndProc() function to trap button messages. This method doesn't seem to be working, and it's doing my head in. The only other suggestion I can...more >>

help with generics
Posted by mopicus at 6/26/2006 3:33:01 AM
hello all, i have two base classes, one inherits from bindinglist<> i need baseobject contains a generic reference to collection that contains it class baseobject<T> : where T:baseobjectcollection<baseobject<T>> class baseobjectcollection<T> : BindingList<T> where T:baseobject<baseobjectcol...more >>

Convert VB to C#, Operator "Not"
Posted by ano at 6/26/2006 2:46:01 AM
Hi all, I try to convert VB codes to C#. I got this error "Operator '!'cannot be applied to operand of type 'long'". Any ideas? Why doesn't "Not SYNCHRONIZE" equivalent to "!SYNCHRONIZE"? Thanks, VB: Public Const SYNCHRONIZE = &H100000 Public Const KEY_ALL_ACCESS = ((STANDARD_RIGHT...more >>

State of Object changed or not
Posted by thomson at 6/26/2006 1:26:56 AM
Hi All, i do have a customer table in the Customer class i do have a function which fetches data from the table and assign to the customer properties, Ok, In the Front end , i get all these properties and show it to the web form controls. There is a save&continue button in the f...more >>

System.Timers.Timer Exception Number must be either non-negative or -1. Parametername: dutTime
Posted by shajeel at 6/26/2006 12:26:49 AM
i got this exception while calling Timer.Start() Number must be either non-negative or -1. Parameter name: dueTime can any one tell me the reason. timer interval is set to 180000. and after restarting application it is not occuring. Regards Shajeel ...more >>

struct or class?
Posted by Lloyd Dupont at 6/26/2006 12:12:25 AM
I have an object which is just a thin wrapper over an other object and might be created in big quantities. something like that: // ===== pseudo-code cample ======= class TheObject { int[] data; TheWrapper Data { get { return new TheWrapper(data); } } } class or struct TheWrap...more >>

Strange Event Behaviour
Posted by ChrisM at 6/26/2006 12:00:00 AM
I posted this last week, so apologies for re-posting but I'm still looking for a sensible answer, and I'm hoping somone new might be able to cast some light... Basically, I have a fairly complicated application which seems to me to be misbehaving. The following is an attempt to reproduce ...more >>

How to copy all files under a folder to another folder
Posted by ad at 6/26/2006 12:00:00 AM
I want to copy all files under a folder to another folder. If I use File.Copy(sourceFileName, destFileName, overwrite), it must specify all files name in the source and destionation. How can I copy all files in a directoy to another directory? ...more >>

Performance issue. Will DictionaryBase help me?
Posted by Gustaf at 6/26/2006 12:00:00 AM
I got an ArrayList with a large amount of objects in (probably no more than 20000). Every time I add a new object to the array, I need to check that it hasn't been added already, by comparing two properties from the new object with every object in the array. It's a slow but necessary process...more >>

Regex searching for '
Posted by Björn at 6/26/2006 12:00:00 AM
Hello I need some help using regular expresions. I need an expresion to find a single ' in a string. The problem, in the string multiple ' are valid Example: My'Test''String'''Test Only the ' between my and test is invalid. Can anyone help me? thx Björn ...more >>

Transferring a lot of data
Posted by Tommaso Caldarola at 6/26/2006 12:00:00 AM
I'm using a Remoting to manage small set of data, now the customer wants to transfer big binary files (up to 10 Gb) between 2 computers. It's better to use socket or other technology or I can continue using Remoting without problems with great quantity of data to pass through boundaries. T...more >>

very-dynamic casting :-)
Posted by Giulio Petrucci at 6/26/2006 12:00:00 AM
Hi everybody, here's my problem: I have to dymanically build (and compile, of course) some code, from some ECMAScript function. ECMAScript variables I get are not typezed, so I should have operators like variable == a string or a double ore anything else in C# I thought to build a class...more >>

C# app update mechanism
Posted by Rob Frohwein at 6/26/2006 12:00:00 AM
Hi , We are building an C# .net app that will be installed on company workstations. The app will consist of a number of assemblies. Does anyone know if there exist some generic update helper libraries or programes? thanks Rob Frohwein...more >>


DevelopmentNow Blog