hi,
i have been having an endless problem with the save button for some time and i am also new in here.
Actually, here's how my problem defines:
i was developing my own project in the university so what i am stack is to have save button which firstly validates what the user enters the form. for instance if the user skips the text fields, i wanted to restrict the user to fill all the form and when he completes, the save must be accomplished.
here's the code i was trying to put but i was having problem saying the windows.forms.etc is unable to convert the save as Boolean and something like that.
Dim success As Boolean
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
If Product_DetailsBindingSource.Current Is Nothing Then
MessageBox.Show("plz, select any feilds then click save button", Me.Text)
success = False
Else
Me.Validate()
success = DirectCast(Product_DetailsBindingSource.Current, products).Save()
MessageBox.Show("i will save u ")
Panel1.Show()
End If
MessageBox.Show("save has completed successfully")
Panel1.Show()
End Sub