blah blah blah is here! blah blah » Close

0
votes
1 answers

Trouble making a universal hotkey (mouse wheel + shift)

I have already tried using a few articles at CodeProgect and other places about universal hooks but I have not been able figure out how to get anything to the way I want it to. I want to create a hotkey, (mousewheel + shift), that works eve ...

1
votes
1 answers

How can I count all lines lines in a richtextbox?

I need to get the number of lines in a richtextbox relative to the richtextbox's width not the number of newline characters. Wordwrap is enabled in the richtextbox and I want to count all of the visible lines, not just the actual lines (mad ...

1
votes
1 answers

Best way to have live wordcount with large rtf files?

I am working on a text editor that has a label which updates with the current word count whenever the text is changed. Right now if I am editing a large file it takes a long time to count all of the regex matches, which causes typing to be ...

0
votes
1 answers

Is there a way stop carat from blinking in a richtextbox?

^ Also is there a way to change the carat from like this | to this _?

0
votes
1 answers

Type writer scrolling?

Is there a way to enable type writer scrolling in a richtextbox?

0
votes
1 answers

Multiple fontstyles in richtextbox?

I am trying to let the fontstyle of a richtextbox be changed to bold with ctrl-b, underlined with ctrl-u, ect. and back by using the hotkey again. Right now changing the fontstyle from regular to bold works fine, but when I change it to bol ...

0
votes
1 answers

Adding controls with a foreach loop.

I'm trying to add a new picturebox and label to my form form each match of a regex. Right now it seems to only add one label and one picturebox no matter how many matches there are. What am I doing wrong? My code: private void Form_Load( ...

0
votes
1 answers

Problem with counting all words in a richtextbox.

I am trying to count all of the words in a richtextbox via regex.Matches. Right now I am using "\w+", but that matches words with apostrophe's twice (ex. he's). Is this possible?

0
votes
1 answers

Is there a way to read a richtextbox up until the index of the current selection?

I want to assign a string the contents of a richtextbox up until the point that the user has selected. Is there a way to do this?

0
votes
1 answers

Scrollbar Problems.

I am making a full screened text editor and when the scrollbars are visible it looks very ugly. Is there a way to get the functionality of a scrollbar in the richtextbox without a visible scrollbar? I haven't been able to find a way to have ...

0
votes
1 answers

Is there an easy way to compare integers?

I want to compare integers to find out which one is closest to zero. Is there a simple way to do this?

0
votes
1 answers

Need help with using NetSpell.

I am trying to use NetSpell to spellcheck a richtextbox. Right now it finds incorrectly spelled words but when I select a word to replace the incorrectly spelled word with it doesn't do anything. What am I doing wrong? This is the code I h ...

0
votes
1 answers

Trouble with replace a string in a string.

I am trying to read a file and then replace all occurrences of "***EndSection***" with "Break" + a number which is incremented for each occurrence of "***EndSection***" . But right now the loop just continues ...

0
votes
1 answers

SpellCheck?

I am new to C# and am working on my first real program, a simple text editor. I would like to allow the user to spell check text in the main richtextbox, richtextbox1. What is the best way for me to do this?

0
votes
1 answers

Settings form.

I am trying to make a fullscreen text editor. I want the user to be able to change the background color of the richtextbox on form1 by changing settings on a second form, settingsForm. I can't figure out how to access and change the richtex ...

Feedback