Subscribe to danzar's Blog        RSS Feed
- - - - -

Mega Project ideal list. - "Text" section / Text Editor

Icon Leave Comment
Ok, this one took me a couple of days. I was having an issue on the text color after a highlighted section staying the same color as the last highlight.

I was able to fix it with this line
textboxInput.Selection.ApplyPropertyValue(TextElement.ForegroundProperty, Brushes.Black);
...
- - - - -

Mega Project ideal list. - "Text" section / Count Words in a String

Icon Leave Comment
I take the text from a text box and test if its empty. If its not, then I split the string into and array by splitting it at the open space. Then I loop all the array items counting them. Then pass the results to a message box.

Second part is it opens a word file. Looping though it counting the words and then displays the results in a message...
- - - - -

Mega Project ideal list. - "Text" section / Check if Palindrome

Icon Leave Comment
I am taking the input from a text box then looping though it backward and creating the output string. after the loop is done I test the input text against the output text. If its true then its Palindrome.


...
- - - - -

Mega Project ideal list. - "Text" section / Count Vowels

Icon Leave Comment
I am taking the input from a text box and lower all the text. Then I convert the string to a char array. Then loop though the array and test for each vowel. Adding to the vowel in the loop if it was found.
Once the loop is over it test all the vowels for >0. Then displays the results in the output label.


...
- - - - -

Mega Project ideal list. - "Text" section / Pig Latin

Icon Leave Comment
This takes an input string from a text box. Then it first tests for a compound word. It gets the value for the compound word and then tests the results for first letter to vowel then returns the results of that event to the output label.
If its not a compound word then it test for vowel and returns the results and passes it to the output...
- - - - -

Mega Project ideal list. - "Text" section / Reverse a String

Icon Leave Comment
The ideal here is to responded to the text box "TextChanged" event with a loop though the text backwards saving it to a new string that I displayed in the output text box.


...
- - - - -

My attempt at Martyr2's Mega Project ideal list. ("Numbers" section)

Icon Leave Comment
This is my attempt to do all of Martyr2's project list Martyr2's Mega Project ideals...
Page 1 of 1

October 2014

S M T W T F S
   1234
567891011
12131415161718
19 20 2122232425
262728293031 

Tags

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)