Click here to Skip to main content
15,892,575 members
Articles / Desktop Programming / Win32

Inter-Process Communication (IPC) Introduction and Sample Code

Rate me:
Please Sign up or sign in to vote.
4.91/5 (57 votes)
19 Dec 2009Ms-PL8 min read 251.5K   12.2K   195  
This article will cover general IPC technologies in All-In-One Code Framework. The IPC technologies include Named Pipes, File Mapping, MailSlot, etc.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class VBActiveXCtrl
    Inherits System.Windows.Forms.UserControl

    'UserControl 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.label1 = New System.Windows.Forms.Label
        Me.label2 = New System.Windows.Forms.Label
        Me.lbFloatProperty = New System.Windows.Forms.Label
        Me.tbMessage = New System.Windows.Forms.TextBox
        Me.bnMessage = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'label1
        '
        Me.label1.AutoSize = True
        Me.label1.Location = New System.Drawing.Point(8, 9)
        Me.label1.Name = "label1"
        Me.label1.Size = New System.Drawing.Size(73, 13)
        Me.label1.TabIndex = 1
        Me.label1.Text = "VBActiveXCtrl"
        '
        'label2
        '
        Me.label2.AutoSize = True
        Me.label2.Location = New System.Drawing.Point(8, 35)
        Me.label2.Name = "label2"
        Me.label2.Size = New System.Drawing.Size(72, 13)
        Me.label2.TabIndex = 2
        Me.label2.Text = "FloatProperty:"
        '
        'lbFloatProperty
        '
        Me.lbFloatProperty.AutoSize = True
        Me.lbFloatProperty.Location = New System.Drawing.Point(86, 35)
        Me.lbFloatProperty.Name = "lbFloatProperty"
        Me.lbFloatProperty.Size = New System.Drawing.Size(13, 13)
        Me.lbFloatProperty.TabIndex = 3
        Me.lbFloatProperty.Text = "0"
        '
        'tbMessage
        '
        Me.tbMessage.Location = New System.Drawing.Point(11, 61)
        Me.tbMessage.Name = "tbMessage"
        Me.tbMessage.Size = New System.Drawing.Size(153, 20)
        Me.tbMessage.TabIndex = 4
        '
        'bnMessage
        '
        Me.bnMessage.Location = New System.Drawing.Point(170, 59)
        Me.bnMessage.Name = "bnMessage"
        Me.bnMessage.Size = New System.Drawing.Size(75, 23)
        Me.bnMessage.TabIndex = 5
        Me.bnMessage.Text = "MSGBOX"
        Me.bnMessage.UseVisualStyleBackColor = True
        '
        'VBActiveXCtrl
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.Controls.Add(Me.bnMessage)
        Me.Controls.Add(Me.tbMessage)
        Me.Controls.Add(Me.lbFloatProperty)
        Me.Controls.Add(Me.label2)
        Me.Controls.Add(Me.label1)
        Me.Name = "VBActiveXCtrl"
        Me.Size = New System.Drawing.Size(256, 95)
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Private WithEvents label1 As System.Windows.Forms.Label
    Private WithEvents label2 As System.Windows.Forms.Label
    Private WithEvents lbFloatProperty As System.Windows.Forms.Label
    Private WithEvents tbMessage As System.Windows.Forms.TextBox
    Private WithEvents bnMessage As System.Windows.Forms.Button

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 Microsoft Public License (Ms-PL)


Written By
China China
Microsoft All-In-One Code Framework delineates the framework and skeleton of Microsoft development techniques through typical sample codes in three popular programming languages (Visual C#, VB.NET, Visual C++). Each sample is elaborately selected, composed, and documented to demonstrate one frequently-asked, tested or used coding scenario based on our support experience in MSDN newsgroups and forums. If you are a software developer, you can fill the skeleton with blood, muscle and soul. If you are a software tester or a support engineer like us, you may extend the sample codes a little to fit your specific test scenario or refer your customer to this project if the customer's question coincides with what we collected.
http://cfx.codeplex.com/

Comments and Discussions