Textbox validating menu click

29-Apr-2017 20:02

To overcome these limitations, you can create a text box to display the message, and use programming to make it appear if cells that contain a data validation Input Message are selected. NOTE: The technique shown here will only show the input message text, from the data validation setup window. Doing so can cause your application or the operating system to stop responding.

i tried from many sites but my issue is not yet resolved.There are reasons that menu click does not loses the textbox focus. If you want to have for example an "Edit" menu with "Paste" in, the "Paste" should act against the control that has focus and because of that it must not steal the focus from any controls on the form. Tag Is Control And Also CType(CType(sender, Menu Strip). This example requires that a Text Box and Error Provider control have been created on a form.This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept.

i tried from many sites but my issue is not yet resolved.There are reasons that menu click does not loses the textbox focus. If you want to have for example an "Edit" menu with "Paste" in, the "Paste" should act against the control that has focus and because of that it must not steal the focus from any controls on the form. Tag Is Control And Also CType(CType(sender, Menu Strip). This example requires that a Text Box and Error Provider control have been created on a form.This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept.It copies the data validation Input Message and Input Title to the text box, and makes the title bold.