Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
QuestionGet the position of IBeam Pin
Adobe200724-Apr-07 20:36
Adobe200724-Apr-07 20:36 
AnswerRe: Get the position of IBeam Pin
Adobe200725-Apr-07 6:36
Adobe200725-Apr-07 6:36 
QuestionError The namespace '' already contains a definition for '?' Pin
cole2324-Apr-07 20:07
cole2324-Apr-07 20:07 
AnswerRe: Error The namespace '' already contains a definition for '?' Pin
xibeifeijian24-Apr-07 20:15
xibeifeijian24-Apr-07 20:15 
AnswerRe: Error The namespace '' already contains a definition for '?' Pin
Vikram A Punathambekar24-Apr-07 20:53
Vikram A Punathambekar24-Apr-07 20:53 
QuestionDisplaying a picture Pin
Icarus12324-Apr-07 19:58
Icarus12324-Apr-07 19:58 
AnswerRe: Displaying a picture Pin
xibeifeijian24-Apr-07 20:35
xibeifeijian24-Apr-07 20:35 
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 

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.