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 2007 > threads for tuesday june 19

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

supress command prompt
Posted by YIguchi at 6/19/2007 10:04:01 PM
Hi , I want to run a batch file from the c# code. Every time i run the batch file command prompt is displayed. I do not want to show this command prompt. Is there any way to suppress the command prompt. Regards, Y iguchi...more >>


Preventing an app from being launched more than once
Posted by Mark Rae at 6/19/2007 9:52:45 PM
Hi, I'm using the following example for this: http://www.yoda.arachsys.com/csharp/faq/#one.application.instance which works perfectly on Vista, but not on XP... Doesn't throw any errors, but multiple launches of the app are not prevented. Is there another solution? Any assistance g...more >>

Inheritance??
Posted by andreister NO[at]SPAM gmail.com at 6/19/2007 7:04:30 PM
public interface IFood { } public interface IMonkey { void Eat(IFood food); } public class Bread : IFood { } public class Gorilla : IMonkey { public void Eat(Bread bread) { } } Compiler error: 'Gorilla' does not implement interface member 'IMonkey.Eat(IFood)' I would expect ther...more >>

Bind DataGridView with BindingSource with .net 2.0
Posted by Mike at 6/19/2007 6:56:03 PM
i have a small difficulties with BindingSource and dataGridView bind db has properly opened and bind doesn't works. Unfortunately I didn't find any good example how to connect MS Access with dataGridView and BindSource class. Maybe something like this: DataTable dtResult = new DataTable(); ...more >>

Data serialization options
Posted by Peter Duniho at 6/19/2007 5:38:22 PM
I've been learning about mechanisms .NET offers to export data. The initial goal is to see what sorts of ways are available to save an application's state (document, internal database, whatever). Not counting storing data in a database (which is obviously suitable for some things, but ...more >>

Why "delete" file hang?
Posted by dh at 6/19/2007 5:01:44 PM
The code below hung during execution at "File.Delete(testFile)"... if (File.Exists(testFile)) { Console.WriteLine("Before jumping off the cliff..."); File.Delete(testFile); } Console.WriteLine("Arrived here..."); Though "Before jumping off the cliff..." was printed out, "Arrived here...more >>

obtain ref to assembly from created class instance
Posted by John Grandy at 6/19/2007 4:58:02 PM
It does not seem possible to compare instances of assemblies from which instances of controls/classes are created. In other words, if I have Assembly myAssembly Assembly.LoadFrom(path); object myClass = myAssembly.CreateInstance("<ClassName>"); It is not possible to obtain a reference to...more >>

Underlying OS architecture
Posted by David Jackson at 6/19/2007 4:41:27 PM
Hello, There was a thread recently about how to tell if the installed version of Windows is 32-bit or 64-bit, but that seems to have disappeared from my newsreader so apologies for starting a new thread. Anyway, the first suggestion was to use IntPtr.Size. That is clearly wrong, because ...more >>



[Ann] DotNoodle
Posted by Tim Haughton at 6/19/2007 4:39:52 PM
Collaborative, DotNet-centric search engine: www.dotnoodle.com Feel free to add sites to its search path. Just click collaborate. Cheers, Tim ...more >>

where are partial classes stored?
Posted by Dica at 6/19/2007 4:29:22 PM
i've converted a 1.1 dot net app to 2.0 which has split all my classes into partials. when i try to build the app, i keep getting an error about "The type 'myClassName.bookingApproval' already contains a definition for 'dgBookingRequest'". i've looked through the the page and dgBookingReque...more >>

Is there an obfuscator for .NET OpenSource or free?
Posted by kenshiro2000 at 6/19/2007 3:48:28 PM
As the post subject, does it exists? Thanks Ken ...more >>

Detecting resources not being released from com extension
Posted by at 6/19/2007 3:39:18 PM
I've developed a com extension for explorer and another dll linked to the com extension which provides the actual functionality. The extension does nothing more than create an object and pass selected files to the object for further processing. The problem I'm running into is with a few cases re...more >>

one settings file for base dll and windows service
Posted by akis at 6/19/2007 3:23:00 PM
Hello, I have already spent a whole day on that so some help would be greatly appreciated. I have a windows service that in the settings file (created by the designer) has a bool debug=false the service uses a base dll with a settings file again with the same debug key. When I compile it I...more >>

Beginner: C# Winform in Linux using Mono
Posted by Hitchkas at 6/19/2007 2:46:19 PM
I have a very beginner and fundamental question regarding porting and running C# programs in Linux. As a background I am a total idiot when it comes to Linux but somehow managed to install Ubuntu 7.04 Feisty Fawn and Monodevelop 0.12 on a machine. So far so good, however I cannot compile and r...more >>

creating windows services with visual studio standard edition
Posted by Dica at 6/19/2007 2:36:25 PM
we just ordered VS 2005 standard edition. i was reading up on creating windows services and apparently this is only possible with the enterprise edition. is this true, or does it simply mean there's no template for windows services with the standard edition? are there VS templates published ...more >>

Import a Table into Access
Posted by gregarican at 6/19/2007 2:17:06 PM
There's a data integration application I have to support that uploads data using Access (oy vey). All of my proprietary data is housed in intermediate SQL Server tables. Currently I perform the uploads by opening up Access, then importing the SQL Server tables using Access so they reside there i...more >>

System.Transactions vs System.Data
Posted by Ken at 6/19/2007 1:41:32 PM
I used the classes (SqlCommand, SqlConnection) of part of System.Data namespace. I got an error which mentioned "Could not load file or assembly assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089 or noe of its dependencies. What should I do to f...more >>

newsgroups vs forums
Posted by rodchar at 6/19/2007 12:23:00 PM
hey all, i noticed that there's this msdn newsgroup and then there's an msdn forum. what's the difference? thanks, rodchar...more >>

Capture selection from other applications?
Posted by Figmo at 6/19/2007 12:21:54 PM
I am writing a language translation app. It will run minimized to the tray. I want to setup a global hotkey that a user can hit that will capture whatever text is highlighted in the current window and translate it. The current app could be a web browser, Word, Notepad, whatever. Can some...more >>

the right forum wont answer
Posted by rodchar at 6/19/2007 12:21:04 PM
hey all, i want to apologize ahead of time for this but i've tried posting this questing in the correct forum but no one will answer so please forgive me. all i'm trying to do is map a drive to my new vista pc but it won't let me. i can ping it fine. when i put in the correct login, it just ...more >>

Changing User Account Expiry Date to Account Expires Never
Posted by Chris Noble at 6/19/2007 12:18:39 PM
A user account expiration date can be set using the following code // Use the DirectoryEntry.InvokeSet method to invoke the // AccountExpirationDate property setter. usr.InvokeSet( "AccountExpirationDate", new object[] {new DateTime(2005, 12, 29)}); // Commit the changes. usr.Comm...more >>

Simple regex question
Posted by MaxMax at 6/19/2007 11:38:43 AM
I want to add a text to another text using regular expressions... An example before= "foo" after= "foobar" before= "one" after= "onebar" before = "" after = "bar" How should I do? I found 2 nearly correct patterns: search = ".*", replace = "$&bar" but this will give me: foobarba...more >>

.NET Applet
Posted by eusebiu at 6/19/2007 9:40:12 AM
hello.. I have an applet written in C#(Windows.Forms.UserControl) and I import it into an ASP.NET 2.0 page with <object> tag and the assembly is in the same folder with the aspx page. <object id="applet"classid="http:Assembly.dll#Namespace.MyClass"></ object> When I run the Application (F5 in ...more >>

news ticker
Posted by Mike at 6/19/2007 8:43:14 AM
I want to create a news/stock/sport ticker for my desktop. I want to have the ability to select my news source, (cnn, msnbc, etcs) sport source(espn, nfl, nba, etc) and my stock source (nasdaq, nyse, etc) then once that information is selected store it in a XML file, then have my ticker read ...more >>

progress from Blocking method? or blocking main thread with async method??
Posted by giddy at 6/19/2007 7:30:19 AM
hi , I'm in a slight dilemma. I have an updater program that checks for pending updates and downloads them if the users chooses to. Since i dont need a windows form to check if there is an update , I dont use a form unless i have two. This , creates either one of two problems. When i'm d...more >>

The applicationhangs when event is being unhooked
Posted by Amit Dedhia at 6/19/2007 7:27:29 AM
Hi I am developing an application using C++/CLI in Visual Studio 2005. In my application I have following structure. (1) Class A creates instances of Class B and Class C. (2) Class B implements a timer function which repeatedly executes a timer every 250 ms. (3) Class C instance hooks for ...more >>

frequent Sql exception
Posted by rodchar at 6/19/2007 7:19:01 AM
Hey all, We get the following error on a lot of our .net application and we are not sure why? I notice that it happens like a timeout issue like if you leave for several minutes. Can someone please confirm this is what actuall is happening? Exception of type 'System.Web.HttpUnhandledExcept...more >>

HELP - Find Row Index by value in DataGridView
Posted by BrianDH at 6/19/2007 6:54:31 AM
Hi I am looking for examples of how to find the row index in a Datagridview control by comparing a string value to the value in a Cell. Thanks Brian...more >>

n00b question about destructors
Posted by gabest NO[at]SPAM freemail.hu at 6/19/2007 6:30:04 AM
I've got the following situation, simplified example of course. The thread would be deep behind interfaces, classes, etc. Is there any way to automagically exit it without having to add an Exit() call to everywhere? I just want to break that loop when the application is done (the thread is still...more >>

Email sent to deleted items
Posted by Code Monkey at 6/19/2007 5:28:59 AM
I'm using the following code to send emails: <code> public Boolean SendEmail(String _fromAddress, String _toAddress, String _subject, String _message) { SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); try { ...more >>

C# Web form designer [Open source]
Posted by svenkatesan NO[at]SPAM quadrantsoftware.com at 6/19/2007 3:25:40 AM
Does anybody know of a good open source (C# technology) that can be used to design HTML pages. I know we can use Visual Studio or Winword or Frontpage but I am looking for a tool that can be customized for us and and can be distributed. Any good third-party links is appreciated. Thanks Sa...more >>

I'm seeking a .jar&SharpZipLib expert
Posted by daniele.mucciola NO[at]SPAM gmail.com at 6/19/2007 2:23:20 AM
Hi all, Using c# I have to uncompress a .jar file, modify an inner XML file and then build again the .jar file. I did all with SharpZipLib but the built .jar is ruined and cannot be executed. Same c# expert can give me a solution? Thanks all. ...more >>

n_TransactionManager?
Posted by HostCurrentCallback at 6/19/2007 1:29:01 AM
How to use HostCurrentCallback in TransactionManager?Could Anyone show a simple example?thanks!...more >>

OrcasBeta1: Why I cannt find the InkAnalyzer class in System.Windows.Ink namespace
Posted by cgd at 6/19/2007 12:00:00 AM
thsnks ...more >>

Getting a Thumbnail In Vista
Posted by Tim Haughton at 6/19/2007 12:00:00 AM
Hi, I'm hoping someone can help me get a scalable thumbnail from Vista. Vista has a new COM API, IThumbnailCache which backs on to Vista's global thumbnail store. Unfortunately, I can't find it I know it's there, it's in MSDN. I've imported shell32.dll into my C# project which generates all ...more >>


DevelopmentNow Blog