VB.NET - Changeopacity does not work

Asked

Viewed 36 times

1

When executing my code the following message appears to me: "BC30451 - Changeopacity is not declared. It may be inaccessible due to its level of protection." I’m making an effect on my picturebox(static_logo) so that it disappears little by little.

Public Class splashscreenspw
Private Sub Splashscreenspw_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    bootsound.URL = Application.StartupPath & "\" & "bootsound" & ".mp3"
    bootsound.Ctlcontrols.play()
End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
    ProgressBar1.Value += 1
    If ProgressBar1.Value = 15 Then
        static_logo.Visible = True
    End If
    If ProgressBar1.Value >= 16 Then
        static_logo.Image.Dispose()
        static_logo.Image = ChangeOpacity(My.Resources.bootscreen, 0.3)
    End If
    If ProgressBar1.Value = 30 Then
        Timer1.Dispose()
        Me.Hide()
        index.ShowDialog()
        Me.Close()
    End If
End Class

In case it is useful to visualize the problem, there goes an image of my form: inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.