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 thursday june 7

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

Wich DBMS supports TransactionScope and distributed transactions?
Posted by BLUE at 6/7/2007 9:30:48 PM
Only SQL Server 2005 or also DB2, Oracle and MySQL? Thanks, Luigi. ...more >>


play mp3 from stream (not from file)
Posted by Dirk Reske at 6/7/2007 5:55:21 PM
Hello, I'm looking for a way to play a mp3 file from a stream, not from a file. I looked at DirectX the Audio class from the AudioVideoPlayback assembly can play only from a file... And DirectSound is not able to play mp3 files, but it can open streams... :( Does anybody know any other ...more >>

Looking for Tips/Writeup on overall approach to Exception Processing
Posted by Rex at 6/7/2007 5:43:34 PM
Re: Looking for Tips/Writeup on overall approach to Exception Processing Hi All - I am fairly new to C# and am wondering how to best implement (overall) Exception Processing within my (reasonably-sized) C# Windows application. I do have a bunch of somewhat random questions on this and if y...more >>

Launch devenv.exe and open a web site?
Posted by Samuel R. Neff at 6/7/2007 5:09:02 PM
Can I launch devenv.exe and specify a web site to open via command line? No solution or project file, just a web site. Thanks, Sam ------------------------------------------------------------ We're hiring! B-Line Medical is seeking .NET Developers for exciting positions in medical pr...more >>

interfaces
Posted by abcd at 6/7/2007 4:12:51 PM
Can someone tell me whats the exact advantage of Interfaces in C#. To me abstract classes serves the purpose and have all good things then what is special about interfaces...can someone tell me some real example from system, user, developer point of view.... ...more >>

server scenario - variables in the right spot?
Posted by David at 6/7/2007 3:21:21 PM
i think i just realized i'm an idiot. again. (not syntactically correct code... just pieces to illustrate) class StateObject { members like socket, receiveBuffer, receiveBufferSize, StringBuilder etc.. } class program { //class globals public AutoResetEvent clientConnect...more >>

GUI construction issues
Posted by Zytan at 6/7/2007 2:59:32 PM
I have a tab control, with several tabs, with RichTextBoxes in a few of them, they are all dock = fill. One of them becomes larger than the rest (position = 0,0 instead of 3,3). It's not a big deal, but I hate that this GUI editor just doesn't work sometimes, and it's noticeable. Does anyone ...more >>

There is already an open DataReader associated with this Command which must be closed first.
Posted by BLUE at 6/7/2007 2:30:43 PM
I've a TransactionScope in which I select some data and I want to do some queries for each record retrieved with my select. I'm using a DataReader and for each record I do factory.CreateCommand() and then I execute the command, but I get the following exception message: " There is already an o...more >>



wcf udp multicasting
Posted by Nick at 6/7/2007 2:27:46 PM
Does any one have a simple wcf of udp multicating other than the one posted here http://wcf.netfx3.com/files/folders/transport_channels/entry5235.aspx I would like a program with just the basics not all of the complications of the sample above. Thanks Nick ...more >>

C# : How to handle the ENTER key
Posted by sravan_reddy001 at 6/7/2007 2:25:02 PM
i had designed a win app(an address book) when the user wants to enter the contact he will type in all the details and "HE SHOULD CLICK ON THE ADDENTRY BUTTON PROVIDED" i want to simplify this task for the user by allowing the data to bw added in database when "HE PRESSED ENTER KEY AFTER ENT...more >>

About threading? How to know if threads finished?
Posted by Diego F. at 6/7/2007 2:07:53 PM
Hello. I'd like to know if there's a way to know if all threads started using the threadpool are finished. How can I ensure that all threads finished? -- Regards, Diego F. ...more >>

VB to C# Translation
Posted by JimHeavey at 6/7/2007 1:04:02 PM
What is the equivalent of the "Handles Me.Init" code in C#? Private Sub StockDog_Init(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Me.Init Fetch(StockTicker) End Sub Thanks in advance for your assistance!!!...more >>

Help understanding crash/error
Posted by Adam Clauss at 6/7/2007 12:50:25 PM
We have a Windows service written in C#. As of late, it has started crashing after running for as little as 2 minutes. I have a handler for AppDomain.UnhandledException which does NOT get called in case (it is setup correctly - I have seen it called in other places). The only error inform...more >>

Please Help DLL Issue
Posted by at 6/7/2007 11:37:15 AM
Hi all, Am wondering if anyone can help. I have received a C++ none COM DLL that i must use to interact to a peice of hardware. As I am more confident in C# I decided to create a wrapper for the DLL. As i have found out this is not possible for MS visual studio to do this automatically from...more >>

how do I make a status bar?
Posted by Rogelio at 6/7/2007 11:35:01 AM
hey, I have a status bar, and a timer control, and a statc variable. every 0.5 seconds, the timer sets the status bar text to the variable. then I can just change the variable's value whenever I want, which will in turn display in the status bar. it works great. my problem is that when I ...more >>

A Quick Delegate Handler Question Win [C#]
Posted by MikeY at 6/7/2007 10:21:57 AM
Hi Everyone, I'm lookig for a way around retrieving my information, with out having to take it to another method. I have two buttons "YES" "NO" on a custum control and I want to retrieve the returned info of yes or no in the same method I called up the control instead of sending it to an...more >>

read from event viewer
Posted by Mike at 6/7/2007 10:08:48 AM
I know there are server tools out there for this but are admins won't run them on test servers. what I need is a way to read the event view --> system for a particular event. I need this to run every 15 minutes and when this event is logged I need an email to be sent to myself and another d...more >>

Using data from SQL in C#
Posted by kanepart2 NO[at]SPAM hotmail.com at 6/7/2007 8:48:16 AM
I am making a simple program to use display SQL data using C# SqlConnection myConnection = new SqlConnection(@"Trusted_Connection=yes;database=*****database name*****;connection timeout=30"); try { myConnection.Open(); } cat...more >>

Checking is a networked computer is online before accessing a file
Posted by MattPKaiser NO[at]SPAM gmail.com at 6/7/2007 8:27:45 AM
I am trying to find a way to check if a computer on a network is "online" so that I can access a file on a share. In short I maintain a list of computers that have my service running (in the client application) and in my client program I allow the user to change the computer that they are acce...more >>

grid view sorting problem
Posted by bbdobuddy at 6/7/2007 7:40:01 AM
I have a grid view that pulls data from a dbf file. I set the Allow Sorting to true and I put my code in the Sorting event. The problem is that I can't get the sorting to work so I wrote some info to a text file to see what is happening. What I found out is that when I clicked on a column...more >>

Unsigned char
Posted by hermbagger NO[at]SPAM gmail.com at 6/7/2007 7:38:32 AM
Hello.. Does anyone know the C# equivalent of an unsigned char in C++? Thanks! ...more >>

Do bound controls receive any notification when the bound item is swapped for a different item?
Posted by cjard at 6/7/2007 7:36:53 AM
Suppose: A TextBox is bound to a BindingSource, which is bound to a DataTable A BindingNavigator is used to alter the current row being looked at by the BindingSource (i.e. Nav's NEXT button is pressed. BS.Position changes from 2 to 3, Textbox was showing APPLE, now shows ORANGE) Does the te...more >>

Resize and Upload Images to SQL Server 2005
Posted by bungle at 6/7/2007 7:12:47 AM
Hi Would anyone be able to offer advice on how they would upload images to SQL Server 2005 so that if they are too big the system will automatically resize them first? Obviously you need to get hold of the image first so do you store them to a temporary location first etc.??? This will be a w...more >>

Regex class
Posted by _nabuchodonozor at 6/7/2007 5:53:40 AM
Hi I have string as path\track.mp3 eg "C:\Mp3\Korn\korn - trash.mp3" and I want to have only korn - trash.mp3 file without path. How should I do it? ...more >>

c# sending a bitmap by socket
Posted by david at 6/7/2007 3:52:35 AM
hello, I have a client/server application. the server capture picture from webcam and send it to every client connected to it.the network part works good and the capture from webcam too. I associate an event when a capture is done, then every frame of the webcam should be sent to the client. b...more >>

Please send this Information
Posted by bhushanam.n NO[at]SPAM gmail.com at 6/7/2007 3:03:28 AM
I wrote the microsoft exams Like code:70305,70229, I wrote in december 2006, til today i am not get the certificates, Please tel, What can i do for getting my certificates, Thanks For Future, I hope any body will send Info ASAP.... ...more >>

Async file read causes memory leak
Posted by kreuters NO[at]SPAM gmail.com at 6/7/2007 2:56:40 AM
hey, can anyone explain to me why this method that is called numerous times to read chunks of a file works fine with a normal synchronous read, but causes a large memory leak when BeginRead() is called instead? private double[] ReadChunk(FileStream fileReader, int readLength, int ch...more >>

Is const allowed anywhere?
Posted by neelsmail NO[at]SPAM rediffmail.com at 6/7/2007 12:55:13 AM
Hi, I have just started learning C# ; I was working in C++ till now (and would like to if allowed, but learning new things dont hurt). I am used to specifiying "const" to get the assurance that unless someone specifically cast-away the constness, object wont change. So, as part of my first ev...more >>

Newbie Q: Declare variable IN the loop or BEFORE the loop?
Posted by Rex at 6/7/2007 12:00:00 AM
Hi All, I have a somewhat trivial newbie question - but I'm trying to "get" C# more and more. Here goes: Let's say I have a loop: for (int i = 0;i <= MyCollection.Count - 1;i++) { int x = i + 2; // do whatever, some code using i and some code using x (which is always 2 greater ...more >>

Where do I report bug to Microsoft?
Posted by Allan Ebdrup at 6/7/2007 12:00:00 AM
Sorry for the off topic subject, but I don't know where else to ask. I've found a bug in Visual Studio 2005 when running a webtest, where do I report such a bug? I've searched the microsoft newsgroups and have found nothing related to testing, shouldn't there be one (or more)? Kind Regards,...more >>

domain name availability check
Posted by Puja at 6/7/2007 12:00:00 AM
Hi all, I need to check domain name availibility on one of my page in website. I do not want to let user click a link which leads to sites which check for domain name but I want check on my button click. Does any one have a code to check domain name availiability ? it should check basic...more >>

Poor performace when selecting all items in a listbox?
Posted by Duncan Smith at 6/7/2007 12:00:00 AM
So far, the quikest way I have found to select all items in a list box is to turn off updates, set a wait cusror and then call SetSelected on each item (see below), but it's too slow when the control is populated with tens of thousands of items. Ideally the wait-cursor shouldn't be needed as I...more >>

Unboxing simple types
Posted by muriwai at 6/7/2007 12:00:00 AM
Hi, I use C# 2.0 with the following: object obj = ( int ) 1; func( obj ); // Unboxing int to uint void func( object obj ) { #if true uint v = ( uint ) obj; // Throws an invalid cast exception #else if( obj.GetType() == typeof( int ) ) // UGL...more >>

How to make choices for normal and modified setup
Posted by Mika M at 6/7/2007 12:00:00 AM
Hi! I'm not sure is this the right place for this question, but... I have made three separate C#-windows forms projects into same solution using Visual Studio 2005. These projects are using same database, but are doing different tasks - so these are like different applications. When I bu...more >>

DCOM
Posted by zion at 6/7/2007 12:00:00 AM
Hello, How can I connect to remote DCOM server? Thanks ...more >>


DevelopmentNow Blog