Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone, I decided nevertheless to create a thread in the forum as well as a question, it seems to me interesting.
So. VB.Net, Windows Forms. I would like to make my Controll as a spoiler, which are used on forums to hide / deployment of the text.

"Skeleton" spoiler is visible on the link

Spoiler - 288x158[^]

Now a question: How to make so that it was possible in the text property of Label1 paste text?
Thank you for attention! Bricks in my party are welcome :)
P.S. Sorry fo my English. Its Google Translate :)

What I have tried:

So I decided to disclosure and closing the spoiler:

VB
Private Sub MoreBtn_Click(sender As Object, e As EventArgs) Handles MoreBtn.Click
        If Tag = 0 Then
            Tag = 1
            SpoilerText.Size = New Size(250, 80)
            MoreBtn.Location = New Point(184, 110)
        Else
            Tag = 1
            SpoilerText.Size = New Size(250, 20)
            MoreBtn.Location = New Point(190, 35)
            Tag = 0
 
            GoTo a
        End If
 
a:
 
    End Sub
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900