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# > may 2007 > threads for monday may 21

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

Multilingual Application
Posted by Luc The Perverse at 5/21/2007 11:28:48 PM
Hello! I am looking for a good way to make an application multilingual. Danish/English for now (but I don't want to preclude more than two languages eventually) Every dialog will have an option for changing language (except simple dialog boxes) Here is what I am envisioning - I want to m...more >>


add timespan to datetime
Posted by Lars Schouw at 5/21/2007 11:12:53 PM
I would like to to add a time span "1Y 2M 3W 20D" entered as a string to a date time how do I do that? Lars ...more >>

read Exchange 2003 message stores with C#?
Posted by Les Caudle at 5/21/2007 9:48:52 PM
What are some ways I can read MS Exchange Server 2003 message stores using C#? -- Thanks in advance, Les Caudle...more >>

MDI Child Form Dispose?
Posted by Adam Right at 5/21/2007 7:51:10 PM
Hi, I am developing an application which has established on MDI Form and there are many MDI Child forms. My problem is starting when i close the mdi child forms. They are not disposed from the virtual memory, so it wastes much memory for the clients. I trigger GC.Collect and i also implemet...more >>

"inherit" from a static class
Posted by learning at 5/21/2007 6:18:26 PM
Hi I have a static class written by other team which encapsulates a database instance. but I need to extend it to incldue other things. I know that C# static class is sealed and can;t be inherited & I don't want to copy + paste code. How can I inherit those member variables? Thanks ...more >>

Which event is raised after a datagridview sorts itself?
Posted by Pucca at 5/21/2007 4:28:01 PM
Hi, I need to hightlight some rows that have new data copied to them after they're sorted. I tried hightlighting int he DragAndDrop event but once the data is copied to some rows and I highlight them the grid sorts itself with the new data and of course the wrong rows are now highlighted. ...more >>

VS AddIn read callstack
Posted by Rainer Queck at 5/21/2007 4:16:37 PM
Hi NG, currently I am working on a add-in which shell read the callstack and write it to a file. The question is, how can I read the current callstack of a debugged application with a add-in? I assume there are some framework classes, that can help me on this task but I have no idea which...more >>

Getting the selected text of WebBrowser control dropdown box.
Posted by Frank Rizzo at 5/21/2007 3:58:24 PM
I have a WebBrowser control on a .net 2.0 winforms app. I load up a page and want to get the selected entry of a dropdown. I can get the element: HtmlElement stationList = browser.Document.GetElementById("dropdownFacID"); How do I know get the selected entry (the text, not the id). Th...more >>



Newbie: How to extend a class?
Posted by Terry Carnes at 5/21/2007 3:49:54 PM
I have a dotnet assembly which includes classes RequestType, Response, Transaction, and TransactionElement. To use this I would normally create a new Transaction passing it a parameter of RequestType and receive a Transaction object of the right type in return. Paymentech.Transaction trans...more >>

Generics Issue with Simple Factory
Posted by sloan at 5/21/2007 3:49:07 PM
I have 1. An interface (generic). I simplified it to have one method. 2. A class which implements this interface. This class is also a Singleton. 3. A factory, (which right now only returns 1 concrete class, from #2 above) I can't figure out if I can get the factory to work correctly,...more >>

Accessing an XML file through strong typed dataset
Posted by Robert Bravery at 5/21/2007 3:25:55 PM
HI all, I have an xml file, I need to be able to read the data into strong typed dataset for further use in my application Can someone point me to documentation as to how I can do this. I have absolutley no idea where to start. Robert ...more >>

WCF: Why is the client's IDisposeable implementation private?
Posted by Jon Davis at 5/21/2007 2:59:14 PM
Why is the IDisposeable implementation of WCF clients private? I'm glad that you can still Dispose() by casting or with using ( .. ) { .. } because IDisposable is indeed implemented but what was the design reasoning to make Dispose() private? Jon ...more >>

Problems with InstallUtil on FW1.1
Posted by Giulio Petrucci at 5/21/2007 2:48:49 PM
Hi there, I have to installa a Windows service on a machine which has only the fw1.1 installed. I did the following: - Create a WindowsService application (using the VisualStudio template); - Create the ServiceInstaller; - Imported a .dll in the solution (which is the logic of my applicatio...more >>

cant read a string value from an excel cell?
Posted by aotemp NO[at]SPAM hotmail.com at 5/21/2007 2:11:38 PM
Hi, Im having a reaaally hard time with something... Im trying to read a cell of data into a String variable. It seems like such a simple task too... Get the excel spreadsheet, get the workbook, get the sheet, get the cell, get the cells data and store it into a string. But it wont work!...more >>

from expression to string literal - how ?
Posted by Bob M at 5/21/2007 1:55:03 PM
If I define an expression or equation, how can I retrieve that expression as string literal? I want to do this so that I could avoid repetitive typing (or copy/paste/change) the same thing at two place. I try to demonstrate the problem in the following code. Bob M <%@ Page Language="...more >>

Alternative to MessageQueues
Posted by Mufasa at 5/21/2007 1:26:29 PM
We have a product that has 5 executibles that communicate via message queueing. It works great. Problem is, when we install on customers PCs, there are some where their IT department has limited the machine so we can't do message queueing (the default user doesn't have rights to create/add the...more >>

Run WinForms app as Console app
Posted by Joe at 5/21/2007 1:08:51 PM
We pass args to our WinForms app and would like the console to wait until the program ends before returning. For example: C:> MyApp.exe -r something This returns even though the process is still running (Task manager, processes). I would like it to wait until the process is done. An...more >>

How to call an event on another form - C# windows forms
Posted by hoofbeats95 NO[at]SPAM gmail.com at 5/21/2007 12:56:24 PM
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query button on it. If the query returns multiple results, a new window is opened with a grid containing t...more >>

How can a parent form tell if it has a child form?
Posted by Allan Michaels at 5/21/2007 12:05:02 PM
Hello all, We have a main form. We have the message loop programmed to listen for 'key strokes' from a bar code scanner. But when the message loop 'hears' the keystrokes, we need to know if the main form has a child window (specifically a modal child window). Any ideas how we ask a form ...more >>

Event not firing
Posted by Mark Chambers at 5/21/2007 11:29:52 AM
Hi there, Does anyone know why the "ColumnChanged" event isn't fired when "Merge()" is called below. "OnRowChanged()" is fired however: Thanks in advance. private static void Test() { DataSet ds1 = new DataSet(); DataTable dt1 = ds1.Tables.Add("MyTable"); DataColumn primaryKe...more >>

C# and regex continued
Posted by Nightcrawler at 5/21/2007 10:51:27 AM
Kevin Spencer was kind enough to provide me with the following regular expression: (?<artist>\w+)\s+-\s+(?<title>\w+)(?:\s+[\(\[](?<remix>\w+) [)\]])? This works great when I try to group the following mp3 naming conventions: Artist - Title [Remix] Artist - Title (Remix) Artist - Title ...more >>

When is "volatile" used instead of "lock" ?
Posted by Samuel R. Neff at 5/21/2007 10:35:06 AM
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock Statement (C# Reference) statement to serialize access. " But when is it better to use "volatile" in...more >>

Vista difficulties
Posted by Bruce at 5/21/2007 10:22:31 AM
Under Vista, the Dev Studio program installer adds a desktop shortcut to the Desktop. (.Net application.) The shortcut does not have a context menu item to run as administrator. However, if you create a shortcut manually from the exe file it does have a context menu item to run as administrator....more >>

VS2005: see return value?
Posted by not_a_commie at 5/21/2007 10:16:48 AM
If I breakpoint on the closing brace of a function with a return value, can I see what the return value is at that point? How? Thanks. Example: bool funcA() { return funcB(); } // breakpoint here and I want to know what funcB returned ...more >>

Installer Project in Microsoft Visual C# 2005 Express Edition???
Posted by Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+ at 5/21/2007 8:57:13 AM
I am wanting to create an installer project in Microsoft Visual C# 2005 Express Edition, but I can't see how to do it. I see in online help that you should go to File...Add...New Project... and choose Setup/Installer Project. But, this is not an option in my Project Types list. Is this some l...more >>

DirectoryServices and ObjectClass property
Posted by Jeroen at 5/21/2007 8:29:58 AM
Working with the DirectoryServices in C#, I want to build a tree of users. The tree control will have child nodes with user sam names, and expandable nodes for any group the current thread may view. The group however, may be many things. I'm quite new to LDAP and DirectoryServices, but I can i...more >>

Have getfile show hidden/system files
Posted by Tim Kelley at 5/21/2007 7:53:45 AM
Is there a way to have GetFiles() show hidden files also? Thanks ...more >>

Please help me on LoaderLock ...
Posted by Beorne at 5/21/2007 7:21:02 AM
I'm trying to call a third party dll routine from C# using pinvoke. Unfortunately I obtain a LoaderLock exception and my application stops. I've seen that it must be some uncorrect behaviour of the called routine, but I can't modify it. Note that calling this routine from a C++ project does n...more >>

[WPF] error starting application from explorer, but OK from VS
Posted by timor.super NO[at]SPAM gmail.com at 5/21/2007 6:59:07 AM
Hi group, I have a strange error. I'm a beginner with dotnet 3.0, when i try to run an wpf application from my windows explorer, the application crash. For example, i've downloaded the demo project at this url : http://www.codeproject.com/useritems/wpfdemo1.asp, that contains an exe and th...more >>

Problem with webclient uploadvalues on SOME computers
Posted by jaffar.kazi NO[at]SPAM gmail.com at 5/21/2007 6:35:48 AM
Hi All, I have a .NET Winforms application that regularly posts to a PHP page. Till a few days back this worked perfectly. However, now, on certain machines, after the data is sent to the server, the server reports that no data is present. The code still works on my development machine. All th...more >>

Brightness sum and transparency
Posted by amberti at 5/21/2007 5:55:18 AM
To make excellent and useful scatter plot with huge dataset this is a stunning feature: brightness sum and transparency. look at (half of the page near Scatter plot Heading): http://stats.math.uni-augsburg.de/Manet/plots.html#plots Does someone have an idea on how to do that in c#? Thanks...more >>

dataGridView remove rows in Scroll event cause execption
Posted by Michael Meckelein at 5/21/2007 4:04:38 AM
I get "Value of '3720' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum' exception if I remove rows in a dataGridView while scrolling from the top to the end of the grid in one fell swoop. You can reproduce this using the code listed under [1]. .NET 2.0 is used. The ...more >>

.NET 3.0 ....
Posted by Remote_User at 5/21/2007 3:23:14 AM
Hi, What are the advantages/new features .NET 3.0 brings in compared to .NET 1.1.What are the impacts on the current system using 1.1, backward compatibility etc. Can i get some heads-on comparison between the two? ...more >>

creating a form in a new thread
Posted by dk60 at 5/21/2007 2:22:04 AM
Here is a problem I encountered concerning threads: Here is the code in Form1 button click handler: AddForm addForm = new AddForm(booksDataSet.Titles); Thread addTitleThread=new Thread(new ThreadStart(addForm.GetNewTitle)); addTitleThread.Start(); Here is the cod...more >>

C# Express Edition and mobile projects
Posted by Pratheep at 5/21/2007 12:00:00 AM
Hi, Can I compile code for mobile devices (Window Mobile 2005) using C# Express or do I need the full version of C# for mobile devices? thanks, Pratheep ...more >>

Bug with Visual C# designer?
Posted by herr at 5/21/2007 12:00:00 AM
Hi all, I am having this problem with C# 2005 professional, while I could never see such a thing in VS 2003. The problem is that the form designer doesn't reflect the changes I make to a form through the property panel on-the-fly. Even if a change is reflected in the designer, when I compil...more >>

Dispose, finalize and singleton classes.
Posted by BLUE at 5/21/2007 12:00:00 AM
Since singleton classes conceptually are like static classes, the are supposed to last for the entire lifetime of the application. Starting from this point tell me if I'm wrong saying: - it make no sense to implement IDisposable - it make sense to implement Finalize if there are unmanaged res...more >>

using rundll32.exe to access control panel applet?
Posted by Neil Chambers at 5/21/2007 12:00:00 AM
Hi all, I don't know if this is possible but I'd like to access the functions contained in the 'Mail' applet within the Control Panel. Specifically I want to access the 'Profiles' list and then if the desired profile (source) name is found Copy... it to another name (target) - set the ta...more >>

C#.Net 2.0 SqlDataSource ConnectionString question
Posted by Jason Huang at 5/21/2007 12:00:00 AM
Hi, Here is the SqlDataSource in my aspx file <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ETCServiceTestConnectionStringA %>" SelectCommand="SELECT [TestNo], [AcceptDate], [status] FROM [TestForm] ORDER BY [TestNo]"> </asp:SqlData...more >>


DevelopmentNow Blog