Click here to Skip to main content
16,004,761 members
Home / Discussions / C#
   

C#

 
GeneralRe: HTTPWebRequest class Pin
AssemblySoft8-Nov-07 11:17
AssemblySoft8-Nov-07 11:17 
QuestiondataGridView event handler Pin
merwa7-Nov-07 23:18
merwa7-Nov-07 23:18 
Questionpicturebox disappears? Pin
I'm a beginner7-Nov-07 22:47
I'm a beginner7-Nov-07 22:47 
AnswerRe: picturebox disappears? Pin
Christian Graus7-Nov-07 22:48
protectorChristian Graus7-Nov-07 22:48 
GeneralRe: picturebox disappears? Pin
I'm a beginner7-Nov-07 23:00
I'm a beginner7-Nov-07 23:00 
GeneralRe: picturebox disappears? Pin
Christian Graus7-Nov-07 23:18
protectorChristian Graus7-Nov-07 23:18 
GeneralRe: picturebox disappears? [modified] Pin
I'm a beginner7-Nov-07 23:38
I'm a beginner7-Nov-07 23:38 
AnswerRe: picturebox disappears? [modified] Pin
Anthony Mushrow8-Nov-07 0:03
professionalAnthony Mushrow8-Nov-07 0:03 
Okay, first off, don't use myPic[count-1] to access the control you want tp drag, you have the object 'sender' which is the control that was actually clicked, so if you use:


PictureBox temp = sender as PictureBox;
temp.Location.X = ...
temp.Location.Y =
...

Then you will always drag the picture box that you actually clicked.


Infact, if you add another picturebox like, currentPicBox or something and use that to find out which picbox was clicked. So, in the MouseDown event:

currentPicBox = sender as PictureBox;

and in the mouse move event:

currentPicBox.Location.X
...


-- modified at 6:09 Thursday 8th November, 2007

My current favourite word is: PIE!

Good ol' pie, it's been a while.

GeneralRe: picturebox disappears? [modified] Pin
I'm a beginner8-Nov-07 0:37
I'm a beginner8-Nov-07 0:37 
QuestionStore a key so that it is accessible by my application only Pin
jenspa7-Nov-07 21:19
jenspa7-Nov-07 21:19 
AnswerRe: Store a key so that it is accessible by my application only Pin
TJoe8-Nov-07 1:46
TJoe8-Nov-07 1:46 
QuestionRe: Store a key so that it is accessible by my application only Pin
jenspa8-Nov-07 3:11
jenspa8-Nov-07 3:11 
AnswerRe: Store a key so that it is accessible by my application only Pin
TJoe8-Nov-07 3:48
TJoe8-Nov-07 3:48 
GeneralRe: Store a key so that it is accessible by my application only Pin
Dan Neely8-Nov-07 3:37
Dan Neely8-Nov-07 3:37 
GeneralRe: Store a key so that it is accessible by my application only Pin
TJoe8-Nov-07 3:53
TJoe8-Nov-07 3:53 
QuestionAny library to get game statistics of CS 1.6?? Pin
mschoghatta7-Nov-07 20:55
mschoghatta7-Nov-07 20:55 
QuestionMS Access Connectivity - .NET CF C# Pin
Arsalan Mansoor7-Nov-07 20:45
Arsalan Mansoor7-Nov-07 20:45 
AnswerRe: MS Access Connectivity - .NET CF C# Pin
ChrisKo8-Nov-07 7:55
ChrisKo8-Nov-07 7:55 
QuestionC#.NEt windows form table layout panel control Pin
D i x y7-Nov-07 20:04
D i x y7-Nov-07 20:04 
AnswerRe: C#.NEt windows form table layout panel control Pin
il_masacratore7-Nov-07 21:17
il_masacratore7-Nov-07 21:17 
AnswerRe: C#.NEt windows form table layout panel control Pin
Stevo Z7-Nov-07 22:18
Stevo Z7-Nov-07 22:18 
QuestionFinal Steps... Help Please! Pin
kingletas7-Nov-07 20:01
kingletas7-Nov-07 20:01 
AnswerRe: Final Steps... Help Please! Pin
Christian Graus7-Nov-07 20:45
protectorChristian Graus7-Nov-07 20:45 
GeneralRe: Final Steps... Help Please! Pin
kingletas7-Nov-07 21:28
kingletas7-Nov-07 21:28 
QuestionWMI (System.management) problem Pin
michelle1237-Nov-07 19:43
michelle1237-Nov-07 19:43 

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.