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# > october 2007 > threads for monday october 15

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

Accessing Connected Camera folder without Wia??
Posted by MDausmann at 10/15/2007 9:42:07 PM
Hi I have a camera that mounts as a folder when I plug it in and is available in explorer. I thought it would be possible to access the images on the camera using normal file operations but I cant seem to get it to work. I think the problem is the path I am using. In explorer, the folder ...more >>


Allow to reference to any version of assembly during compiling
Posted by Andrus at 10/15/2007 9:29:56 PM
VCSE 2005 .NET 2 WinForms I created assembly at runtime and added mydll.dll reference to it. mydll.dll is in applicatino startup directory. When I change mydl.dll to never version, this assembly is not loaded anymore: error occurs which says that created assembly requires specific version o...more >>

Type convertsion from string
Posted by Andrus at 10/15/2007 9:09:43 PM
Using VCS 2005 Express .NET 2 WinForms. I implemented entity databinding in DataGridView OnCellValuePushed method as PropertyInfo p = entityTmp.GetType().GetProperty( Columns[e.ColumnIndex].DataPropertyName); // e.Value type is string p.SetValue(entityTmp, e.Value, null); This works ...more >>

solution does not run after upgrading assemblies
Posted by Andrus at 10/15/2007 7:40:35 PM
Using VCS 2005 Express. I replaced in my solution tree Castle dlls with new version and used References/Add Reference to update references in every project in my solution. After that ActiveRecordStarter.Initialize(activeRecordAssembly, source); causes error Could not load file or as...more >>

problem sizing a DataGridView
Posted by Jeff at 10/15/2007 7:36:48 PM
Hey ..NET 2.0 I've created a User Control which contain a DataGridView. This User Control is displayed on a TabPage. This TabPage is added to the TabControl during runtime. The problem is this: Lets say if I set the size on the DataGridView to width=400px & height=300px. But during r...more >>

Activex
Posted by zion at 10/15/2007 6:08:04 PM
Hello, How can I create a C# activex control? Do you know any simple example? Thanks ...more >>

System.Windows.Forms.Label
Posted by Peter Larsen [] at 10/15/2007 4:57:03 PM
Hi, I have two questions related to the Label control. How do i prevent the label from expand the canvas into 2 lines (word wrap) ?? At the moment i set AutoSize to false (to prevent the word wrap from happening) and Anchor to Left, Right (to enable the with autosize). How do i prevent...more >>

closing a TabPage, how??
Posted by Jeff at 10/15/2007 3:29:04 PM
..NET 2.0 I've created a form which contain a TabControl. During runtime TabPages will be added in the TabControl. I would like to have a feature like an "X" (like closing windows) in the tab which when clicked closes that specific tabpage. any suggestions on how to implement this are m...more >>



Using ado.net
Posted by TonyJ at 10/15/2007 3:26:42 PM
Hello!! I have earlier used ADO.NET 1.1 when working with VS2003.and I'm quite used to that. We have now VS2005 so I can now use ADO.NET 2.0. I just wonder is it great difference working with ADO.NET 2.0 compare to ADO.NET 1.1? Do I lose a lot of functionality and performance if I stil...more >>

Math In Function
Posted by James Jenkins at 10/15/2007 3:04:32 PM
Hi, I am looking for the 'In' Function in C# to work out an equation - I have an 'In' option on my calculator and I am struggling to find out what it is and what it does? - Can anyone point me into the right direction - TIA. James http://www.software-dungeon.co.uk ...more >>

Regex for parsing methods in csharp code
Posted by skneife NO[at]SPAM gmail.com at 10/15/2007 1:50:03 PM
I have built an AddIn for VS2005 and I need to parse a source cs file inside the IDE. My goal is to search all method in a file using regex class. Does anyone know how to create the regex paradigm for matching method in a class? Sam ...more >>

Bluetooth app
Posted by haytham D at 10/15/2007 12:58:35 PM
hey every one , i am lokking for a c#.net library to send and recive files via bluetooth , it does not has to be file transferring . its for my graduate project , workin in integrating my unifersity's database with the students phones .... so hope 2 get some help , thank you all. *** ...more >>

EnableVisualStyles causes CComboBoxEx to stop showing images
Posted by Mike at 10/15/2007 12:02:22 PM
I have a C# DLL that calls a function in a C++ DLL. The C++ function displays a window that has a combo box (CComboBoxEx) control. If I enable visual styles in my C# DLL, images do not appear in the combo box. How can this be fixed? Thanks, Mike ...more >>

APP_CODE directory and Conversion to VS 2005
Posted by Randy at 10/15/2007 12:00:56 PM
I've converted a VS 2003 project to VS 2005. I have one utility class that it put in the APP_CODE directory. When I try and compile I'm getting this error... Error 1 The type or namespace name 'WelcomeToPFP' could not be found (are you missing a using directive or an assembly reference?) C:...more >>

Regex with double and char
Posted by at 10/15/2007 10:25:37 AM
In the following example, the Matches operation never returns 4 matches as I am expecting. What's wrong with my syntax? private const string DOUBLE_REGEX = @"[-|+]?[0-9]*[.]?[0-9]*"; private const string HEMISPHERE_REGEX = @"[N|S|E|W]"; string sourceString = "550402N0420502.50S"; strin...more >>

dropdown list box
Posted by nbohana at 10/15/2007 9:54:01 AM
Is there such a thing as a dropdown list (Text) box. What I would like to do is display data from a table (Clients) for selection into a text box. -- Norm Bohana...more >>

simple managementobject question
Posted by DBC User at 10/15/2007 9:27:39 AM
Hi all, I am in a situation where I need to find the a unc path of a particular drive or I have a unc path, I need to find the drive. Either way will work. I do not want to use dllimport to make the win32 api call. So after some research I found out that I could use ManagementObjects using...more >>

Send ICMP message to my router via. Raw socket
Posted by Piotrekk at 10/15/2007 9:17:00 AM
Hi I have written piece of code to send message to my router. static void Main(string[] args) { Socket mySock = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp); IPEndPoint ep = new IPEndPoint(IPAddress.Parse("192.168.1.1"...more >>

vacation accruals design
Posted by rodchar at 10/15/2007 9:07:01 AM
hey all, i was task with tracking vacation hours for each employee in a company. the way i did it was i calculated the accruals and hours taken on the fly and it worked just fine. but then some changes came along and the solution discovered was to save the totals in the database and maintain ...more >>

Close button on MDI parent
Posted by ATT at 10/15/2007 8:53:01 AM
When user click on the "x" close button on the MDI parent form, how can I set an event handler on it? I want to save some settings before the form is closed. Some forum mentions associate it with the cancel button, there is no button here. Anthony....more >>

Business Rule Validation
Posted by SiJP at 10/15/2007 8:40:09 AM
I am creating a new winforms project using Visual Studio 2005. The project is converting a paper-based application form into an electronic one. I need help implementing a correct method for 'Business Rules' validation. The paper-based form has 50 fields that vary in their content (some...more >>

Open XML doc from MemStream
Posted by Looch at 10/15/2007 8:17:26 AM
Hi All, I have a memory stream that I saved an XML doc to. I can open an XML file in I.E. using: System.Diagnostics.Process.Start("C:\\MyXML.xml"); My question is what is the syntax for: System.Diagnostics.Process.Start(the file I just saved to the MemoryStream);? Thanks ...more >>

.NET Remoting and Credential Caching
Posted by Michael Bray at 10/15/2007 8:05:08 AM
I have a client/server application that utilizes Impersonation on a TCP Channel. So I create the channel with the version of the constructor that takes an IDictionary of channel properties, and specify "impersonate = true". OK great - everything works - I can confirm on the server that t...more >>

Use Thread or ThreadPool
Posted by Simon at 10/15/2007 7:42:11 AM
Hi All, I'm currently developping something where I need to use threads. Here's the basic scenario. I have a WebService requests which need to launch a few threads and wait for them to complete before returning a responses. Bascically, each thread will make a request to our old C++ server and...more >>

user control in DataGridView
Posted by Ali at 10/15/2007 5:48:29 AM
Hi, I would like to know wether is it possible to have a user control as a DataGridViewColumn? if it is possible how? if it is not what should I do? for example I 've created a user control that has 2 text boxes for a specific goal. then I want to have this control as a column Type of a D...more >>

Timeout on "DataAdapter.Fill"
Posted by Frank Uray at 10/15/2007 3:14:01 AM
Hi all I have a timout problem when I call "DataAdapter.Fill". When I debug, I see that all timeout settings are correct, ConnectionTimeout is 0 and also CommandTimeout is 0. But when I call the fill method I get: "Timeout expired. The timeout period elapsed prior to completion of the op...more >>

[*map/map_all_coml10.txt||10||r||1|| @],[*map/map_all_coml10.txt||10||r||1|| @]
Posted by [*map/map_all_coml10.txt||10||r||1|| NO[at]SPAM ],[*map/map_all_coml10.txt||10||r||1|| at 10/15/2007 12:12:38 AM
[*map/map_all_coml10.txt||10||r||1|| @],[*map/map_all_coml10.txt||10||r||1|| @],[*map/map_all_coml10.txt||10||r||1|| @]...more >>

i need a help
Posted by maddy at 10/15/2007 12:00:00 AM
dear folks, i uploaded the image using the following code : HttpPostedFile myFile = Picture.PostedFile; int FileLen = myFile.ContentLength; string FName=Path.GetFileName (myFile.FileName); string Extn=FName.Remove(0, (FName.LastIn...more >>

#if #endif in CSharp
Posted by ma at 10/15/2007 12:00:00 AM
Hello, I want to write something such as : enum x{ x1=0, x2, x3, x4, xend}; #if xend != 6 #error size f enum is not correct #endif How can I do this in csharp? Regards ...more >>

performace counter and threads
Posted by M R at 10/15/2007 12:00:00 AM
Is it possible for two threads or applications running simultaneously to update the same performance counters? thanks m ...more >>

Attributes questions
Posted by Michael C at 10/15/2007 12:00:00 AM
I want to apply the [ComVisible(false)] attribute to the GetType method. Problem is GetType cannot be overridden for me to apply the attribute. I read somewhere an attribute can be applied in this situation in 2.0 but the MS help is typically useless and google has proven fruitless. Can this b...more >>


DevelopmentNow Blog