|
-
Jan 23rd, 2008, 12:31 PM
#4
Thread Starter
Member
Re: Simulating a disabled textbox
Wow!! Those were really quick answers...
I think that I haven't explain the problem as good as I should. I didn't want to be boring with the first post, so I didn't tell the whole story.
Now, that I see that your answers are perfect answers for what I asked, I'm going to explain more my situation so you can understand all the facts that affect my problem.
I have made my own user control. It's made up of a multiline textbox (without scrollbar), and a customized scrollbar.
The text that it's going to be in the textbox can't be edit (as we have said before), but the problem is that I don't want the user to use the keyword to go through the text, because I don't know how to synchronize his movements with the scrollbar. So I need that the user cannot set the "text cursor" (I don't know if this is a correct term).
I think that's all
So, now, reading your answers (I repeat that they were correct because I didn't explain it correctly) I see several problems.
 Originally Posted by dminder
There is a ReadOnly property on a textbox that stops people from editing it.
Yes, I know this property, but although it disable to edit the post, it allows the user to set the "text cursor".
I size the oportunity to ask: How can I edit a Readonly property? (sorry for my ignorance)
 Originally Posted by Atheist
Also, a Label with AutoSize set to False, BorderStyle set to Fixed3D and BackColor set to White "kind of" looks like a textbox. 
The problem with the label is that the text is multiline, so it looks a little bit difficult to use it. But... if there isn't another option, I think that this is a good solution. I think that I can paint with GDI all the text in a bufferimage, and then move it up and down so it would only appear on the label region....isn't it?
Since I don't speak english very well and obviously I'm far from being a Visual Basic Master , I dont' know if all the things that I have written are only stupidities.
I promise that I have tried to do it my best.
Thanks in advance for your answers.
Last edited by sagoga69; Jan 23rd, 2008 at 12:37 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|