|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I'm teaching myself how to program (started this week 11/9/03) and I as a starting project I'm making a word processing program. So far I've got a few of the common text mods like changing fonts and font sizes... but I was wondering how to do this without applying it to the whole txt box and just the rest I'm about to type like in word pad, MS word and other popular programs.
Last edited by KnowNothing : November 13th, 2003 at 09:26 PM. |
|
#2
|
|||
|
|||
|
your text box needs to have the multiline property set to true. This will let you type more than one line in the box. Then expand the textbox size and add in vertical scroll bars. Now it's starting to look like a simple word processor or text editor.
If you want to make certain words bold or italics, you have a slightly more complicated program. You should do some reading for this one - after you get some practice with the other text box properties. |
|
#3
|
|||
|
|||
|
I've already done all that stuff, and its all working. Here is a list of things I've already put in and have working.... font size change, fonts, bold, italic, underline and left, right and center align. The window is already setup and all the other things were already done.
Last edited by KnowNothing : November 13th, 2003 at 09:30 PM. |
|
#4
|
|||
|
|||
|
Sounds like the VB Builtin word processor wizard !!!
-- good way te learn! ![]() |
|
#5
|
|||
|
|||
|
Hei!U can add some menu:like open file,save file,print,Copy,Cut,Paste,Undo,Redo...It will really like a word environment!!
|
|
#6
|
|||
|
|||
|
I'll get to all that after I figure out how to modify only the test I'm working on... say I have a heading type it's bold center and underlined and then I want to move down to left align, normal font I want it to be able to do that without modifying what I've already worked on.
|
|
#7
|
|||
|
|||
|
You can use the ms rtf control to change fonts, etc in a single control. afaik any font settings on a standard textbox apply to all the text in the textbox.
Another alternative is to create your text in html and use a web browser control. |
|
#8
|
|||
|
|||
|
I'm now seeing why everyone says to stay away from visual basic. I do believe I'll be switching to Python as my starting language. Hopefully that works out a little better. Thanks for the advice though.
|
|
#9
|
|||
|
|||
|
Good luck. You'll find every programming environment has it's pluses and minuses.
|
|
#10
|
|||
|
|||
|
If anyone wants the code for my project I'll be glad to send it to you, so that you can take over the project. If you're a newb like I am you might find it helpful.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > text box help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|