Spectre Posted February 13, 2003 Posted February 13, 2003 (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 February 13, 2003 by divil Quote
Moderators Robby Posted February 13, 2003 Moderators Posted February 13, 2003 Do you want to resize the form or the label? Quote Visit...Bassic Software
Spectre Posted February 17, 2003 Author Posted February 17, 2003 Well, I`m not sure if I know what you mean, but I guess any of them would do. Quote
hellojunk007 Posted February 17, 2003 Posted February 17, 2003 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. Quote
Spectre Posted February 18, 2003 Author Posted February 18, 2003 Ok, thanx. I`ve got it to work now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.