Double clicking the Addnew button


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Double clicking the Addnew button

  1. #1
    Join Date
    Apr 2007
    Posts
    2

    Double clicking the Addnew button

    Hi,
    I have a Visual Studio 2005 pro project.
    It works fine, but if I double click the addnew button on the bindingNavigator,
    the problems begin. If I want to save data from my two tables (Customers and Orders) I get an error message. Then I have two choices 1. I can enter and save data to each table separately. 2. To restart the project and here it works fine again.
    How can I intercept this problem?
    Can an expert give me code to do so?
    Thanks for you all.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    What does the error message say?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Apr 2007
    Posts
    2

    AddNew problem

    Quote Originally Posted by mohamedsaleh70
    Hi,
    I have a Visual Studio 2005 pro project.
    It works fine, but if I double click the addnew button on the bindingNavigator,
    the problems begin. If I want to save data from my two tables (Customers and Orders) I get an error message. Then I have two choices 1. I can enter and save data to each table separately. 2. To restart the project and here it works fine again.
    How can I intercept this problem?
    Can an expert give me code to do so?
    Thanks for you all.
    The following hapens if I doubleclick the addnew button.

    Now there is no error messages but when I try to add a new Customer, the program removes the details in the orders table ( a datagridview child table) and keeps the part in the customers table (Parent table).

    Without doubleClicking this button everything goes fine.
    Thank you for your care and time.

Similar Threads

  1. Gradebook program
    By [gx]Shadow in forum Java
    Replies: 5
    Last Post: 10-25-2006, 11:20 PM
  2. Need help with calculator...
    By 2eXtreme in forum Java
    Replies: 0
    Last Post: 04-05-2006, 08:38 AM
  3. Need Help With Multi Function Program
    By WackoWolf in forum C++
    Replies: 4
    Last Post: 10-17-2005, 05:22 PM
  4. Replies: 3
    Last Post: 10-03-2005, 12:57 AM
  5. button listener not working
    By DrunkinP in forum Java
    Replies: 0
    Last Post: 03-31-2005, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center