textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi every one how can i Implement a control such as the textbox control or
like in microsoft word the white background you write on
 
Hello blacknight,
You should check msdn http://msdn.microsoft.com/library/d.../frlrfSystemWindowsFormsTextBoxClassTopic.asp
for example code.

If you want more than just plain ascii text, for ex., different font styles and colors then search for RichTextBox or
http://msdn.microsoft.com/library/e...systemwindowsformsrichtextboxmemberstopic.asp

Best of luck!
RBischoff , your C# ally

b> Hi every one how can i Implement a control such as the textbox
b> control or like in microsoft word the white background you write on
b>
 
Do you want to learn how to write controls like the textbox, or do you
just want to use the textbox control in your app. There are some great
articles that describe how to extend the textbox control according to
your requirements. Take a look at these articles, let me know if this is
not what you were looking for

http://www.c-sharpcorner.com/Code/2004/Jan/MaskedTextBoxControl.asp
http://www.c-sharpcorner.com/Code/2003/June/SyntaxHighlightInRichTextBoxP1.asp
http://www.c-sharpcorner.com/Code/2003/June/SyntaxHighlightInRichTextBoxP2.asp
http://www.c-sharpcorner.com/Code/2003/May/InheritedControls.asp

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
 
thanks for the replay

i don't to extend the text box control i need to know how to create
it from scratch i mean like M.S Word it has this white background you write
on
and another thing the textbox control is only limited to 32kb of text .

let's say that you are going to create a notepad application without the
textbox how do you do that ?

Thanks
 
let me simplify my question how to create a notepad application without the
textbox control ?
 
blacknight said:
let me simplify my question how to create a notepad
application without the textbox control ?

Why not use the textbox or richtextbox control?!
 
Why would you like to do this? If your only problem is the number of
characters as you mentioned, you can use MaxLength property to specify it.
Its limited by available memory or 2147483646, whichever is smaller(see docs
for details).

___________
Ajay Kalra (MVP - VC++)
(e-mail address removed)
 
Back
Top