link label/dynamic window

Spectre

Newcomer
Joined
Feb 13, 2003
Messages
3
I have a problebm I can`t figure out..I`m currently making a form with a linklabel on it, I`m trying to get the form to get bigger in height and then show some text etc. in the part of the form which is not shown before I hit the linklabel...I know how to make it higher, but I don`t know how to make any text etc to be shown in the expanded area. Anyone...please help! Here`s what I`ve got:

Visual Basic:
Private Sub lnk_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnk.LinkClicked
        Dim LinkLabel1 As LinkLabel
        LinkLabel1 = New LinkLabel()
        LinkLabel1.LinkVisited = True
If Me.lnk.Text.ToString = "Søkealternativer >>" Then
            Me.lnk.Text = "Søkealternativer <<"
            Me.Height = Me.Height + 150
        Else
            Me.lnk.Text = "Søkealternativer >>"
            Me.Height = Me.Height - 150
        End If
 
Last edited by a moderator:
Add a label or textfield (or any control you want to display after clicking the linklabel) and set it's X or Y location (you can do it at design time) greater than the width or height of the window respectively.
 
Back
Top