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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|