15,896,118 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 9769841 (Top 11 by date)
Member 9769841
21-Jun-15 14:44pm
View
Thank You
Member 9769841
20-Jun-15 13:36pm
View
I want to know if it is possible to achieve the following using ASP.Net Identity and Asp.net mvc on an opinion polls where user will either vote up a question or vote it down.
1)Users can vote up/down after supplying there Username and password for Facebook.
2)Post on that User's Wall.
Member 9769841
20-Jun-15 13:35pm
View
please, can you give a little more explanation and probably links to related articles. Thank you.
Member 9769841
29-Aug-13 7:50am
View
Thanks V,Lorz...but is there a way to make sure i only highlight the nth(may be even the fourth boy in the text)
Member 9769841
29-Aug-13 7:37am
View
i meant that i will make use of the comment box to reply to answers; like you told me to
Member 9769841
29-Aug-13 5:50am
View
Thanks..for the advice, i will really use that next time
Member 9769841
29-Aug-13 5:44am
View
Its a RichtextBox and may be when you see the codes, you will understand me. Its actually a application that compares the text in RichtextBox1 to the text in RichtextBox 2. It then highlights the diffrent portion in richtextBox2. Have been able to do that, except that it highlights the first occurence of the diffrent text. Here is the code....
public void check()
{
string[] RichTextBoxLines1 = dragDropclass1.Lines;
string[] RichTextBoxLines2 = dragDropclass1.Lines;
List<string> Test1 = new List<string>(dragDropclass1.Text.Split(new char[] {' '}));
List<string> Test2 = new List<string>(dragDropclass2.Text.Split(new char[] {' '}));
if (Test1.Count > Test2.Count)
{
for (int i = 0; i <= Test1.Count - Test2.Count; i++)
{
Test2.Add(" ");
}
}
else if (Test2.Count > Test1.Count)
{
for (int i = 0; i <= Test2.Count - Test1.Count; i++)
{
Test1.Add(" ");
}
}
bool[] value = new bool[Test1.Count];
for (int i = 0; i < Test1.Count; i++)
{
string a = Test1[i];
string b = Test2[i];
value[i] = string.Equals(a, b, StringComparison.Ordinal);
}
for (int i = 0; i < value.Length; i++)
{
if (value[i] == false)
{
int k = i + (i - 1);
// int s = dragDropclass2.Text.IndexOf(Test2[i], Test2[i].IndexOf(Test2[i]),Test2[i].Length);
dragDropclass2.SelectionStart = dragDropclass2.Text.IndexOf(Test2[i],k);
dragDropclass2.SelectionLength = Test2[i].Length;
dragDropclass2.SelectionColor = Color.Red;
}
}
Test1.Clear();
Test2.Clear();
}
Where Dragdropclass are the control i created to enable me drag text file into the richtextBox.
Member 9769841
29-Aug-13 5:37am
View
The thing is, The text are dynamic text, and it might even actually be numerous of lines of text...
What am working on is something that identifies the diffrent portion of another text. have been able to do that. But instead of highlighting the Text at the exact position, it highlights the first occurrence of that Text.
Member 9769841
23-Aug-13 17:27pm
View
i could detect they were diffrent, but i could not count the number of diffrences and i could not highlight them
Member 9769841
23-Aug-13 17:26pm
View
Ok..i think i get u now. I tried using the methods i found in this link http://msdn.microsoft.com/en-us/library/vstudio/cc165449.aspx
Member 9769841
23-Aug-13 17:16pm
View
Am trying to do a WPF application that will compare the text in RichTextBox1 to the Text in RichTextBox2, the highlight the different text in RichTextBox2
Show More