Click here to Skip to main content
12,747,448 members (38,508 online)
Click here to Skip to main content


111 bookmarked
Posted 14 Sep 2003

Balloon Tips Galore!

, 14 Sep 2003
An article describing the various forms of Balloon Tips
Public Class Form3
    Inherits System.Windows.Forms.Form

    Private m_eb As EditBalloon = New EditBalloon

#Region " Windows Form Designer generated code "

    Public Sub New()


        'This call is required by the Windows Form Designer.

        'Add any initialization after the InitializeComponent() call
        m_eb.Title = "FMS Edit tip Warning"
        m_eb.TitleIcon = TooltipIcon.Warning
        m_eb.Text = "This character is invalid. " + vbCrLf + "No |, ~ are allowed." + vbCrLf + "'Do Something' may or may not work correctly."
        m_eb.Parent = Me.textBox1

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
            End If
        End If
    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.
    Friend WithEvents button1 As System.Windows.Forms.Button
    Friend WithEvents label1 As System.Windows.Forms.Label
    Friend WithEvents textBox1 As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.button1 = New System.Windows.Forms.Button
        Me.label1 = New System.Windows.Forms.Label
        Me.textBox1 = New System.Windows.Forms.TextBox
        Me.button1.Location = New System.Drawing.Point(128, 56)
        Me.button1.Name = "button1"
        Me.button1.Size = New System.Drawing.Size(96, 23)
        Me.button1.TabIndex = 5
        Me.button1.Text = "Do Something"
        Me.label1.Location = New System.Drawing.Point(8, 8)
        Me.label1.Name = "label1"
        Me.label1.Size = New System.Drawing.Size(160, 40)
        Me.label1.TabIndex = 4
        Me.label1.Text = "Try entering invalid characters |, ~ in the textbox below ."
        Me.textBox1.Location = New System.Drawing.Point(8, 56)
        Me.textBox1.Name = "textBox1"
        Me.textBox1.Size = New System.Drawing.Size(112, 20)
        Me.textBox1.TabIndex = 3
        Me.textBox1.Text = "textBox1"
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(240, 94)
        Me.Name = "Form3"
        Me.Text = "Form3"

    End Sub

#End Region

    Private Sub textBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textBox1.KeyPress
        '' TODO : handle similar logic for Ctrl+C, Ctrl+V

        If (e.KeyChar = "|"c Or e.KeyChar = "~"c) Then
        End If

    End Sub
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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Ramesh Shrivastav
Web Developer
United States United States
Ramesh is very much into Microsoft technologies, and silently marvels at the power of Windows SDK.
He juggles his time between his family, work and his computer.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170215.1 | Last Updated 15 Sep 2003
Article Copyright 2003 by Ramesh Shrivastav
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid