AdvancedHMI Software
General Category => Feature Request => Topic started by: xulan on February 19, 2019, 03:30:35 AM
-
I am using the RecipeSaveButton to save one recipe, if i press the RecipeSaveButton, the keypad will be popup, then I can set the name of the recipe and hit "Enter" key to save it.
Is it possible to create one flag which I can use for another form.
-
Can you explain what you mean by "one flag"?
-
The flag could be bool value which could be readable in another form, I want to know the setting is done.
But this "Enter" button belongs to the popup keypad, I just want to use this event to trigger a bit in another form.
-
Attached is a modified RecipeSaveButton that has a RecipeSaved event
- Download the attached file
- Open your solution in Visual Studio
- In Solution Explorer, expand down AdvancedHMIControls project
- Right click the RecipeControls folder and select Add->Existing
- Browse to the file downloaded
- Rebuild solution
Your RecipeSaveButton will now fire the RecipeSaved event
-
I just tried it out with a MsgBox in the event handler and it worked for me by popping up the box when I saved a recipe
Private Sub RecipeSaveButton1_RecipeSaved(sender As Object, e As EventArgs) Handles RecipeSaveButton1.RecipeSaved
MsgBox("Recipe Saved!")
End Sub
-
Did you make the modification or try it from the latest beta version? I noticed it actually wasn't in 2.99y beta 24