Click here to Skip to main content
16,005,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: problem in creating downloader Pin
Mycroft Holmes1-May-09 14:59
professionalMycroft Holmes1-May-09 14:59 
GeneralRe: problem in creating downloader Pin
jdcodes1-May-09 20:30
jdcodes1-May-09 20:30 
GeneralRe: problem in creating downloader Pin
Dave Kreskowiak2-May-09 4:28
mveDave Kreskowiak2-May-09 4:28 
GeneralRe: problem in creating downloader Pin
jdcodes4-May-09 10:16
jdcodes4-May-09 10:16 
GeneralRe: problem in creating downloader Pin
Dave Kreskowiak4-May-09 17:13
mveDave Kreskowiak4-May-09 17:13 
QuestionProblem passing/filling/editing data Pin
smjunior091-May-09 7:59
smjunior091-May-09 7:59 
AnswerRe: Problem passing/filling/editing data Pin
Kschuler1-May-09 10:46
Kschuler1-May-09 10:46 
AnswerRe: Problem passing/filling/editing data Pin
Mycroft Holmes1-May-09 15:10
professionalMycroft Holmes1-May-09 15:10 
I think it is a design issue, your parent form creates a dialog where the user enters the data and closes the dialog, then your parent form adds the record to your dataset and uses the table adaptor to update the database. I would do it differently.

parent form gets the ID of the record or 0 for a new record
instantiate the dialog passing the ID to the constructor
dialog gets the table/record based on the ID (empty table if new)
dialog creates a new row in the dialogs table adding any default information
dialog SAVES the record to the database when the user is finished
dialog passes the dialogresult to the parent form
parent form RELOADS the datatable if there has been a change from the dialog.

This style services both Add and Edit of a record, moves all the manipulation logic to the dialog and insures the database is up to date with the data.

The real drawback is that there is an additional read to refresh the parents datatable. I have been using this style of development for decades and it works perfectly for corporate CRUD.

Never underestimate the power of human stupidity
RAH

GeneralRe: Problem passing/filling/editing data Pin
smjunior091-May-09 16:53
smjunior091-May-09 16:53 
GeneralRe: Problem passing/filling/editing data Pin
smjunior091-May-09 16:56
smjunior091-May-09 16:56 
QuestionGetting content of word embedded in Web Browser control Pin
42ka11-May-09 3:35
42ka11-May-09 3:35 
AnswerRe: Getting content of word embedded in Web Browser control Pin
Dave Kreskowiak1-May-09 3:55
mveDave Kreskowiak1-May-09 3:55 
Questionopening balance in access database using crystal report Pin
adnanbilwani1-May-09 2:30
adnanbilwani1-May-09 2:30 
AnswerRe: opening balance in access database using crystal report Pin
Dave Kreskowiak1-May-09 3:54
mveDave Kreskowiak1-May-09 3:54 
QuestionFor Each Textbox Pin
Samir Ibrahim1-May-09 2:21
Samir Ibrahim1-May-09 2:21 
AnswerRe: For Each Textbox Pin
Henry Minute1-May-09 2:29
Henry Minute1-May-09 2:29 
GeneralRe: For Each Textbox Pin
Samir Ibrahim1-May-09 3:07
Samir Ibrahim1-May-09 3:07 
AnswerRe: For Each Textbox Pin
Mycroft Holmes1-May-09 2:33
professionalMycroft Holmes1-May-09 2:33 
GeneralRe: For Each Textbox Pin
Samir Ibrahim1-May-09 3:23
Samir Ibrahim1-May-09 3:23 
NewsRe: For Each Textbox Pin
Samir Ibrahim1-May-09 4:02
Samir Ibrahim1-May-09 4:02 
GeneralRe: For Each Textbox Pin
Mycroft Holmes1-May-09 15:11
professionalMycroft Holmes1-May-09 15:11 
QuestionData Report Pin
Jimnahsh1-May-09 0:19
Jimnahsh1-May-09 0:19 
AnswerRe: Data Report Pin
Dalek Dave1-May-09 1:23
professionalDalek Dave1-May-09 1:23 
AnswerRe: Data Report Pin
Ashfield1-May-09 1:24
Ashfield1-May-09 1:24 
GeneralRe: Data Report Pin
Jimnahsh17-May-09 5:13
Jimnahsh17-May-09 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.