To write the code in C

• Click on the blue section at the top of Form1 to select the form. Click on the events icon in the Properties window to display available events for Form1. Double-click Load. This creates an event-handling method for the Form1_Load event.

The following example shows what the code for the method looks like:

[Visual Basic]

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handle; Dim ws As New localhost.ARDocumentWS() Me.Viewerl.Document.Content = ws.GetProductsReport() End Sub

private void Form1_Load(object sender, {

localhost.ARDocumentWSvb ws = this.viewerl.Document.Content

0 0

Post a comment