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

C#

 
GeneralRe: VB replace function Pin
Heath Stewart6-Sep-04 9:23
protectorHeath Stewart6-Sep-04 9:23 
GeneralRe: VB replace function Pin
Aaron Eldreth6-Sep-04 10:57
Aaron Eldreth6-Sep-04 10:57 
GeneralRe: VB replace function Pin
Colin Angus Mackay6-Sep-04 23:29
Colin Angus Mackay6-Sep-04 23:29 
GeneralRe: VB replace function Pin
Aaron Eldreth7-Sep-04 5:13
Aaron Eldreth7-Sep-04 5:13 
GeneralRe: VB replace function Pin
Colin Angus Mackay7-Sep-04 5:20
Colin Angus Mackay7-Sep-04 5:20 
GeneralRe: VB replace function Pin
Aaron Eldreth7-Sep-04 5:48
Aaron Eldreth7-Sep-04 5:48 
GeneralLocking the keyboard on XP using .NET Pin
Innovathis6-Sep-04 5:13
Innovathis6-Sep-04 5:13 
GeneralRe: Locking the keyboard on XP using .NET Pin
Heath Stewart6-Sep-04 9:35
protectorHeath Stewart6-Sep-04 9:35 
Without using a keyboard and mouse hook, this is not possible on XP nor any Windows platform. You should not do this, either. If you want to disable input messages to be handled, set Cursor.Current to Cursors.WaitCursor. This disables input processing for the entire application. This is all you should do, accordingly to Windows programming guidelines.

If your application modifies system state, be sure to tell the user that and that they should wait. Give them a progress bar if possible, and nice friendly wait message.

Also if possible, make your operation atomic. Depending on what you do, you could use transactions to make sure the batch of operations fails or completes as a whole. If your performing database routines, all major RDBMS's support atomic operations. You can futher use transactions in ADO.NET using IDbTransaction implementations like SqlTransaction and OleDbTransaction, etc.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralFirst of all thanks for your reply! Pin
Innovathis6-Sep-04 20:46
Innovathis6-Sep-04 20:46 
GeneralRetieve currenlty logged user details Pin
Manju.K.J6-Sep-04 4:43
Manju.K.J6-Sep-04 4:43 
GeneralRe: Retieve currenlty logged user details Pin
Heath Stewart6-Sep-04 9:31
protectorHeath Stewart6-Sep-04 9:31 
GeneralRe: Retieve currenlty logged user details Pin
Manju.K.J7-Sep-04 0:30
Manju.K.J7-Sep-04 0:30 
GeneralRe: Retieve currenlty logged user details Pin
Heath Stewart7-Sep-04 6:24
protectorHeath Stewart7-Sep-04 6:24 
GeneralRe: Retieve currenlty logged user details Pin
Manju.K.J13-Sep-04 1:27
Manju.K.J13-Sep-04 1:27 
QuestionTo Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
Al Gardner6-Sep-04 3:28
Al Gardner6-Sep-04 3:28 
AnswerRe: To Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
mav.northwind6-Sep-04 4:16
mav.northwind6-Sep-04 4:16 
AnswerRe: To Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
Heath Stewart6-Sep-04 9:40
protectorHeath Stewart6-Sep-04 9:40 
GeneralAutoScroll Puzzle Pin
Paul Griffin6-Sep-04 3:08
Paul Griffin6-Sep-04 3:08 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart6-Sep-04 10:00
protectorHeath Stewart6-Sep-04 10:00 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin6-Sep-04 23:25
Paul Griffin6-Sep-04 23:25 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:27
protectorHeath Stewart7-Sep-04 6:27 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:38
Paul Griffin7-Sep-04 6:38 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:42
protectorHeath Stewart7-Sep-04 6:42 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin8-Sep-04 1:14
Paul Griffin8-Sep-04 1:14 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:46
Paul Griffin7-Sep-04 6:46 

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.