Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Microsoft.Office.Interop.Excel BorderAround2 crash Pin
Blubbo7-Oct-10 4:49
Blubbo7-Oct-10 4:49 
GeneralRe: Microsoft.Office.Interop.Excel BorderAround2 crash Pin
Dave Kreskowiak7-Oct-10 6:04
mveDave Kreskowiak7-Oct-10 6:04 
GeneralRe: Microsoft.Office.Interop.Excel BorderAround2 crash Pin
Luc Pattyn7-Oct-10 6:29
sitebuilderLuc Pattyn7-Oct-10 6:29 
QuestionSave a file from ASP.NET down to database and upp again. Pin
anderslundsgard6-Oct-10 23:44
anderslundsgard6-Oct-10 23:44 
AnswerRe: Save a file from ASP.NET down to database and upp again. Pin
J4amieC7-Oct-10 0:50
J4amieC7-Oct-10 0:50 
Questionmake mouse disable, how that user could not be able to use it. Pin
Fred 346-Oct-10 23:36
Fred 346-Oct-10 23:36 
AnswerRe: make mouse disable, how that user could not be able to use it. Pin
Eddy Vluggen7-Oct-10 1:01
professionalEddy Vluggen7-Oct-10 1:01 
AnswerRe: make mouse disable, how that user could not be able to use it. Pin
Rhuros7-Oct-10 1:35
professionalRhuros7-Oct-10 1:35 
As the previous answer mentions removing all mouse input is not a good idea. However the best that you can achieve is to ignore mouse input messages for your app for certain conditions, for example you should still accept mouse clicks to close the application.

The simplest way to do this is to not process OnClick events etc. on your form when a specified condition is met

e.g.
private void button1_MouseClick(object sender, MouseEventArgs e)
{
    if (_allowMouseClicks)
    {
        // do you mouse click processing....
    }
}


or even more simply if it is a different form at specific point only support Keydown etc. events...

Alternatively you could override the WndProc for your form and trap the mouse messages here and test against a condition. However overriding the Wndproc isn't that simple a task, but if its the way you want to go have a look at this[^]
AnswerRe: make mouse disable, how that user could not be able to use it. Pin
S Houghtelin7-Oct-10 5:52
professionalS Houghtelin7-Oct-10 5:52 
GeneralRe: make mouse disable, how that user could not be able to use it. Pin
PIEBALDconsult9-Oct-10 4:27
mvePIEBALDconsult9-Oct-10 4:27 
GeneralRe: make mouse disable, how that user could not be able to use it. Pin
S Houghtelin12-Oct-10 3:09
professionalS Houghtelin12-Oct-10 3:09 
QuestionList inside a struct Pin
Islorvat6-Oct-10 22:45
Islorvat6-Oct-10 22:45 
AnswerRe: List inside a struct Pin
J4amieC6-Oct-10 22:57
J4amieC6-Oct-10 22:57 
AnswerRe: List inside a struct Pin
DaveyM697-Oct-10 0:11
professionalDaveyM697-Oct-10 0:11 
GeneralRe: List inside a struct Pin
harold aptroot7-Oct-10 0:39
harold aptroot7-Oct-10 0:39 
GeneralRe: List inside a struct Pin
DaveyM697-Oct-10 7:02
professionalDaveyM697-Oct-10 7:02 
GeneralRe: List inside a struct Pin
harold aptroot7-Oct-10 7:05
harold aptroot7-Oct-10 7:05 
GeneralRe: List inside a struct Pin
DaveyM697-Oct-10 7:14
professionalDaveyM697-Oct-10 7:14 
QuestionApplication Fauled to Initialize (0xc000007b) Pin
Enobong Adahada6-Oct-10 22:12
Enobong Adahada6-Oct-10 22:12 
AnswerRe: Application Fauled to Initialize (0xc000007b) Pin
Sauro Viti6-Oct-10 22:26
professionalSauro Viti6-Oct-10 22:26 
GeneralRe: Application Fauled to Initialize (0xc000007b) Pin
Enobong Adahada7-Oct-10 3:12
Enobong Adahada7-Oct-10 3:12 
AnswerRe: Application Fauled to Initialize (0xc000007b) Pin
Luc Pattyn7-Oct-10 3:25
sitebuilderLuc Pattyn7-Oct-10 3:25 
GeneralRe: Application Fauled to Initialize (0xc000007b) Pin
Enobong Adahada7-Oct-10 3:53
Enobong Adahada7-Oct-10 3:53 
GeneralRe: Application Fauled to Initialize (0xc000007b) Pin
Enobong Adahada7-Oct-10 4:34
Enobong Adahada7-Oct-10 4:34 
JokeRe: Application Fauled to Initialize (0xc000007b) Pin
Sauro Viti7-Oct-10 22:35
professionalSauro Viti7-Oct-10 22:35 

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.