Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Auto populate item on addnewitem

$
0
0
Hi

I have a form with a label on it. I want to set the text property when I click on the addnewitem icon on the tool strip. I have the following code on the click event:

Private Sub BindingNavigatorAddNewItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click
Label1.Text = myvariable
End Sub



However, it seems to run this before refreshing the form, so the variable never gets entered.

Does anyone know how to achieve this?

Thanks

Viewing all articles
Browse latest Browse all 51036

Trending Articles