The posts in this thread are shocking. People who question if a post is a homework are 99% of the time new programmers who hide behind th fact they cannot give an answer. ABitOffTheTop comment is one of the worst pointless replies I have seen in my 20+ years of programming. I have never seen such a stupid reply saying "left a bug". Ignoring the fact the code is terrible. What that translates to is "Iv posted you an example but it does not quite work, so I will pretend I am giving you a task" Urgh just urgh. If you can't help a user don't. "Still cheating though", what with that crap?
Ignoring this typical crap help from members who have likely been writing Visual Basic a couple weeks lets focus on a few issues.
Public Class Form1
Private Shared ReadOnly Rng As New Random
Private Sub Button1_Click() Handles Button1.Click
Dim isHeads = Rng.Next() Mod 2 = 0
PictureBox1.Visible = isHeads
PictureBox2.Visible = Not isHeads
' now what is the next steps?
End Sub
End Class
2
u/1d3nt Oct 24 '19
The posts in this thread are shocking. People who question if a post is a homework are 99% of the time new programmers who hide behind th fact they cannot give an answer. ABitOffTheTop comment is one of the worst pointless replies I have seen in my 20+ years of programming. I have never seen such a stupid reply saying "left a bug". Ignoring the fact the code is terrible. What that translates to is "Iv posted you an example but it does not quite work, so I will pretend I am giving you a task" Urgh just urgh. If you can't help a user don't. "Still cheating though", what with that crap?
Ignoring this typical crap help from members who have likely been writing Visual Basic a couple weeks lets focus on a few issues.
Public Class Form1