Hi,
I have a child form that has textbox1, I want to add default value for
textbox1 but value is not stored to textbox successfully.
However , If I run same form directly , it runs successfully. I wrote
following code,
Regards,
Hardik Shah
=======> Parent Form
Property set for Parent Form
MdiContainer = true
Private Sub Parent_Form_Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim frm As New ChildForm
frm.MdiParent = Me
frm.Show()
End Sub
===================================
========> CHILD FORM
Dim bmb1 As BindingManagerBase
Private Sub Child_Form_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
bmb1 = Me.BindingContext(ds, "ac_tran")
TextBox1.DataBindings.Add("text", ds, "ac_tran.v_type")
bmb1.AddNew()
TextBox1.Text = "PR" ' <=======
End Sub