Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Textbox Control function..... Pin
Hum Dum1-Jul-09 2:40
Hum Dum1-Jul-09 2:40 
GeneralRe: Textbox Control function..... Pin
musefan1-Jul-09 2:43
musefan1-Jul-09 2:43 
GeneralRe: Textbox Control function..... Pin
Hum Dum1-Jul-09 2:56
Hum Dum1-Jul-09 2:56 
GeneralRe: Textbox Control function..... Pin
dojohansen1-Jul-09 6:27
dojohansen1-Jul-09 6:27 
Perhaps if you build on musefan's idea but use the Tag property to store the length of the Text when the TextBox has been initialized (i.e. the "uneditable" text has been assigned to it)..? Then you always know the initial length and you can prevent it from being modified.

However, I think a better solution would be to split the UI to reflect that there's a read-only part and the user may add to this. This would make it easier to implement, and imho more logical for the end user as well.

If you do opt for a single TextBox control you may have to handle cut/copy/paste (if you select text and paste, you replace the selection) as well.
AnswerRe: Textbox Control function..... Pin
OriginalGriff1-Jul-09 2:16
mveOriginalGriff1-Jul-09 2:16 
GeneralRe: Textbox Control function..... Pin
Hum Dum1-Jul-09 2:46
Hum Dum1-Jul-09 2:46 
GeneralRe: Textbox Control function..... Pin
OriginalGriff1-Jul-09 3:46
mveOriginalGriff1-Jul-09 3:46 
AnswerRe: Textbox Control function..... Pin
K03061-Jul-09 2:19
K03061-Jul-09 2:19 
GeneralRe: Textbox Control function..... Pin
Luc Pattyn1-Jul-09 2:35
sitebuilderLuc Pattyn1-Jul-09 2:35 
GeneralRe: Textbox Control function..... Pin
Hum Dum1-Jul-09 2:52
Hum Dum1-Jul-09 2:52 
GeneralRe: Textbox Control function..... Pin
musefan1-Jul-09 3:06
musefan1-Jul-09 3:06 
GeneralRe: Textbox Control function..... Pin
Luc Pattyn1-Jul-09 3:38
sitebuilderLuc Pattyn1-Jul-09 3:38 
QuestionWinApp access variables in WebService...? Pin
Mtyb1-Jul-09 0:46
Mtyb1-Jul-09 0:46 
AnswerRe: WinApp access variables in WebService...? Pin
SeMartens1-Jul-09 1:28
SeMartens1-Jul-09 1:28 
AnswerRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 1:31
dojohansen1-Jul-09 1:31 
GeneralRe: WinApp access variables in WebService...? Pin
Mtyb1-Jul-09 2:10
Mtyb1-Jul-09 2:10 
GeneralRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 4:43
dojohansen1-Jul-09 4:43 
GeneralRe: WinApp access variables in WebService...? Pin
J4amieC1-Jul-09 2:45
J4amieC1-Jul-09 2:45 
GeneralRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 4:48
dojohansen1-Jul-09 4:48 
GeneralRe: WinApp access variables in WebService...? Pin
J4amieC1-Jul-09 7:06
J4amieC1-Jul-09 7:06 
GeneralRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 21:26
dojohansen1-Jul-09 21:26 
QuestionDataView error: Pin
padmanabhan N1-Jul-09 0:29
padmanabhan N1-Jul-09 0:29 
AnswerRe: DataView error: Pin
Henry Minute1-Jul-09 1:38
Henry Minute1-Jul-09 1:38 
AnswerRe: DataView error: Pin
Niladri_Biswas1-Jul-09 3:12
Niladri_Biswas1-Jul-09 3:12 
QuestionHow to remove CLI Header or how to disable dissasembling of my app Pin
Matjaz-xyz30-Jun-09 23:54
Matjaz-xyz30-Jun-09 23:54 

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.