Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
QuestionHow to make a non-editable Combo-box? Pin
PravinSingh30-Sep-08 20:52
PravinSingh30-Sep-08 20:52 
AnswerRe: How to make a non-editable Combo-box? Pin
sepel30-Sep-08 20:59
sepel30-Sep-08 20:59 
GeneralRe: How to make a non-editable Combo-box? Pin
gezanal16-Dec-08 18:19
gezanal16-Dec-08 18:19 
AnswerRe: How to make a non-editable Combo-box? Pin
Giorgi Dalakishvili30-Sep-08 20:59
mentorGiorgi Dalakishvili30-Sep-08 20:59 
GeneralRe: How to make a non-editable Combo-box? Pin
PravinSingh30-Sep-08 21:28
PravinSingh30-Sep-08 21:28 
GeneralRe: How to make a non-editable Combo-box? Pin
Giorgi Dalakishvili30-Sep-08 21:42
mentorGiorgi Dalakishvili30-Sep-08 21:42 
AnswerRe: How to make a non-editable Combo-box? Pin
nelsonpaixao1-Oct-08 12:43
nelsonpaixao1-Oct-08 12:43 
GeneralRe: How to make a non-editable Combo-box? Pin
DaveyM691-Oct-08 22:51
professionalDaveyM691-Oct-08 22:51 
This won't handle the case of somebody using the mouse to paste data or cutting data for that matter. The solutions given previously are what the OP needed in his situation. In the more general scenario that you're preempting, to be successful you need to at least ...

override OnKeyDown
override OnTextChanged
override WndProc and trap WM_PASTE and WM_CUT

... being careful to allow navigation keys like Home, End, Tab, Shift+Tab and the arrow keys if appropriate.

If you just disable all keys the UI becomes very non-standard and the user will hate you and your software! Wink | ;)

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: How to make a non-editable Combo-box? Pin
nelsonpaixao2-Oct-08 14:35
nelsonpaixao2-Oct-08 14:35 
GeneralRe: How to make a non-editable Combo-box? Pin
PravinSingh2-Oct-08 20:13
PravinSingh2-Oct-08 20:13 
QuestionLookandFeel in c# winforms to create dynamic applications of different themes Pin
Alok Sharma ji30-Sep-08 20:39
Alok Sharma ji30-Sep-08 20:39 
AnswerRe: LookandFeel in c# winforms to create dynamic applications of different themes Pin
Giorgi Dalakishvili30-Sep-08 21:11
mentorGiorgi Dalakishvili30-Sep-08 21:11 
AnswerRe: LookandFeel in c# winforms to create dynamic applications of different themes Pin
Nagy Vilmos30-Sep-08 22:20
professionalNagy Vilmos30-Sep-08 22:20 
GeneralRe: LookandFeel in c# winforms to create dynamic applications of different themes Pin
Alok Sharma ji1-Oct-08 22:31
Alok Sharma ji1-Oct-08 22:31 
QuestionHow to export image to PPT , PDF and MS Word Pin
K V Sekhar30-Sep-08 20:01
K V Sekhar30-Sep-08 20:01 
AnswerRe: How to export image to PPT , PDF and MS Word Pin
blackjack215030-Sep-08 21:53
blackjack215030-Sep-08 21:53 
QuestionDeployment. Pin
Stephen Lintott30-Sep-08 19:45
Stephen Lintott30-Sep-08 19:45 
AnswerRe: Deployment. Pin
BillyGoatGruff30-Sep-08 23:03
BillyGoatGruff30-Sep-08 23:03 
GeneralRe: Deployment. Pin
Stephen Lintott1-Oct-08 1:45
Stephen Lintott1-Oct-08 1:45 
GeneralRe: Deployment. Pin
BillyGoatGruff1-Oct-08 2:05
BillyGoatGruff1-Oct-08 2:05 
Questioncrystal reports Pin
nelsonpaixao30-Sep-08 14:51
nelsonpaixao30-Sep-08 14:51 
QuestionKeyPressEvent "e" Pin
nelsonpaixao30-Sep-08 13:18
nelsonpaixao30-Sep-08 13:18 
AnswerRe: KeyPressEvent "e" Pin
PIEBALDconsult30-Sep-08 17:21
mvePIEBALDconsult30-Sep-08 17:21 
QuestionVery simple ProgressBar Pin
DFlat4Now30-Sep-08 12:56
DFlat4Now30-Sep-08 12:56 
GeneralRe: Very simple ProgressBar Pin
nelsonpaixao30-Sep-08 15:06
nelsonpaixao30-Sep-08 15: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.