Click here to Skip to main content
15,886,864 members
Articles / Programming Languages / Visual Basic

Passing WCF Transactions to COM+

Rate me:
Please Sign up or sign in to vote.
4.89/5 (2 votes)
28 Aug 2012CPOL4 min read 19.3K   165   7  
This article provides a program to demonstrate how to pass WCF transactions to COM+.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.ButtonTestBL = New System.Windows.Forms.Button()
        Me.MenuStrip1 = New System.Windows.Forms.MenuStrip()
        Me.ToolStripMenuItemFile = New System.Windows.Forms.ToolStripMenuItem()
        Me.ToolStripMenuItemRecreateTable = New System.Windows.Forms.ToolStripMenuItem()
        Me.ToolStripMenuItemOptions = New System.Windows.Forms.ToolStripMenuItem()
        Me.ToolStripMenuItemFillTestSuite = New System.Windows.Forms.ToolStripMenuItem()
        Me.ButtonTestWS = New System.Windows.Forms.Button()
        Me.TextBox1 = New System.Windows.Forms.TextBox()
        Me.MenuStrip1.SuspendLayout()
        Me.SuspendLayout()
        '
        'ButtonTestBL
        '
        Me.ButtonTestBL.Location = New System.Drawing.Point(1, 27)
        Me.ButtonTestBL.Name = "ButtonTestBL"
        Me.ButtonTestBL.Size = New System.Drawing.Size(62, 23)
        Me.ButtonTestBL.TabIndex = 0
        Me.ButtonTestBL.Text = "Test BL"
        Me.ButtonTestBL.UseVisualStyleBackColor = True
        '
        'MenuStrip1
        '
        Me.MenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItemFile, Me.ToolStripMenuItemOptions})
        Me.MenuStrip1.Location = New System.Drawing.Point(0, 0)
        Me.MenuStrip1.Name = "MenuStrip1"
        Me.MenuStrip1.Size = New System.Drawing.Size(414, 24)
        Me.MenuStrip1.TabIndex = 74
        Me.MenuStrip1.Text = "MenuStrip1"
        '
        'ToolStripMenuItemFile
        '
        Me.ToolStripMenuItemFile.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItemRecreateTable})
        Me.ToolStripMenuItemFile.Name = "ToolStripMenuItemFile"
        Me.ToolStripMenuItemFile.Size = New System.Drawing.Size(35, 20)
        Me.ToolStripMenuItemFile.Text = "File"
        '
        'ToolStripMenuItemRecreateTable
        '
        Me.ToolStripMenuItemRecreateTable.Name = "ToolStripMenuItemRecreateTable"
        Me.ToolStripMenuItemRecreateTable.Size = New System.Drawing.Size(145, 22)
        Me.ToolStripMenuItemRecreateTable.Text = "Recreate table"
        Me.ToolStripMenuItemRecreateTable.ToolTipText = "Recreates table Items on db."
        '
        'ToolStripMenuItemOptions
        '
        Me.ToolStripMenuItemOptions.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItemFillTestSuite})
        Me.ToolStripMenuItemOptions.Name = "ToolStripMenuItemOptions"
        Me.ToolStripMenuItemOptions.Size = New System.Drawing.Size(56, 20)
        Me.ToolStripMenuItemOptions.Text = "Options"
        '
        'ToolStripMenuItemFillTestSuite
        '
        Me.ToolStripMenuItemFillTestSuite.Name = "ToolStripMenuItemFillTestSuite"
        Me.ToolStripMenuItemFillTestSuite.Size = New System.Drawing.Size(134, 22)
        Me.ToolStripMenuItemFillTestSuite.Text = "Fill test suite"
        Me.ToolStripMenuItemFillTestSuite.ToolTipText = "For each of the data access classes, creates an SQL statement."
        '
        'ButtonTestWS
        '
        Me.ButtonTestWS.Location = New System.Drawing.Point(69, 27)
        Me.ButtonTestWS.Name = "ButtonTestWS"
        Me.ButtonTestWS.Size = New System.Drawing.Size(62, 23)
        Me.ButtonTestWS.TabIndex = 75
        Me.ButtonTestWS.Text = "Test WS"
        Me.ButtonTestWS.UseVisualStyleBackColor = True
        '
        'TextBox1
        '
        Me.TextBox1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
                    Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.TextBox1.Location = New System.Drawing.Point(1, 56)
        Me.TextBox1.Multiline = True
        Me.TextBox1.Name = "TextBox1"
        Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both
        Me.TextBox1.Size = New System.Drawing.Size(413, 64)
        Me.TextBox1.TabIndex = 76
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(414, 120)
        Me.Controls.Add(Me.TextBox1)
        Me.Controls.Add(Me.ButtonTestWS)
        Me.Controls.Add(Me.MenuStrip1)
        Me.Controls.Add(Me.ButtonTestBL)
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.MenuStrip1.ResumeLayout(False)
        Me.MenuStrip1.PerformLayout()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents ButtonTestBL As System.Windows.Forms.Button
    Friend WithEvents MenuStrip1 As System.Windows.Forms.MenuStrip
    Friend WithEvents ToolStripMenuItemFile As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ToolStripMenuItemRecreateTable As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ToolStripMenuItemOptions As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ToolStripMenuItemFillTestSuite As System.Windows.Forms.ToolStripMenuItem
    Friend WithEvents ButtonTestWS As System.Windows.Forms.Button
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Unisystems
Greece Greece
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions