Click here to Skip to main content
15,911,306 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionsourcecode download Pin
Vb200914-May-09 5:05
Vb200914-May-09 5:05 
AnswerRe: sourcecode download Pin
Tom Deketelaere4-May-09 5:16
professionalTom Deketelaere4-May-09 5:16 
AnswerRe: sourcecode download Pin
Dave Kreskowiak4-May-09 5:16
mveDave Kreskowiak4-May-09 5:16 
AnswerRe: sourcecode download Pin
Christian Graus4-May-09 13:36
protectorChristian Graus4-May-09 13:36 
GeneralRe: sourcecode download Pin
Rajesh Anuhya4-May-09 18:39
professionalRajesh Anuhya4-May-09 18:39 
QuestionHow can I take one record from one form and the values to open another form? Pin
waner michaud4-May-09 3:27
waner michaud4-May-09 3:27 
AnswerRe: How can I take one record from one form and the values to open another form? Pin
Tom Deketelaere4-May-09 3:37
professionalTom Deketelaere4-May-09 3:37 
GeneralRe: How can I take one record from one form and the values to open another form? Pin
waner michaud4-May-09 5:42
waner michaud4-May-09 5:42 
thanks,

this is what I have done.

In the registration form that is the parent form

Private sub CreateAComplaint_Click

Dim row As IGRegistrationDataSet.RegistrationRow
row = CType(CType(Me.RegistrationBindingSource.Current, DataRowView).Row, IGRegistrationDataSet.RegistrationRow)

Dim frm As New ComplaintProfile(Me.IGRegistrationDataSet, row.Reg_ID)

frm.ShowDialog()

end sub

int the complaint form that is the child form, I have this

Sub New(ByVal ds As IGRegistrationDataSet, ByVal id As Integer)

' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Me.RegistrationBindingSource.DataSource = ds
Me.RegistrationBindingSource.Filter = "Reg_ID = " & id.ToString

End Sub
* One dataset and one table..
when save on the child form nothing happens to the data base, I must go back to the parent form for the changes to occur since the child form record is in memory. I want to update the database from both the parent and the child.

**I am open to use another logic where I use seperate datasets and tables so long the child form is open from the parent..
e.i. Registration record is fine then load the complaint form to create a complaint for this particular registration..

I hope I make myslef clear..

Thanks,

Best Regard
GeneralRe: How can I take one record from one form and the values to open another form? Pin
Andy Missico4-May-09 14:54
Andy Missico4-May-09 14:54 
AnswerRe: How can I take one record from one form and the values to open another form? Pin
Tiyani Miyambo4-May-09 22:47
Tiyani Miyambo4-May-09 22:47 
GeneralRe: How can I take one record from one form and the values to open another form? Pin
waner michaud6-May-09 8:34
waner michaud6-May-09 8:34 
Questionhow to print in textbox value? Pin
JC.KaNNaN4-May-09 0:11
JC.KaNNaN4-May-09 0:11 
AnswerRe: how to print in textbox value? Pin
Tiyani Miyambo4-May-09 0:21
Tiyani Miyambo4-May-09 0:21 
AnswerRe: how to print in textbox value? Pin
Baran M4-May-09 1:09
Baran M4-May-09 1:09 
GeneralRe: how to print in textbox value? [modified] Pin
riced4-May-09 1:24
riced4-May-09 1:24 
AnswerRe: how to print in textbox value? Pin
Dave Kreskowiak4-May-09 4:16
mveDave Kreskowiak4-May-09 4:16 
Questionhiding windows taskbar Pin
hrishiS3-May-09 23:42
hrishiS3-May-09 23:42 
AnswerRe: hiding windows taskbar Pin
Christian Graus3-May-09 23:52
protectorChristian Graus3-May-09 23:52 
GeneralRe: hiding windows taskbar Pin
hrishiS4-May-09 0:00
hrishiS4-May-09 0:00 
GeneralRe: hiding windows taskbar Pin
Samir Ibrahim4-May-09 0:14
Samir Ibrahim4-May-09 0:14 
GeneralRe: hiding windows taskbar Pin
hrishiS4-May-09 0:20
hrishiS4-May-09 0:20 
GeneralRe: hiding windows taskbar Pin
Samir Ibrahim4-May-09 0:29
Samir Ibrahim4-May-09 0:29 
GeneralRe: hiding windows taskbar Pin
hrishiS4-May-09 1:04
hrishiS4-May-09 1:04 
GeneralRe: hiding windows taskbar Pin
Samir Ibrahim4-May-09 1:30
Samir Ibrahim4-May-09 1:30 
GeneralRe: hiding windows taskbar Pin
hrishiS4-May-09 19:35
hrishiS4-May-09 19:35 

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.