Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Ctrl+E menu shortcut
Message
De
22/07/2008 14:52:54
 
 
À
21/07/2008 10:28:42
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01326710
Message ID:
01333264
Vues:
9
>Andrus, did you find a workaround for this yet? I toyed with it some this weekend and came up with something. Basically, in your TextBox class, you need to override the ProcessCmdKey and do some extra processing if the TextBox is ReadOnly:

Thank you, this seems to be good hack. I never tought about this.

I have also another related issue for combobox: I need that in ReadOnly ComboBox:

1. F12 key opens picklist
2. ReadOnly combobox has nice, contract colors so that it does not look like disabled.

Since combobox does not have readonly property, I mimic this by seting Enabled to false. This disables F12 key and makes combo colors ugly.

There may be 2 workarounds for this:

1. Trying to use your hack and also to change combobox disabled colors in some way.

2. Emulate combox readonly property by adding some code to Keypress event as described in http://www.codeproject.com/KB/combobox/ReadOnly_Combo_Provider.aspx

What is best solution for those issues ?
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform