Groups | Blog | Home


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
May 2008
June 2008
all groups > dotnet framework > june 2007 > threads for june 15 - 21, 2007

Filter by week: 1 2 3 4 5

Generics (Needed some basic materials & help documentation)
Posted by GH at 6/21/2007 10:32:00 PM
Generics (Needed some basic materials & help documentation) ...more >>


GetFullPath and Administrator Paths
Posted by Brian R. at 6/21/2007 3:44:01 PM
I am trying to see if two file references are equal using the Path.GetFullPath method. The following two paths when passed to this method do not come back the same, which surprises me. "\\MyMachine\C$\Data\MyData\MyFile.txt" "C:\Data\MyData\MyFile.txt" These are logically the same file, ...more >>

Background Timer Execution?
Posted by lucius at 6/21/2007 2:41:25 PM
I am looking for sample code of a C# 2.0 Service that every 1 minute executes a method (that returns void). The timer and timer-fired method need to be fully async and background so the main service does not appear unresponsive. Can anyone show code like that? Small and simple is best. Than...more >>

Odd shortcut problem with my app using a VS2005 deployment project
Posted by WayneM at 6/21/2007 11:07:00 AM
I have my deployment project in VS2005 for my executable I'm making an install for. The install seems to build fine and installs without a problem. The odd problem is that the shortcuts created for the exe work fine the first time, but then the second time I try it - it pops up a dialog box ...more >>

Multipart Mime Message Parser in .NET BCL
Posted by mrashidsaleem NO[at]SPAM hotmail.com at 6/21/2007 2:19:51 AM
I have been looking in BCL for utility class(es) that could help me parse a multipart mime message but the search ended with no luck. I guess parsing such messages (email message is an example of multipart mime message, http does support multipart mime messages as well) is a very common requirem...more >>

Getting pretty desperate- Please help - Using "MailMessage" and "SmtpMail" on a WinXP Prof box with iis5 and sp2 and dotnet1.1 with the latest serv
Posted by dorisferrarese NO[at]SPAM yahoo.com at 6/20/2007 2:27:26 PM
I am running into the wonderful expection: "Could not access 'CDO.Message' object." "Exception has been thrown by the target of an invocation." You can checkout my code below - The interesting part with my error is that it only occurs with: myMessage.BodyFormat = System.Web.Mail.MailFormat.Ht...more >>

framework 3.0 asp:menu control
Posted by Jerry C at 6/20/2007 11:26:02 AM
I found docs at microsoft.com about asp:menu control for framework 3.0 and it has some css friendly attributes. how do I add the 3.0 controls and use them in VS 2005. or did I misunderstand the docs. Thank you -- Jerry ...more >>

Threading Design Question
Posted by Salim at 6/20/2007 11:01:01 AM
Hello All, I am working on introducing threading to my single threaded application to take advantage of these multi-core processors. I qurery for user data from file share and Active Directory with using two methods UserData data = GetFromFileShare(userName); if(data == null) { da...more >>



.NET compression library supporting .jar
Posted by daniele.mucciola NO[at]SPAM gmail.com at 6/20/2007 5:55:04 AM
Hi all, Do you know a open-source .NET compression library that supports .jar format? thanks. ...more >>

Regular Expression problem
Posted by Zoodor at 6/20/2007 5:52:01 AM
The crux of my problem is that I want a regular expression that will match a sequence of numbers that have been "ANDed" or "ORed" together in text: e.g. 1 1 OR 2 1 OR 2 OR 3...etc. 1 AND 2 1 AND 2 AND 3...etc. (But not 1 OR 2 AND 3, which mixes ANDs and ORs) I tried the regular expressio...more >>

color code of textbox
Posted by AVL at 6/20/2007 5:14:01 AM
hi, here is weird reqmt.. i need the color code of the textbox control 's border style,(Fixed 3d).... by default, what is the color code set for it's border....please help out ...more >>

Checking .NET runtime
Posted by RedLars at 6/20/2007 4:42:11 AM
Whats the recommended way for checking if a certain .NET runtime has been installed on a computer? Checking if for instance C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 exists ? or ? ...more >>

.Net COM to another machine
Posted by raju at 6/20/2007 4:39:58 AM
Hai, I created one COM class from vb.net application. After creating xxx.tlb file in another machine, I tried to access that com methods and properties in vb application. I can add reference in my vb application and created object for that class. But I can't use methods and p...more >>

.Net 2 starts (loads) slow after a while
Posted by Arnd Iffland at 6/20/2007 2:54:21 AM
Hi, we have a problem with the .Net framework 2 on a 2003 server. After a while (the last time it has been 3 days), all .Net program (even the configuration) needs 80 seconds to start! After a restart the problem is gone for a while and all programs starts fast. After the start delay, everyt...more >>

Invoking MessageBox from Scroll event of HScrollBar
Posted by Alexander Smirnov at 6/20/2007 2:03:59 AM
Hello! I need at some circumstances to show a message box from the Scroll event handler of an HScrollBar component. But when I invoke MessageBox.Show() the scroll event occurs again and again and I can have up to about 50 message boxes on the screen. Something with message queue, I suspect. H...more >>

Configuration utility missing
Posted by eusebiu at 6/20/2007 1:27:30 AM
Hello.. I've installed .NET framework 2.0 on a MS Windows Server 2003 SP1 and I can't find Framework utility 2.0 under Administative tools. The same thing happens on Windows XP SP2. Am I forgeting somthing to install? Thanks ...more >>

a clickonce issue
Posted by Tony Leung at 6/20/2007 12:40:46 AM
I am deploying a Windows application in Visual studio 2005 and adding some files to the folder in the application folder (in http://localhot/mytest), how can I also add these files to custom folder (client side) also? Any suggestion? Thanks a lot! ...more >>

help on richtextbox
Posted by AVL at 6/20/2007 12:14:04 AM
hi, i'm new to winforms..... i need to display certain data on form in a texbox.. but few words in the data need to appear as colored text.... i've tried with textbox and rixhtextbox..but no luck...can anyone help me out...more >>

Custom unhandled exception report.
Posted by Amber at 6/20/2007 12:00:00 AM
The default behavior of an unhandled exception is to report the exception to a microsoft host database, I have heard we can setup our own site, and let application report unhandled exception to specified site, how can I do this? ...more >>

.NET Windows Service Start Failure
Posted by Rick Mavrovik at 6/19/2007 2:26:21 PM
Hi, I am following every step to the letter mentioned in the various articles on writing and debugging .NET service. But when i start debugging the service i get this error (pasted below), although the service has been successfully installed and started. What could be causing this?? Please ...more >>

Windows Service -> Stop immediately stops service, despite RequestAdditionalTime()
Posted by mjurban NO[at]SPAM gmail.com at 6/19/2007 10:59:23 AM
I have a service that installs, starts, stops, etc. just fine. It uses a system.timers.timer to reschedule the handler. I am not using threads because I want exactly 1 file to be processed at a time. The handler processes files, which occasionally takes several minutes for large test files. ...more >>

Customize Application Data Folder
Posted by jtbjurstrom NO[at]SPAM yahoo.com at 6/18/2007 1:56:50 PM
The folder that the framework creates under the Application Data folder is not consistent. Instead of: ..\Local Settings\Application Data\My Company\MyApp.exe_Url_<guid> \1.0.0.0\user.config I would like to have ..\Local Settings\Application Data\My Company\My App \1.0.0.0\user.config ...more >>

Evaluate Runtime Expression in a Custom Attribute?
Posted by lucius at 6/18/2007 11:20:08 AM
I have a custom Attribute Class that decorates a primary class like in the example below. I would now like to decorate the primary class with the Attribute, but let the Attribute do a runtime evaluation of an expression and throw if it fails the expression. Can someone show me how to rewrite t...more >>

Opening Attachments- Windows Installer
Posted by tscov at 6/18/2007 10:24:02 AM
I cannot open any attachments on my computer, whether it is via e-mail or saved on my system. I get a message each time I try to open it saying that Windows Installer is preparing to install and then nothing happens. I have rebooted several times, run my virus scan, and restored my setting to ...more >>

.NET Framework 3.0 and VS2005
Posted by Gabriel at 6/18/2007 10:05:56 AM
Hello, Could you tell me how to use .NET framework 3.0 with VS2005 ? I have to download SDK 3.0 but after that ? Regards, ...more >>

Screen does not refresh when screen saver active
Posted by Leslie at 6/18/2007 9:29:01 AM
I have a C# .NET Framework 1.1 application running on XP SP2 that displays alerts. When no alerts are active, the application is hidden. The app runs a background thread to check for alerts. When an alert is detected, the message information is displayed using a delegate to update the UI and d...more >>

ThreadPool and AppDomains and DeadLock - HELP!
Posted by Paul Wardle at 6/17/2007 10:56:05 PM
We have a plug-in architecture which dynamically loads plug-ins into their own AppDomains. The plug-ins are multithreaded and use the Thread Pool for asynchronous communications, timers etc. They typically use the lock keyword to synchronize access to objects that are used from different threa...more >>

Ejecting a Removable Drive using .NET
Posted by decclestone at 6/17/2007 2:22:00 PM
I would like to know how to go about ejecting a removable drive (i.e. USB or PCMCIA) drive using .NET. Any assistance would be greatly appreciated....more >>

System.Threading.Timer is intermittently late
Posted by Mike Kraley at 6/17/2007 11:47:03 AM
I have an application which uses many instances of System.Threading.Timer. This application is housed inside an HTTPAsyncHandler. When I receive certain types of messages, I need to take an action 90 seconds later. For each session I have a System.Threading.Timer created with infinite values ...more >>

Can't open .jpg files in Windows Mail
Posted by AZNorb at 6/16/2007 10:03:00 PM
When I get a jpg (jpeg) file in an email, I can't display the picture in the default program which is Windows Photo Galery. I get a message that the interface is not supported. If I change the program default to another program, e.g. Photoshop Elements, the picture opens. To get the picture...more >>

Generics and FindAll for SqlCommand ?
Posted by lucius at 6/16/2007 1:48:39 PM
I am building a generic SqlCommand builder and want to use 2.0 Generics. I want to create a Generic list of SqlCommands, and put new SqlCommands in the list, populate the commands, and then run them. New SqlCommands should go into the list if a command does not already have the same CommandT...more >>

P/Invoking incorrectly, but the CLR fixes it silently?
Posted by Alfonso Almazor at 6/16/2007 12:43:37 PM
Greetings, I have just noticed something interesting about the CLR's generation of stub code for p/invoke calls (this is on .NET 2.0): I am using a library called Cairo for some vector graphics drawing. On windows, it's a DLL written in plain C, exporting its functions as CDECL. To i...more >>

C# threading, events and main thread.
Posted by djdouma at 6/16/2007 5:38:01 AM
I've been working on this one for a couple of days, and am completly at my wits end. Is there some method for executing a function or event in the main thread, when called from a 'worker' thread? I understand how it works in the Windows forms world, but what about an application with no GUI? ...more >>

Programming for multiple monitors
Posted by Jeff Johnson at 6/15/2007 3:14:24 PM
I'm testing some 3rd-party software and I noticed that the application doesn't remember which monitor it was last running on and always opens on my primary monitor. This got me thinking that if I were ever to write an app for widespread distribution, I'd want to go the extra mile and add this ...more >>

Question about BeginInvoke.
Posted by Jason Kendall at 6/15/2007 1:43:42 PM
I don't understand why the order of events happening here is predictable. Let's say I have a base class user control with a 'Load' event handler and a sub: Private Sub iMatterControlForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Debug.WriteLine("B...more >>

Error with XBox Lab application
Posted by Jerry C at 6/15/2007 1:12:01 PM
I am trying WPF programming for the first time and using the XBox lab. When I deploy the lab and run I get the error System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' fa...more >>

EventWaitHandle question
Posted by Andre Azevedo at 6/15/2007 12:34:03 PM
Hi all, VS 2005 help says that EventWaitHandle has Dispose (IDisposable) and Finalize protected methods. The Dispose method a bool parameter called explicitDisposing that indicates if it was called by Dipose ou Finalize, but, Finalize was not implemented. Is this a bug? TIA, -- Andr...more >>

regex help
Posted by AVL at 6/15/2007 8:30:01 AM
hi, i need a regular expression which would match the exact word in a given string. for ex my input is as below and my pattern is .ocx ".docx .DOCM .DOTX .DOTM" i want only .ocx string to be matched, if any.. currently, it matches docx also....which i dont want... what is the appr...more >>

How to to install dotnet.framework for a limited user account in Windows
Posted by Ryou kaihou at 6/15/2007 12:00:00 AM
Is it poossible to install dotnet.framework for a limited user account in Windows XP? Thanks!!! ...more >>

Can we install dotnet.framework for a limited user in Windows XP?
Posted by Ryou kaihou at 6/15/2007 12:00:00 AM
Is it poossible to install dotnet.framework for a limited user in Windows XP? Thanks!!! ...more >>


DevelopmentNow Blog