PDA

Click to See Complete Forum and Search --> : basic form questions


techker
Dec 31st, 2009, 12:27 PM
Hey guys i have a few questions about seting up a form

when you creat a new for open the dataset drag and drop the tables to form it creates a top menu bar with pages plus sign and x and save

now when you run the app you need to press the plus sign to add data in the database..is there a way to make it that you dont need to press the plus sign?

and when you save the data you get a confirmation?

RhinoBull
Dec 31st, 2009, 12:58 PM
Don't use data binding - instead do it through the code: ADO.Net is mighty powerful.

techker
Dec 31st, 2009, 01:05 PM
im just starting in this..lol

but there should be a way to make it that the default add in is set?don't need to press the plus sign all the time?

Shaggy Hiker
Dec 31st, 2009, 01:56 PM
Yeah, there would be ways, but none of them are necessarily good. Whenever something happens, an event is raised, and you can make your changes then. However, which event to use can get a bit tricky. You need an event that happens after ALL of the necessary changes have been made, and that is often so difficult to determine that giving people a button (the plus sign serves the same purpose) to click when they are ready is often the best solution.

techker
Dec 31st, 2009, 02:02 PM
well i will keep that in mind..

what i will to is put txt next to the plus ..thx

RhinoBull
Dec 31st, 2009, 05:39 PM
These tutorials (http://www.vbforums.com/showthread.php?t=337051#Net) should get you started.