Click here to Skip to main content
15,884,628 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unregister Server Activated Object ? Pin
Stefan Troschuetz12-Jan-04 5:54
Stefan Troschuetz12-Jan-04 5:54 
GeneralCould not load type. Pin
Simon Wren12-Jan-04 1:16
professionalSimon Wren12-Jan-04 1:16 
GeneralRe: Could not load type. Pin
Heath Stewart12-Jan-04 2:38
protectorHeath Stewart12-Jan-04 2:38 
GeneralRe: Could not load type. Pin
Simon Wren12-Jan-04 2:54
professionalSimon Wren12-Jan-04 2:54 
QuestionButtons? Pin
thomasa12-Jan-04 0:41
thomasa12-Jan-04 0:41 
AnswerRe: Buttons? Pin
Heath Stewart12-Jan-04 3:14
protectorHeath Stewart12-Jan-04 3:14 
GeneralPictureBox - Getting current mouse location Pin
MrEyes12-Jan-04 0:13
MrEyes12-Jan-04 0:13 
GeneralRe: PictureBox - Getting current mouse location Pin
Heath Stewart12-Jan-04 3:08
protectorHeath Stewart12-Jan-04 3:08 
In all the mouse events like MouseDown, MouseMove, and MouseUp events, the MouseEventArgs contains the X- and Y-coordinates of the client in terms of the client. How did you not notice these in your event handlers? Remember to read the documentation for important information. Since this is related to mouse events, start with the Mouse* events in your PictureBox member documentation.

You can also use the static MousePosition property (inherited from Control) to get the screen coordinates of the mouse, then translate those to client coordinates using PointToClient (inherited from Control) at any time:
Point p = Control.MousePosition;
p = myPictureBox.PointToClient(p);
On a side note, most implementations of checkered boards treat each piece as an object and the board as a grid of contains. This makes development much easier by using object-oriented development practices to control how pieces move and where and when to draw pieces. See http://www.csharphelp.com/archives/archive246.html[^] for an example.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: PictureBox - Getting current mouse location Pin
MrEyes12-Jan-04 3:25
MrEyes12-Jan-04 3:25 
GeneralShould I change C++ to C# Pin
TWS_Dave11-Jan-04 22:27
TWS_Dave11-Jan-04 22:27 
GeneralRe: Should I change C++ to C# Pin
Mazdak11-Jan-04 22:39
Mazdak11-Jan-04 22:39 
GeneralRe: Should I change C++ to C# Pin
Michael P Butler11-Jan-04 23:12
Michael P Butler11-Jan-04 23:12 
GeneralRe: Should I change C++ to C# Pin
Heath Stewart12-Jan-04 2:53
protectorHeath Stewart12-Jan-04 2:53 
GeneralRe: Should I change C++ to C# Pin
Rocky Moore12-Jan-04 10:55
Rocky Moore12-Jan-04 10:55 
GeneralRe: Should I change C++ to C# Pin
TWS_Dave13-Jan-04 23:16
TWS_Dave13-Jan-04 23:16 
GeneralRe: Should I change C++ to C# Pin
Giles14-Jan-04 11:23
Giles14-Jan-04 11:23 
GeneralFolder Browser Dialog Pin
Itanium11-Jan-04 20:46
Itanium11-Jan-04 20:46 
GeneralRe: Folder Browser Dialog Pin
aneye11-Jan-04 21:55
aneye11-Jan-04 21:55 
GeneralRe: Folder Browser Dialog Pin
Heath Stewart12-Jan-04 2:10
protectorHeath Stewart12-Jan-04 2:10 
GeneralPaging - Performance - Scalability Pin
Mohamad Al Husseiny11-Jan-04 20:04
Mohamad Al Husseiny11-Jan-04 20:04 
GeneralRe: Paging - Performance - Scalability Pin
Heath Stewart12-Jan-04 2:26
protectorHeath Stewart12-Jan-04 2:26 
GeneralRe: Paging - Performance - Scalability Pin
Mohamad Al Husseiny12-Jan-04 21:53
Mohamad Al Husseiny12-Jan-04 21:53 
GeneralRe: Paging - Performance - Scalability Pin
Guillermo Rivero12-Jan-04 6:47
Guillermo Rivero12-Jan-04 6:47 
GeneralFileSystemObject in VB returns the wrong value when used from .NET Pin
RickardB11-Jan-04 16:46
RickardB11-Jan-04 16:46 
GeneralRe: FileSystemObject in VB returns the wrong value when used from .NET Pin
Heath Stewart12-Jan-04 1:52
protectorHeath Stewart12-Jan-04 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.