473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Find, Edit menu

Sl1ver
196 100+
Anyone got coding or no where i can find coding so i can activate the "Find" function in the edit menu?
Mar 30 '09 #1
6 1436
tlhintoq
3,525 Expert 2GB
What do you mean by "activate" the find function?

You do realize you are going to have to write your own 'find' routine, right? There is no all-purpose all powerful find function already written that can search any kind of data, from any source.
Mar 30 '09 #2
Sl1ver
196 100+
meaning ill have to grab current selected focus and create a find piece coding based on that?
Mar 30 '09 #3
Sl1ver
196 100+
How to i grab the focus from, lets say a data grid or im on 1 datagrid wanting to search info on a nother data grid from the user selecting from a dropdown or search all 3 datagrids. the datagrids are on tabs
Mar 30 '09 #4
cloud255
427 Expert 256MB
Well, you'll have to create a separate region where you have controls in which the user will specify filter values and then another control to activate your search routine.

You will then apply the search routine to each datagrid. I suggest a single function which accepts a struct and a datasource as a parameters (remember to pass these by value). Return a dataset which contains all the matches.

I dont understand your question regarding the focus. No control needs to have focus for you to search something as this happens in code, but to set focus to a specific control us:

Expand|Select|Wrap|Line Numbers
  1. controlName.Focus();
Mar 30 '09 #5
Sl1ver
196 100+
im using XtraGrid from DXperiance, how will i implement a search for a whole table, all i get codes for is in a specific column?
Mar 30 '09 #6
tlhintoq
3,525 Expert 2GB
@Sl1ver
Meaning... I have no idea what your program is, does, looks like or what kind of data or objects it contains. Maybe when the user clicks 'find' a non-modal search control opens up like in word. Maybe you're making a painting program and when you click 'find' all the similar objects (filled ovals) are searched and highlighted. Maybe you are making a car lot sales program and an sql search box comes up for finding a 1997 Ford Ranger in Blue.
Mar 30 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bryan Van. | last post by:
Hello, I've had Visual Studio .NET for C# only two weeks now. Today I encounter a big problem with the developer. The edit menu is disabled! Both using the right click of the mouse, the edit menu...
5
by: Cecilia Bergengruen | last post by:
2 questions: 1)I inserted a menu in an mdi window form. I right clicked on a menu item and pressed edit names. I therefore edited all my menu item names. Then I right clicked and pressed edit...
6
by: Larry Woods | last post by:
I am trying to name my submenus (MainMenu control) and they show up in the menu dropdown...like they are O.K., but when I check my controls the names are still "MenuItemX". OTOH, the top-level...
5
by: Mike Labosh | last post by:
In VB 6, the Form_QueryUnload event had an UnloadMode parameter that let me find out *why* a form is unloading, and then conditionally cancel the event. In VB.NET, the Closing event passes a...
15
by: Jeff Mason | last post by:
I have an application where I need to set certain menu items invisible based on a user privilege. We did a sinmlar thing in VB6 and used the menu item's tag property to assign an identifier to...
6
by: John | last post by:
In a form how I can I trap for the action that a user opens the built in 'find dialog'? I would like to trap for it and before the dialog shows up, I would like to execute some code, and after that...
6
by: Academia | last post by:
I just installed VS2008 and Edit menu has "Quick Find" and "Quick Replace" but no "Find in Files" nor "Replace in Files" Help says: On the Edit menu "Find and Replace" should be there but it...
0
by: AAaron123 | last post by:
My Edit menu contains Find Symbol Quick Find Quick Replace I'd like it to also contain Find In Files and Replace in Files. Can I get VS2008 to add them? I tried the Tools/Customize but I...
2
by: Alan Mailer | last post by:
Well this is a new one on me... Suddenly I can't get my "Find" and/or "Replace" window to appear on screen while I'm working on my VB.net code. These windows don't appear if I hit Ctrl-F,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.