Guest Eregnon Posted October 22, 2002 Posted October 22, 2002 How do I set up a context menu that will bring up the standard find dialog box? Quote
*Gurus* Derek Stone Posted October 22, 2002 *Gurus* Posted October 22, 2002 The following will show a context menu, but there isn't a "standard find dialog" anywhere in the .NET framework. ContextMenu.Show(MyButton1, New Point(100, 100)) Quote Posting Guidelines
Guest Eregnon Posted October 22, 2002 Posted October 22, 2002 What about the find dialog box you get when you choose find from the edit menu? I'm trying to set that up in a context menu for a rich text box, along with some other options of my own devising. Quote
*Gurus* Derek Stone Posted October 22, 2002 *Gurus* Posted October 22, 2002 From what "edit menu"? The RichTextBox class has a Find method, but it only searches for the text. It doesn't ask the user what they want to search for. You have to create the find dialog yourself with a form class. Quote Posting Guidelines
Guest Eregnon Posted October 22, 2002 Posted October 22, 2002 Edit->Find and Replace->Find. I thought there was a way to add that menu item to a form and bring up that dialog box. It seems not to be the case. Quote
*Gurus* Derek Stone Posted October 22, 2002 *Gurus* Posted October 22, 2002 It would help if you told me what application has that menu. [edit]I take you're referring to VS.NET. You'll need to recreate that yourself.[/edit] Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.