Results 1 to 5 of 5

Thread: vb.net: editing, saving, updating and deleting on the same form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    204

    vb.net: editing, saving, updating and deleting on the same form

    HI
    I am a developing a vb.net project. Some of the forms will need the client to ‘delete, save, update and edit, should I do all this in one form or create different forms? Please what would be the best way to handle this without having too many buttons on the same form and confusing issues?
    Thanks for your time

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: vb.net: editing, saving, updating and deleting on the same form

    Have you ever actually used a Windows program. How does Notepad handle it, for example?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: vb.net: editing, saving, updating and deleting on the same form

    If it were me, I would search by record, bind data to a datagridview then allow the update/delete options. Pretty much your update/save option would do the same thing, so I dont think there would be a need for two distinct ones.

    Assuming you are dealing with a database/datatable:

    Find Record = Perform a Query and bind data into the dataviewgrid.
    Update = Update edited values in the datagrid to the Database (will require a primary key to be pulled, and if youd like, hidden)
    Delete = Perform a deletion on the data based on your query

    If all you are doing is performing queries to edit types of data, you could also add a combobox and function to determine the query, then your FIND button will do select-case based on your combobox value

    Name:  form.jpg
Views: 841
Size:  52.7 KB

    Just a couple ideas that came to mind first

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    204

    Re: vb.net: editing, saving, updating and deleting on the same form

    Thank you very much, it is very helpful

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    204

    Re: vb.net: editing, saving, updating and deleting on the same form

    @Dunfiddle, Fortunately I have never ever actually used a window program. I Appreciate your effort.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width