Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

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:

 

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

Edited by divil
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...