Results 1 to 2 of 2

Thread: ComboBox and CheckBox clearing after saving

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    6

    ComboBox and CheckBox clearing after saving

    Hi everyone

    I'm having a little problems with an application i'm making with Visual basic express 2010. I have many ComboBox bind to a dbase. Eveything work fine but when I press the save button the Combobox.text="" and I don't know why. When I search in the dbase, I can see the information I wrote. But if i'm trying to see the information with the application the Combobox stay clear. The same thing happen with one of my checkbox wich uncheck itself. Thanks for you help

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,372

    Re: ComboBox and CheckBox clearing after saving

    Somewhere in your code you're telling the combobox's text to be empty as well as getting that checkbox to set it's self to uncheck. But since we don't know how you're saving the data, I can't give you an answere.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    6

    Re: ComboBox and CheckBox clearing after saving

    My code for my save button is :
    Me.validate()
    Me.Bindingsource.endedit()
    Me.tableadapter.update(Dataset.Table)

    The text of my combobox clear itself if I close my application and restart it. I've made few test with new combobox I created. The new combobox keep the information but not the old one. I can't see the differences in the properties between these two combobox.

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