1 / 6

Виртуальное казино

Виртуальное казино. Счастливая семерка. Создаём объекты. Настройки:. Для формы применить заливку BackColor Для label применить размер шрифта - Font Для label цвет шрифта - ForeColor Для картинки установить свойство visible- false

mae
Download Presentation

Виртуальное казино

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Виртуальное казино Счастливая семерка

  2. Создаём объекты

  3. Настройки: • Для формы применить заливку BackColor • Для label применить размер шрифта - Font • Для label цвет шрифта - ForeColor • Для картинки установить свойство visible- false Для кнопок «старт» и «выход»установитьсвойство –tabstop - false

  4. Код для кнопки «Старт» • Label1.Text = Int(Rnd() * 10) • Label2.Text = Int(Rnd() * 10) • Label3.Text = Int(Rnd() * 10) • If Label1.Text = 7 And Label2.Text = 7 And Label3.Text = 7 Then • Label4.Text = "Поздравляю! Вы выиграли" • PictureBox1.Visible = True • Button1.Enabled = False • End If

  5. Код для кнопки «Выход» • Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click • End • End Sub

  6. Скомпилировать файл • My project – приложение – имя сборки • Компилировать – выходной путь построения • Опубликовать

More Related