If the validation is successful, the button receives focus, but the Click event is not fired.
If I click the button, the textbox validation fires.
I added some code behind to switch the view to a two column view with a table width of 400px before it sends out the email.
I want to bind some of the controls on infopath form of List1 to List2 fields such that when the user enters the values, these values would be saved in List2 and when the user want to edit the data of List1, the values can be retrieved from List2 on Form Load.
Resume Layout(False) End Sub#End Region Private Sub Button1_Click(By Val sender As System. Private Sub Text Box1_Validating(By Val sender As Object, By Val e As System.
The button has Causes Validation=True): Private Sub Textbox Validating(By Val sender As Object, By Val e As System. I still have the problem that if I want to give my users the choice to continue or cancel as in the following example, I can't.
Here's everything in the project : Public Class Form1 Inherits System. New() 'This call is required by the Windows Form Designer. Initialize Component() 'Add any initialization after the Initialize Component() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose(By Val disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components. Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System. IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. When I open the email and set it to a full screen viewing window (1440X900) the area that takes up the form exceeds the width of my viewing window and requires scroll bars to see all the fields on the form.When printing the form from my email the area is so large that no data will show up in the printable area (it appears to be centered on the form and it is cutting off the "extra content" to the left and right which contains the form data as the user entered it).