Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When i enter the enter key,a new winform appears,but i didn't write these codes.
My code :
Private WithEvents ButtonLogin As ButtonDefinition
ButtonLogin = controlDefs.AddButtonDefinition("Login",
"ButtonLogin",
CommandTypesEnum.kShapeEditCmdType,
AddInClientID,
"Login",
"Login",
smallIcon,
largeIcon)
Private Sub ButtonLogin_OnExecute(Context As NameValueMap) Handles ButtonLogin.OnExecute
Dim f1 As New FormLogin
f1.Show()
End Sub
When enter the enter key in FormLogin windows,a new FormLogin appears,just like the screenshot below.
Why is this happening?
Solved! Go to Solution.