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# > april 2006 > threads for sunday april 16

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

Hit Detection on a Line
Posted by Martijn Mulder at 4/16/2006 8:53:27 PM
I want to know if the mouse is over (hitting) a line. Therefore I created a Region object that holds the line and use the IsVisible() method to test if the mouse hits the line. It doesn't work! In the little program below I create two Regions: one is square, the other is a line. Hit testing w...more >>


Simple method of binding PictureBox Image to Datatable
Posted by Joe Spears at 4/16/2006 7:58:04 PM
Hi Is there a simple way to bind a PictureBox image to a datatable?? I've tried pictureBox.DataBindings.Add("BackgroundImage", dt1, "Picture"); But it doesn't seem to work. Do I have to go to the trouble of creating memorystreams?? I thought there was an easy way in VS 2005 / .Net 2.0 ...more >>

Problem with method signatures and P/Invoke
Posted by t4urean at 4/16/2006 6:44:10 PM
I am involved in a project whereby I have to use a methods from a Win32 dll. There are two methods for which I can't write signature in C# I have even tried using p/invoke wizard, but it didn't gave the right answer. The C/C++ declaration for these methods is BOOL __stdcall CodecStart(int...more >>

Dataset performance impact
Posted by Magnus at 4/16/2006 6:33:23 PM
Im using the new binding features of Visual Studio 2005. I have done the steps to create a bound data source, and selected all 40 tables from the database. The wizard generated the necessary code for the dataset and can be seen in the solution explorer under "db_exampledataset.xsd". My wo...more >>

Webrequest and Timeout
Posted by Christian Urbanczyk at 4/16/2006 1:58:53 PM
Hello! I have a problem with the Webrequest. I've search everywhere to find an answer but it seems that no one has the the problem before. So i hope somebody can help me here! Following Code: _________________________________________ WebRequest wrq = WebRequest.Create(URL); WebResponse wr...more >>

Leave connection open with local Access database
Posted by Gary at 4/16/2006 12:34:01 PM
If you develop a stand alone c# windows application that only reads from a single local Access database, do you need to close the connection each time you navigate to a different record? No other person or program will ever interact with this single table MS Access database. I have been de...more >>

TargetInvokationException
Posted by Andrew Bullock at 4/16/2006 12:30:49 PM
Hi, Ive got a multithreaded app, which uses bgWorker.RunWorkerAsync() to run the 2nd, 3rd, ..., nth threads. I keep getting exceptions thrown by various parts of the bgWorker.ProgressChanged event. These errors are probably just because I've done something silly, but thats not what I'm...more >>

Startmenu Toolbar
Posted by mitch at 4/16/2006 10:25:24 AM
Hello everyone, I haven't found *one* article or document on this online. Perhaps I'm using the wrong search terms. I want to create a toolbar in C# that can be added to the start menu...much like Windows Media Player's, iTunes, and Googles toolbars. So if anyone can point me in the righ...more >>



how to control application context?
Posted by Peter Rilling at 4/16/2006 10:15:23 AM
As the app that I am developing gets more complex, it is getting harder to manage state and ensure that the menus and controls have the correct enabled/disabled state. One thing that I do not like is to have each control talk to all other controls and menus to determine the state of menus a...more >>

Does WinFX need XP?
Posted by Brett Romero at 4/16/2006 12:47:35 AM
>From this page: http://msdn.microsoft.com/windowsvista/downloads/getthebeta/default.aspx, it seems I can develop with Avalon (WinFX) using VS.NET 2005, WinFX SDK and Windows SDK on WinXP. Specifically it says: This release of the WinFX RC and Windows SDK works with Windows Vista (February C...more >>

Regex: Not capturing '+' character
Posted by sklett at 4/16/2006 12:29:13 AM
I have this pattern: @"\s*//\$\$\s*Targets:\s*([\s,\w]+)" to match this line: //$$Targets: thing, thing+ When I get a match, the first Group (index 1, not 0) has: "thing, thing" - it drops the plus ('+'). Now, I don't know the plus will be there, everything after "Targets:" is variable an...more >>

Piped delimited string to int
Posted by Fariba at 4/16/2006 12:03:10 AM
Hello , I am trying to call a mthod with the following signature: AddRole(string Group_Nam, string Description, int permissionmask); Accroding to msdn ,you can mask the permissions using pipe symbol .for example you can use something like this AddRole("My Group", "Test", 0x10000000|0x0...more >>

Some clarification needed C# vs. Javascript
Posted by joe at 4/16/2006 12:00:00 AM
I'm a newbie so please bear with my newbie qustions. I just got a note from my Web hotel help desk and they said the web hotel Windows server support ASP 1.0 thru ASP 2.0 and newer. But when I add anything: <%@ Language="C#" %> <html><body><form> .... I get an error message. If the pa...more >>


DevelopmentNow Blog