Click here to Skip to main content
15,893,337 members
Home / Discussions / C#
   

C#

 
GeneralRe: Localization in c# Pin
Guy Twig25-Mar-09 22:56
Guy Twig25-Mar-09 22:56 
Questionstring Pin
arkiboys23-Mar-09 23:43
arkiboys23-Mar-09 23:43 
AnswerRe: string Pin
Sunil Lanke24-Mar-09 0:09
Sunil Lanke24-Mar-09 0:09 
AnswerRe: string Pin
Sunil Lanke24-Mar-09 0:16
Sunil Lanke24-Mar-09 0:16 
AnswerRe: string Pin
musefan24-Mar-09 0:27
musefan24-Mar-09 0:27 
QuestionLumenWorks.Framework.IO.Csv (CSV Reader) Pin
saku6923-Mar-09 23:23
saku6923-Mar-09 23:23 
AnswerRe: LumenWorks.Framework.IO.Csv (CSV Reader) Pin
saku6924-Mar-09 0:46
saku6924-Mar-09 0:46 
QuestionHow to detect if a user leaves a control while holding a Mousebutton down? Pin
Megidolaon23-Mar-09 22:48
Megidolaon23-Mar-09 22:48 
I have a problem, I use PictureBoxes to display a source image in 32x32 pixel chunks.
The are added to a FlowLayoutPanel's Controls property.

Now I want the user to be able to select several at the same time (up to 25), I try to do that by using the MouseDown and stopping the seletion at the MouseUp event (miraculously it fixed itself and the MouseUp even works right now).
My problem is that the user can still select not neighboring PictureBoxes, but can hold the mous button down, move around to completely unrelated PictureBoxes on the other edge of the FlowLayoutPanel and add these to the selection, because the MouseUp event didn't get fired yet.

How do I prevent the user from selecting PictureBoxes that are not next to each other?
I tried it with the MouseLeave event both, but the PictureBoxes' event fires the moment you leave a single of them, preventing any selection of more than 1 and the FlowLayoutPanel's event is inaccessible when I fill all of it with PictureBoxes.

I also tried to check the Cursor position, but that fires seemingly randomly and I can't debug it (during debug the cursor position isn't fixed at the last position the cursor had in your program, but will change according to the position in VS).
AnswerRe: How to detect if a user leaves a control while holding a Mousebutton down? Pin
musefan23-Mar-09 22:57
musefan23-Mar-09 22:57 
GeneralRe: How to detect if a user leaves a control while holding a Mousebutton down? Pin
Megidolaon24-Mar-09 1:52
Megidolaon24-Mar-09 1:52 
GeneralRe: How to detect if a user leaves a control while holding a Mousebutton down? Pin
King Julien24-Mar-09 3:32
King Julien24-Mar-09 3:32 
GeneralRe: How to detect if a user leaves a control while holding a Mousebutton down? [modified] Pin
Megidolaon24-Mar-09 21:48
Megidolaon24-Mar-09 21:48 
Question.Net error..... Pin
S K Y23-Mar-09 22:40
S K Y23-Mar-09 22:40 
AnswerRe: .Net error..... Pin
Eddy Vluggen23-Mar-09 23:20
professionalEddy Vluggen23-Mar-09 23:20 
Questionexcel sheet Pin
Mangesh Tomar23-Mar-09 22:37
Mangesh Tomar23-Mar-09 22:37 
AnswerRe: excel sheet Pin
Nagy Vilmos23-Mar-09 23:01
professionalNagy Vilmos23-Mar-09 23:01 
QuestionPersiaDevelopers.com Pin
Majid Shahabfar23-Mar-09 22:13
Majid Shahabfar23-Mar-09 22:13 
AnswerRe: PersiaDevelopers.com Pin
Eddy Vluggen23-Mar-09 22:35
professionalEddy Vluggen23-Mar-09 22:35 
QuestionRetrieve items from the last index on Dictionary. Pin
CodingLover23-Mar-09 21:59
CodingLover23-Mar-09 21:59 
AnswerRe: Retrieve items from the last index on Dictionary. Pin
12Code23-Mar-09 22:13
12Code23-Mar-09 22:13 
QuestionRe: Retrieve items from the last index on Dictionary. Pin
CodingLover23-Mar-09 22:19
CodingLover23-Mar-09 22:19 
AnswerRe: Retrieve items from the last index on Dictionary. Pin
12Code23-Mar-09 23:42
12Code23-Mar-09 23:42 
QuestionRe: Retrieve items from the last index on Dictionary. Pin
CodingLover23-Mar-09 23:53
CodingLover23-Mar-09 23:53 
AnswerRe: Retrieve items from the last index on Dictionary. Pin
12Code24-Mar-09 0:07
12Code24-Mar-09 0:07 
GeneralRe: Retrieve items from the last index on Dictionary. Pin
CodingLover24-Mar-09 0:41
CodingLover24-Mar-09 0:41 

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.