Question

hello everyone !

I am making an app in vb to distribute it in windows store, but I'm having a problem.

I've put a button and picture box which named ((image1)) so when click the button the picture box will hide.

what I know the code must be like that:

 Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        image1.visible = false
End Sub

i tried this in vs for windows desktop and it's works. but when i try this in vs for windows 8 it tells me Error 1 'visible' is not a member of 'Windows.UI.Xaml.Controls.Image'.

please help i have a project just this little bit and it will done. thanks.

Was it helpful?

Solution

A day and no answers, but i found the solution...

All you must do is replace visible=false with visibility = windows.UI.Xaml.visibility.collapsed or with windows.UI.Xaml.visibility.visible and it's all done...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top