filmov
tv
DrWedding VB16 (Visual Basic) - Pictures, Sounds, and Embedded Resources (FYI - It is super easy)
![preview_player](https://i.ytimg.com/vi/QJ-eRV_cXPo/maxresdefault.jpg)
Показать описание
This video easily explains (and demonstrates) how to embed pictures and sounds into a Visual Basic project. These images and sounds are used with the random number generator to roll some dice. It is done without arrays and with arrays - take your pick.
Just for fun, the code that rolls the dice is put inside of a loop and a delay using My.Application.DoEvents() and System.Threading.Thread.Sleep(100) makes the faces of the dice flicker by like the dice are tumbling. These skills can easily and quickly converted into a slot machine program! Or, if you want to, you can convert the dice roll into a game of Craps.
As with all the videos in this series, the video starts with an Introductory Power Point presentation of what is going to be covered in this video. Next, multiple examples are written and demonstrated using Visual Basic. Finally, a Power Point presentation is used to review the major topics.
Just for fun, the code that rolls the dice is put inside of a loop and a delay using My.Application.DoEvents() and System.Threading.Thread.Sleep(100) makes the faces of the dice flicker by like the dice are tumbling. These skills can easily and quickly converted into a slot machine program! Or, if you want to, you can convert the dice roll into a game of Craps.
As with all the videos in this series, the video starts with an Introductory Power Point presentation of what is going to be covered in this video. Next, multiple examples are written and demonstrated using Visual Basic. Finally, a Power Point presentation is used to review the major topics.