Visual Basic .NET Forums    

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

VB.NET Forums Newsletter Signup:
Email address:


Windows Forms Discussion related to Winforms application development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2008, 11:55 AM
mrtutorial08's Avatar
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Sep 2008
Age: 14
Posts: 20
Reputation: 5
mrtutorial08 is on a distinguished programming path ahead
Exclamation Adding spell check to a rich text box? VS orcas? Help please I have some questions

Hi everyone...


Could some 1 tell me how to spell check a rich text box..I don't want to use wpf nor do I want to use Interop Microsoft Word..

What is VS orcas edition(something like that) I have VS EE...
I have VS Orcas but I never tried it.. What is it anyways..

I am building a word processor and have some problems....The picture shows
one of my main problems...

Normal Size



Maximized



Any way I could anchor the box to stay in the middle and the height should change to the height of a normal paper....

Also any way instead of using the rich text box's scroll bar could I use a scroll bar that is docked to the right...(like in Microsoft Word)
Reply With Quote
  #2 (permalink)  
Old 09-04-2008, 1:04 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 7,816
Reputation: 813
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Quote:
Originally Posted by mrtutorial08 View Post
Also any way instead of using the rich text box's scroll bar could I use a scroll bar that is docked to the right...(like in Microsoft Word)
If AutoScroll property of form is set to True it will display scrollbars automatically when controls size/location extends its clientsize. RichTextBox scrollbars can be turned off, it will give you some work managing "pages" in order for text to never fill more than exactly one "page" before it flows to next.
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )
Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ


DR. WEIR: Download it to a non-networked, firewalled computer.
TECHNICIAN: Yes, ma'am.
Reply With Quote
  #3 (permalink)  
Old 09-04-2008, 1:33 PM
mrtutorial08's Avatar
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Sep 2008
Age: 14
Posts: 20
Reputation: 5
mrtutorial08 is on a distinguished programming path ahead
Default

Well i succeeded in turning of the rtb's scroll bar but now i am stuck here:

1. Disable Rtb's scrollbar(well i am done with that)
2. Now put a vertical scroll bar on the form(i know how to do that)
3. Relate the scroll bar to the rich text box(how do i do that)

...Also does any1 know answers to other questions...

Remember that I use Visual Basic Express Edition
And i have Orcas Edition too(i never tried it though lol)
Reply With Quote
  #4 (permalink)  
Old 09-05-2008, 6:16 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 7,816
Reputation: 813
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

2. Why would you do that? As I said use AutoScroll.

3. How so? The scroll relates to the visible part of client controls. That is what you are seeing in the word processing application too, the "page" control is greater than screen/application window and when you use the window scroll it moves parts of the control into client view. That is what the Autoscroll does automatically. You need to set an appropriate page size for your RichTextBox control.
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )
Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ


DR. WEIR: Download it to a non-networked, firewalled computer.
TECHNICIAN: Yes, ma'am.
Reply With Quote
  #5 (permalink)  
Old 09-06-2008, 3:45 PM
mrtutorial08's Avatar
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Sep 2008
Age: 14
Posts: 20
Reputation: 5
mrtutorial08 is on a distinguished programming path ahead
Default

well it worked thanks but I forgot to save it so it closed... Now when I change the size of the rich text box to a normal page's size its bigger than the form(duhh) but when I enable auto scroll of the FORM nothing happens.. I don't see scroll bars..

Any Help Please?


EDIT: Now for some reason it works when I put the rich text box in a group box and then put the group box into the panel... the panel's auto scroll works but the form's doesn't.. wired isn't it...

Also guys Could some1 like give me some code which makes a richtextbox adjust its size to the page selected in the page setup dialog... Thanks!

Last edited by mrtutorial08; 09-06-2008 at 3:56 PM.
Reply With Quote
  #6 (permalink)  
Old 09-06-2008, 5:19 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 36
Posts: 7,816
Reputation: 813
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Quote:
Now for some reason it works when I put the rich text box in a group box and then put the group box into the panel... the panel's auto scroll works but the form's doesn't.. wired isn't it...
Weird. Your project could be corrupt, try to create a new project, set form autoscroll and move any control outside visible client area. You should be seeing scrollbars on form immediately in designer.
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )
Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ


DR. WEIR: Download it to a non-networked, firewalled computer.
TECHNICIAN: Yes, ma'am.
Reply With Quote
  #7 (permalink)  
Old 09-07-2008, 11:00 AM
mrtutorial08's Avatar
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Sep 2008
Age: 14
Posts: 20
Reputation: 5
mrtutorial08 is on a distinguished programming path ahead
Default

Well I got over the problem.. Nothing Corrupt just had to reload the project 10 times...

Welll Could some1 please give me like a code snippet that could adjust a rich text box to the page setup dialog...

Please dont tell me to handle event or tell me"You need to do this and then parse everyline and then do some advanced stuff to get that to happen"

Could any1 give a code snippet?

Also anyway I could have font boxes not dialogs but combo boxes which adjust the selected font in the rich text box when a font is chosen..also code some1 give a size combo box...
Reply With Quote
  #8 (permalink)  
Old 09-09-2008, 1:29 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jul 2008
Age: 21
Posts: 5
Reputation: 0
TomK is on a distinguished programming path ahead
Default Page settings

you could prob. just add a "pagesetupdialog" component. Then look at the

Code:
pagesetupdialog.pagesettings
Just a thought..



I'm more interested in the spell checking a Richtextbox, myself. Did you find any info about that in your searches? Or anyone got a good link to share?
Reply With Quote
  #9 (permalink)  
Old 09-09-2008, 4:35 PM
mrtutorial08's Avatar
VB.NET Forum Newbie
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Sep 2008
Age: 14
Posts: 20
Reputation: 5
mrtutorial08 is on a distinguished programming path ahead
Default

Well I do have a spell check(its very limited though)
My spell check is a separate form in which there is a text box and a spell check and close buttons...When a person puts(for example) hey in to the text box and clicks spell check it will tell the person if its is right or wrong.... That's all..

Well I have a page setup dialog I am trying to get a way so that the selected page in the page setup dialog changes the size of the rich text box accordingly....
Reply With Quote
  #10 (permalink)  
Old 09-09-2008, 5:23 PM
VB.NET Forum Genius
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Sep 2007
Age: 21
Posts: 226
Reputation: 62
Stonkie probably authored a book by nowStonkie probably authored a book by nowStonkie probably authored a book by now
Default

I think open office's spell checking system uses plain text files with the list of all available words in each language. Maybe the license permits using it since it's open source...

All you'll have to do is check each word in the list. If that's not efficient enough, you can split each word in a binary (alphabetic) tree for searching them.

Look here : Dictionaries - OpenOffice.org Wiki

Get the English (USA) one and open it as zip. You'll find a .dic file. It's a text file. There seems to be a certain notation and you'll have to read a bit more in the wiki to figure it out, but the readme file says it's covered by the LGPL so it should be free to use (I don't make any commitment on that).
__________________
They say years of experience past 6 months are very slightly correlated to competences within the pool of existing developpers. But don't tell my boss about that or I can forget my next pay raise!

Last edited by Stonkie; 09-09-2008 at 5:29 PM.
Reply With Quote
Reply

Bookmarks

Tags
scrollbar, spell, visualbasic


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 8:54 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.