Results 1 to 9 of 9

Thread: When select a value in listbox, automatically Save and Tabout

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    76

    Question When select a value in listbox, automatically Save and Tabout

    Hi all.

    I have been trying to do this in many ways but nothing seems to work.
    My problem is:
    I have two textboxes and a list box(we can change be any control if this does not sound good).
    In the list box there is a blank, Save, Clear.

    Now when a person enter value in one textbox, tabs to next textbox, fills it,
    tabs to listbox, choses his value.
    As soon as he choses Save. I already have a Private Sub save_Click
    which can be called and tabbed right away to the first text box.

    If they choses Clear then it should clear all the fields and tabbed right away to the first text box.

    How would I go about doing this?
    Last edited by jadi; Jan 9th, 2009 at 10:50 AM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: When select a value in listbox, automatically Save and Tabout

    Code the listbox click event or keypress event (or both if you want to allow the user to do either one.)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    76

    Re: When select a value in listbox, automatically Save and Tabout

    Actaully we will be scanning all the values. Navigation is via tabs

    So onclick is not an option.
    One will scan a barcode with value 0 or 1
    0 for clear
    1 for Save
    So if he scans 1
    then save values in db and tab to textbox
    So which even should i use?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    76

    Re: When select a value in listbox, automatically Save and Tabout

    i dont have on textchange event in listbox
    as it is a compact framework of .net
    Windows mobile device application

  5. #5
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: When select a value in listbox, automatically Save and Tabout

    textbox1.text = ""
    textbox2.text = ""
    listbox1.items.clear
    textbox1.focus

    should do it
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    76

    Re: When select a value in listbox, automatically Save and Tabout

    Clearing textboxes and focusing is not the main part. Thats the most eaiest thing.

    When a person choses value 1(SAve) in listbox all the vlaues in the form should save in database. if he choses 0 (CLEAR) then just clear all fields.

    The saving is what i want to know.
    Due to compact framework lots of methods and events like performclick are not an option.

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: When select a value in listbox, automatically Save and Tabout

    Duplicate Threads Merged

    One topic, one thread, one forum section please.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2009
    Posts
    76

    Re: When select a value in listbox, automatically Save and Tabout

    Because no one is anwering in one thread............so i am trying other threads too.
    I need urgent help.

  9. #9
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: When select a value in listbox, automatically Save and Tabout

    If you are using scanning, surely the SDK of the scanner has samples?
    there is not one answer, as different scanners work in different ways
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

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