Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
GeneralRe: Displaying a picture Pin
Icarus12324-Apr-07 20:51
Icarus12324-Apr-07 20:51 
QuestionDownLoad Data Pin
sujithkumarsl24-Apr-07 19:40
sujithkumarsl24-Apr-07 19:40 
QuestionHelp required in c# Pin
MIsahq24-Apr-07 19:29
MIsahq24-Apr-07 19:29 
AnswerRe: Help required in c# Pin
Rocky#24-Apr-07 19:38
Rocky#24-Apr-07 19:38 
GeneralRe: Help required in c# Pin
MIsahq24-Apr-07 20:17
MIsahq24-Apr-07 20:17 
GeneralRe: Help required in c# Pin
Rocky#24-Apr-07 20:53
Rocky#24-Apr-07 20:53 
QuestionHow to set transperency of an image in C# Pin
dudedotnet24-Apr-07 18:11
dudedotnet24-Apr-07 18:11 
QuestionRichTextBox find text Pin
Adobe200724-Apr-07 17:26
Adobe200724-Apr-07 17:26 
Im trying to implement a simple find text on a editor im working on.

On my find form, i have this button called "Find", here is the code for when you press it:

private void FindButton_Click(object sender, EventArgs e)
{
// Initialize the return value to false by default.
int returnValue = -1;

// Ensure that a search string has been specified and a valid start point.
if (FindTextBox.Text.Length > 0 && 0 >= 0)
{
// Obtain the location of the search string in richTextBox1.
int indexToText = EditingArea.Find(FindTextBox.Text, 0, RichTextBoxFinds.MatchCase);
// Determine whether the text was found in richTextBox1.
if (indexToText >= 0)
{
returnValue = indexToText;
}
}
}

But, when i try to build the solution, i keep getting these two error:

Error 1 (Warning - not major but i wanna get rid this stupid warning)

Solution_Name.Editor.ContextMenu' hides inherited member 'System.Windows.Forms.Control.ContextMenu'. Use the new keyword if hiding was intended. C:\Users\Admin\Documents\Visual Studio 2005\Projects\Solution_Name\Solution_name\Editor.Designer.cs

Error 2 - (Critical error, wont let me compile at all)

The name 'EditingArea' does not exist in the current context

The "EditingArea" is the name of the RichTextBox on the main form "Editor". The "Find" form is also on the same solution, same project. So, why can't it find it???
AnswerRe: RichTextBox find text Pin
Adobe200724-Apr-07 17:38
Adobe200724-Apr-07 17:38 
GeneralRe: RichTextBox find text Pin
Patrick Etc.24-Apr-07 18:02
Patrick Etc.24-Apr-07 18:02 
AnswerRe: RichTextBox find text Pin
Adobe200724-Apr-07 18:13
Adobe200724-Apr-07 18:13 
GeneralRe: RichTextBox find text Pin
Arun.Immanuel24-Apr-07 18:34
Arun.Immanuel24-Apr-07 18:34 
GeneralRe: RichTextBox find text Pin
Adobe200724-Apr-07 18:38
Adobe200724-Apr-07 18:38 
GeneralRe: RichTextBox find text Pin
Arun.Immanuel24-Apr-07 18:46
Arun.Immanuel24-Apr-07 18:46 
GeneralRe: RichTextBox find text Pin
Sathesh Sakthivel24-Apr-07 19:00
Sathesh Sakthivel24-Apr-07 19:00 
GeneralRe: RichTextBox find text Pin
Arun.Immanuel24-Apr-07 19:05
Arun.Immanuel24-Apr-07 19:05 
GeneralRe: RichTextBox find text Pin
Adobe200724-Apr-07 19:12
Adobe200724-Apr-07 19:12 
GeneralRe: RichTextBox find text Pin
Sathesh Sakthivel24-Apr-07 19:37
Sathesh Sakthivel24-Apr-07 19:37 
QuestionBindingSource question, help me Pin
phantanagu24-Apr-07 17:06
phantanagu24-Apr-07 17:06 
AnswerRe: BindingSource question, help me Pin
Rocky#24-Apr-07 19:35
Rocky#24-Apr-07 19:35 
QuestionLooking for some regular expressions to match the File/Folder path Pin
xibeifeijian24-Apr-07 16:18
xibeifeijian24-Apr-07 16:18 
AnswerRe: Looking for some regular expressions to match the File/Folder path Pin
Rocky#24-Apr-07 19:44
Rocky#24-Apr-07 19:44 
GeneralRe: Looking for some regular expressions to match the File/Folder path Pin
xibeifeijian24-Apr-07 20:02
xibeifeijian24-Apr-07 20:02 
QuestionError 4 Expected class, delegate, enum, interface, or struct Pin
m0dernist24-Apr-07 16:00
m0dernist24-Apr-07 16:00 
AnswerRe: Error 4 Expected class, delegate, enum, interface, or struct Pin
xibeifeijian24-Apr-07 16:24
xibeifeijian24-Apr-07 16:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.