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# > september 2007 > threads for sunday september 16

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

detect if a file is open
Posted by deerchao at 9/16/2007 11:02:45 PM
I'm using FileSystemWatcher to watch the new file creation. When there is one, I want to open it and read it's content. But, by the time when I got the message from FileSystemWatcher the file may be still hold by the process who just created it, writing data. So is there any way I can detect if ...more >>


how to release the memory allocated by 'gcnew'
Posted by Vivienne at 9/16/2007 8:38:26 PM
Hi, I have a question about "gcnew". I am a C# library in my c++ project, so "gcnew" is often used when calling the managed methods. so here are my questions: are new memories allocated by when calling "gcnew", just like the "new"? should I delete it when I don't need it, just like what I d...more >>

datacolumn
Posted by DaveP at 9/16/2007 7:51:34 PM
im Trying to set a Datacolumn type for a new table boolean is not working, What is the correct waty //column.DataType = System.Type.GetType"System.Data.SqlTypes.SqlBoolean"); column.DataType = System.Type.GetType"System.Boolean"); //"System.Boolean"); tia Dave ...more >>

Create empty list by type name
Posted by Andrus at 9/16/2007 7:21:44 PM
I know entity class name as string ( e.q. "Customer" ) I need to create empty List<Customer> object for this entity by class name passed as string in runtime. I tried the following code but got compile error shown in comment. How to create empty list based on type ? I hope some reflection...more >>

Updating the table: why not?
Posted by vinnie at 9/16/2007 5:21:31 PM
I made simple project where it show a table (that i previously made in MS SQL). When i start the project and i add a row, clicking the save button all work. But if i want to cancel the full row, the cancel button does not perform the job, practically nothing happens. The code behind the cance...more >>

SqlDataAdapter
Posted by vinnie at 9/16/2007 4:27:23 PM
I'm making a little Windows Application project (not a web site) and i can't find the SqlDataAdapter in the Data Toolbox: does anyone know where it should be? Thanks ...more >>

Question about location of a class in a WCF application
Posted by Bill Gower at 9/16/2007 3:46:51 PM
I have a class called LWUser which contains the properties and methods that represent a user of the system. This class sits in the Business Services solutions on the server. I also have a class called LWUserUI which sits on the client side in the Client solution. I am going to create a thir...more >>

changing app.config style
Posted by active T at 9/16/2007 1:54:43 PM
I have a simple question. If I use a app.config file, and I use my own structure instead the default. My application is not running. The compliation is OK but running does't work. The problem is the structure of my app.config. For your information, the application doesn't use the applicationm...more >>



Variant data type
Posted by empire5 at 9/16/2007 1:06:26 PM
I'm trying to convert a MS-Sql 6.5 VB application to SQL 2005 and vb.net. The vb app has uses a variant data type. When I try to read the variant data type from the sql 2005 database I get 8,000 characters into the variant type, however when I use the 6.5 database I get only the limited numbe...more >>

Help with Regex Pattern
Posted by Naveen at 9/16/2007 10:08:02 AM
Not sure if this is the right forum for this question but couldn'd find another newsgroup. I am new to Regular expressions and would like help in deciding which pattern allows me to split a string into sets of words based on capital letter. For e.g. if i have a string "FirstnameLastname" I...more >>

Obtaining .NET Framework Source Code - Or Equivalent
Posted by Frankie at 9/16/2007 9:48:31 AM
Let's say I want to see actual source code for some Framework member - say the .BeginInvoke() of the delegate class. How can I acquire that? Is there some utility that will break it out for me? Please note that I'm not looking for documentation on the method. I'm looking for the equivalent of ...more >>

Create ImageButton Dynamiclly
Posted by Gidi at 9/16/2007 8:46:02 AM
Hi, Using ASP .Net, I'm trying to create a ImageButton when the user clicks on a button, this is my code: protected void logout_btn_Click(object sender, ImageClickEventArgs e) { ImageButton ib = new ImageButton(); ib.ID = "IWantToPlay"; ib.ImageUrl = "~Images/...more >>

Popup Dialog Position
Posted by Dave Anson at 9/16/2007 8:31:26 AM
I have created a custom datetimepicker (following on from a previous thread "DateTimePicker color"). How do I set the position of a Modal Dialog (a control containing a month calendar) relative to a control (containing a textbox and a button) on a windows form? I.e. I want the modal dialog...more >>

BackgroundWorker / Thread question
Posted by Piotrekk at 9/16/2007 5:08:02 AM
I have a question. One day i have been working with threads. Thread had 'while' loop that checked locked value telling the thread when application was closing ( in Dispose method i set locked object's value to 'true'). If i didn't have the locked object the thread was present in taskmanager e...more >>

intefaces
Posted by rajendra at 9/16/2007 2:19:00 AM
hi friends,i have question to ask you, what an interface can contain, i learned that interface can contain method declarations doubt: interface can contain delegates and events.please clarify my doubt ...more >>

custom control
Posted by rajendra at 9/16/2007 1:57:42 AM
hi i am rajendra i am posting my first question to this group i have doubt from last few days .i want to clear it why we need user control and wher should we use it,and the execution of the user defined control. please let me know ...more >>

Scale a vector
Posted by Matteo Migliore at 9/16/2007 12:00:00 AM
Hi! I've to scale a vector of numbers of size N to a vector of size M. The trasformation is like a zoom on images but I need on a vector. The second size can be M >= N or M <= N, M > 0. The value for each element can be from 0 to 255. Is there some methods that can I use? I don't nee...more >>

Passing main() input arguments
Posted by at 9/16/2007 12:00:00 AM
I need to use command line input to a tinny c# application: It goes like this: ** program.cs ** using System; using System.Collections.Generic; using System.Windows.Forms; namespace ClipboardImageSaveToFile { static class Program { /// <summ...more >>

Windows control library
Posted by Alistair George at 9/16/2007 12:00:00 AM
I want to create a custom control (already have it working by calling it up as a form object) but want it to be available to my other programs - its just a timed messagebox. I searched google to how to do this (my first foray into this area) and found the following limitation on my visual c#...more >>


DevelopmentNow Blog