Thread: Person Search function

  1. #1
    Registered User
    Join Date
    Mar 2017
    Posts
    1

    Person Search function

    Hello all,

    I'm trying to make a program in CSharp where you can search up a person with their first name, at this current time I have made it search up but it will only work with one name.

    What I have now:

    Person Search function-ghthszx-png
    Person Search function-71lpmxh-png
    Person Search function-uwx7g7m-png

    But I want to be to able to search up someones name i.e "John" and it will list all the Johns in the database and you can click view and it will view all the other information like the 3rd image. But I can't get my head around on how I am able to list all Johns like so:
    I.E.
    Person Search function-wqbqccc-png

    and be able to click view and see all other information etc.

    Thanks.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Using WinForms, I'd probably start with a user control for each of the "records", a Person class that's populated from the database and acts as a data source for the user control, then use a flow layout control in the form which lays out multiple instances of the user control.

    That said, you probably want to consider how to handle hundreds or thousands of results, because that would cause both display issues and performance issues.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. wgiven a person’s name, prints a person’s initials
    By Jason Dang in forum C Programming
    Replies: 3
    Last Post: 02-27-2017, 05:04 AM
  2. Lyric search program - search function question
    By Jpaul8986 in forum C++ Programming
    Replies: 9
    Last Post: 07-28-2015, 11:56 AM
  3. Search function
    By scott1990 in forum C Programming
    Replies: 5
    Last Post: 05-24-2010, 05:13 PM
  4. LL Search Function
    By mikeman in forum C++ Programming
    Replies: 3
    Last Post: 03-03-2010, 02:19 PM
  5. Allowing my search function to search sub directories!
    By Queatrix in forum Windows Programming
    Replies: 10
    Last Post: 09-30-2005, 04:54 PM

Tags for this Thread