Sign in to follow this  
kimi

Word Processor using VC#. Please help

Recommended Posts

Hi all,

I am newbie with Visual Studio 2010. But I am suppose to create a Word processor using it. I know little bit of C#, we are suppose to use VC#. Richtext control box and other tools are relatively simple it seems.

However I am suppose to use lots of programming to make something like MS Word or use my own idea to have formatting, spell check and so on. The full evaluation of this subject is based on this project and every week in lab we are suppose to report and do something towards the project. There is little more than a month to learn and complete it.

I have no idea what to do and how to do it. Please help!

Share this post


Link to post
Share on other sites
Well, this sounds like a fun game you are making. :-)

That aside, what have you tried so far, what have you read and researched, have you attempted to search google?
To assist you, we need to know exactly where you are stuck not just 'how do i do my project'.

Share this post


Link to post
Share on other sites
Yeah I have been searching on internet. I know C++ but VC# is new to me. I am learning how to use VS 2010. It is easy to create menu and rich text box just by dragging and placing it on the form. But we are suppose to use some programming, event handlers, what user type should be checked and formatted automatically and so on ? Like in MS word if you type first letter as small it gets Caps.

I am not sure what to do. Just getting used to VC#

Share this post


Link to post
Share on other sites
Quote:
Original post by braindigitalis
Well, this sounds like a fun game you are making. :-)

That aside, what have you tried so far, what have you read and researched, have you attempted to search google?
To assist you, we need to know exactly where you are stuck not just 'how do i do my project'.


I also agree with braindigitalis. Saying that, I don't know how I would create that application myself, especially since I do not know what your lectures are specifically looking for. However I would start by creating a windows form application project. Make sure you select the one under C#. This will at least allow you to add text boxes and etc. I do not know much of anything about application development so I could be wrong.

Share this post


Link to post
Share on other sites
Quote:
Original post by kimi
I have no idea what to do and how to do it. Please help!

Other than saying "hang in there, you can do it!", there's not much more we can do I'm afraid. [smile]
Quote:
Yeah I have been searching on internet. I know C++ but VC# is new to me. I am learning how to use VS 2010.

That's a start. If you are completely new to a language/framework, it's probably a good idea to get yourself some learning material (a book, the official documentation, a series of online articles).
Quote:
But we are suppose to use some programming, event handlers, what user type should be checked and formatted automatically and so on ? Like in MS word if you type first letter as small it gets Caps.

You'll probably end up using event handlers to detect a change in the document's content, and auto format its text if necessary. But if never used event handlers, it's probably best to first learn the language basics.

Share this post


Link to post
Share on other sites
^^^

Yes I started but what can I do in this project ? Can you recomend me some other project. I am not sure about this Word processor application TBH

Quote:
Original post by agisler
Quote:
Original post by braindigitalis
Well, this sounds like a fun game you are making. :-)

That aside, what have you tried so far, what have you read and researched, have you attempted to search google?
To assist you, we need to know exactly where you are stuck not just 'how do i do my project'.


I also agree with braindigitalis. Saying that, I don't know how I would create that application myself, especially since I do not know what your lectures are specifically looking for. However I would start by creating a windows form application project. Make sure you select the one under C#. This will at least allow you to add text boxes and etc. I do not know much of anything about application development so I could be wrong.



You are right we have to select windows application. This project is boring a 2D game in C++ would have been intresting. But I have no other option for this subject.

Other options he suggested were level editor for some games or image editor, which is more complicated. The worst part is the full evaluation is going to be this course work [dead]

Share this post


Link to post
Share on other sites
This site shows how difficult a simple Notepad-style text editor with syntax highlighting in C++ is. I don't want to discourage you, but a full-blown Word-like program seems incredibly infeasible for someone who appears to not even know the language they are to write the program in. Does it have to be a complete Word clone, or will a simple text editor suffice?

Share this post


Link to post
Share on other sites
Quote:
Original post by webwraith
This site shows how difficult a simple Notepad-style text editor with syntax highlighting in C++ is. I don't want to discourage you, but a full-blown Word-like program seems incredibly infeasible for someone who appears to not even know the language they are to write the program in. Does it have to be a complete Word clone, or will a simple text editor suffice?


Thanks for the link. This notepad style text editor looks really complicated. I think something like this will be more than enough.

Does anyone know how I can get this linker error working in VS 2010. I tam not sure what to do:



error LNK2019: unresolved external symbol _CreateTextView referenced in function _WndProc@16

error LNK2019: unresolved external symbol _InitTextView referenced in function _WinMain@16

error LNK1120: 2 unresolved externals



I get this error compiling the first program of the tutorial.
http://www.catch22.net/tuts/neatpad/1

Share this post


Link to post
Share on other sites
Hold on there for a moment. Let me suggest a few things.

Making a Notpad editor with some simple formatting functions in C# is actually quite easy. First of all, I suggest you try to follow this tutorial.
There is others too, like
clicky
clicky

Completeing that tutorial shouldn't take long.

Once you have that up and running you will have a RichTextBox control. Click this control to select it and go to the properties window (If this windows doesn't show, choose "View -> Properties window" in main menu).
In the properties window there will be a toolbar button called "events". Click this. Now you should see a list of all available event handlers for the richtextbox control.
Now you have a few options (TextChanged, KeyPress).
If we go with the TextChanged event, double click on the empty field to the right of the event name to have the code for the event generated.
Inside this event you can iterate through the entire RichTextBox.Text value character by character (Maybe not the most efficient way but it should work).

Now, if you find a . character, set a flag indicating that the next character should be made uppercase if it is a lowercase (a -> z).

example:

foreach(char c in textbox.Text)
{
if(c == '.')
makeNextCharNotWhitespaceUppercase = true;

...
}




[Edited by - pulpfist on October 17, 2010 7:56:43 PM]

Share this post


Link to post
Share on other sites
I would start by creating a list of features you want to implement in priority order, and then working through them one by one. It sounds like you can't see the trees for the forest.

"How do I create a word processor?" is a basically worthless question.

"How do I ensure the first character of a new sentence in a RichTextBox control is a capital letter using VC#?" is much more useful.

Share this post


Link to post
Share on other sites
^^^

Yeah you are probably right.

The project, text editor for example is going to be used by some non-english speaking school.

1. I am thinking of scanning some text(eg: lessons of a book) and translating it ?

2. It will be used by kids ... so "a for apple" and this will also add an image of apple

Other formatting features, tools like some dictionary calculations. Ideally this text editor is meant for some kids or children in school and I am making this software. Translating probably is complicated but what do you guys think ???

Quote:
Original post by pulpfist
Hold on there for a moment. Let me suggest a few things.

Making a Notpad editor with some simple formatting functions in C# is actually quite easy. First of all, I suggest you try to follow this tutorial.
There is others too, like
clicky
clicky

Completeing that tutorial shouldn't take long.

Once you have that up and running you will have a RichTextBox control. Click this control to select it and go to the properties window (If this windows doesn't show, choose "View -> Properties window" in main menu).
In the properties window there will be a toolbar button called "events". Click this. Now you should see a list of all available event handlers for the richtextbox control.
Now you have a few options (TextChanged, KeyPress).
If we go with the TextChanged event, double click on the empty field to the right of the event name to have the code for the event generated.
Inside this event you can iterate through the entire RichTextBox.Text value character by character (Maybe not the most efficient way but it should work).

Now, if you find a . character, set a flag indicating that the next character should be made uppercase if it is a lowercase (a -> z).

example:
*** Source Snippet Removed ***


Thanks [smile]. Can you give some idea and tricks of making text editor for children in school or something like this

Share this post


Link to post
Share on other sites
You're doing it again! Stop asking if someone can tell you how to do your entire project!!

Break it down. Whats the very most basic thing you need to do? Do that. Whats the most important improvement/addition to that basic part? Do that. Whats the next most important improvement/addition? You see where this is going. Break your project down to simple steps and suddenly each step either becomes easy, or becomes a problem that's easy to find a solution to.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this