Click here to Skip to main content
15,887,776 members
Home / Discussions / C#
   

C#

 
AnswerRe: 32 bit Network Address in C# Pin
Dan Neely14-Aug-08 4:06
Dan Neely14-Aug-08 4:06 
AnswerRe: 32 bit Network Address in C# Pin
PIEBALDconsult14-Aug-08 4:19
mvePIEBALDconsult14-Aug-08 4:19 
QuestionRe: 32 bit Network Address in C# Pin
DotNetCoderJunior14-Aug-08 20:32
DotNetCoderJunior14-Aug-08 20:32 
AnswerRe: 32 bit Network Address in C# Pin
PIEBALDconsult15-Aug-08 4:06
mvePIEBALDconsult15-Aug-08 4:06 
QuestionSimple 2D side Scrolling shooter Pin
samuel pay14-Aug-08 3:41
samuel pay14-Aug-08 3:41 
AnswerRe: Simple 2D side Scrolling shooter Pin
Pawel Gielmuda14-Aug-08 3:58
Pawel Gielmuda14-Aug-08 3:58 
GeneralRe: Simple 2D side Scrolling shooter Pin
samuel pay14-Aug-08 4:10
samuel pay14-Aug-08 4:10 
QuestionListview rubberbanding issue Pin
Gavin Roberts14-Aug-08 2:45
Gavin Roberts14-Aug-08 2:45 
Hi all,

It seems an application i'm working on has developed a problem. My colleague has created a user control which inherits the ListView control so we can implement an edit in place feature.

The edit in place feature simply listens for an event when you click on a rows subitem and if its the cell you want to edit, it will move and resize a textbox over the cell and pull the value.

An event (endediting) is fired when the control looses focus or a certain key is pressed. We use this event do what we want with the value typed in.

This seems to work fine unless you stick in something that causes the listview to loose focus whilst within this event. I am attempting to parse the value typed in and if its invalid, I am throwing an error (messagebox) to notifiy the user and setting the cancel flag (e.Cancel.)

If I use the mouse to click the OK button within the MessageBox, when it disappears an Rubberband appears on my cursor and remains inside the listview. The only way to remove this is to either click the mouse, alt+tab to cause the form to invalidate or press escape.

If I use the enter or escape key to clear the MessageBox, the above doesn't happen and the listview regains focus.

I'm now at a loss, I have no idea where to turn Cry | :(( I have tried invalidating the form, the listview etc, i've tried forcing the focus of all of the controls within the same form and i've even tried sending the escape key to the app using sendkeys.

Has anyone got any idea's why? I'd appreciate your input!

Regards
AnswerRe: Listview rubberbanding issue Pin
Gavin Roberts14-Aug-08 4:46
Gavin Roberts14-Aug-08 4:46 
QuestionOrdering DataGridView columns and DataTable columns? Pin
kbalias14-Aug-08 2:38
kbalias14-Aug-08 2:38 
AnswerRe: Ordering DataGridView columns and DataTable columns? Pin
dan!sh 14-Aug-08 3:21
professional dan!sh 14-Aug-08 3:21 
QuestionCalling Tree Pin
half-life14-Aug-08 2:24
half-life14-Aug-08 2:24 
AnswerRe: Calling Tree Pin
Manas Bhardwaj14-Aug-08 2:38
professionalManas Bhardwaj14-Aug-08 2:38 
GeneralRe: Calling Tree Pin
half-life14-Aug-08 7:29
half-life14-Aug-08 7:29 
AnswerRe: Calling Tree Pin
leppie14-Aug-08 3:19
leppie14-Aug-08 3:19 
QuestionCustom event thread and form property updating? Pin
CelestialCoder14-Aug-08 2:03
CelestialCoder14-Aug-08 2:03 
AnswerRe: Custom event thread and form property updating? Pin
lisan_al_ghaib14-Aug-08 2:10
lisan_al_ghaib14-Aug-08 2:10 
GeneralRe: Custom event thread and form property updating? Pin
CelestialCoder14-Aug-08 2:32
CelestialCoder14-Aug-08 2:32 
AnswerRe: Custom event thread and form property updating? Pin
Mark Churchill14-Aug-08 2:37
Mark Churchill14-Aug-08 2:37 
GeneralRe: Custom event thread and form property updating? Pin
CelestialCoder14-Aug-08 3:03
CelestialCoder14-Aug-08 3:03 
GeneralRe: Custom event thread and form property updating? Pin
Mark Churchill14-Aug-08 3:24
Mark Churchill14-Aug-08 3:24 
GeneralRe: Custom event thread and form property updating? Pin
CelestialCoder14-Aug-08 3:44
CelestialCoder14-Aug-08 3:44 
GeneralRe: Custom event thread and form property updating? Pin
Mark Churchill14-Aug-08 5:00
Mark Churchill14-Aug-08 5:00 
GeneralRe: Custom event thread and form property updating? Pin
CelestialCoder14-Aug-08 5:14
CelestialCoder14-Aug-08 5:14 
QuestionDetection of Pings Pin
zaphod00514-Aug-08 1:06
zaphod00514-Aug-08 1:06 

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.