This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | |
<title>Mana viesu grāmata</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Form1 | |
Private Sub UpdoSelector_ValueChanged(sender As Object, e As EventArgs) Handles updoSelector.ValueChanged | |
If updoSelector.Value <= 100 And updoSelector.Value >= 0 Then | |
progProgress.Value = updoSelector.Value | |
End If | |
End Sub | |
Private Sub ButnStart_Click(sender As Object, e As EventArgs) Handles butnStart.Click | |
Timer1.Start() | |
Timer2.Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Form1 | |
Private Sub CheckEnable_CheckedChanged(sender As Object, e As EventArgs) Handles checkEnable.CheckedChanged | |
If checkEnable.Checked Then | |
butnImportant.Enabled = True | |
Else | |
butnImportant.Enabled = False | |
End If | |
End Sub | |
Private Sub RadioEnable_CheckedChanged(sender As Object, e As EventArgs) Handles radioEnable.CheckedChanged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Form1 | |
Private Sub ButnRight_Click(sender As Object, e As EventArgs) Handles butnRight.Click | |
pboxObject.Left = pboxObject.Left + 5 | |
lablLeftDist.Text = pboxObject.Left | |
lablTopDist.Text = pboxObject.Top | |
End Sub | |
Private Sub ButnLeft_Click(sender As Object, e As EventArgs) Handles butnLeft.Click | |
pboxObject.Left -= 5 | |
lablLeftDist.Text = pboxObject.Left |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub start_Click() | |
Dim ws As Worksheet | |
Dim blink_counter As Integer | |
Set ws = Application.ThisWorkbook.Worksheets("street_lights") | |
Do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub start_Click() | |
Dim ws As Worksheet | |
Dim arr_sec As Shape | |
Dim arr_min As Shape | |
Dim r, g, b As Integer | |
Dim seconds_counter As Integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub button_start_Click() | |
Dim ws As Worksheet | |
Dim fixed_timer As Double | |
Dim blink_counter As Integer | |
Set ws = Application.ThisWorkbook.Worksheets("traffic_lights") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ButtonStart_Click() | |
Dim wb As Workbook | |
Dim ws As Worksheet | |
Dim arrow_seconds As Shape | |
Dim time_counter As Integer | |
Dim arrow_minutes As Shape | |
Dim new_time As Double | |
Set wb = Application.ThisWorkbook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub FallingBall() | |
Dim wb As Workbook | |
Dim ws As Worksheet | |
Dim ball As Shape | |
Dim ground As Shape | |
Dim i As Integer | |
Set wb = Application.ThisWorkbook | |
Set ws = wb.Worksheets("canvas") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Sub butnClose_Click() | |
Unload formColorShapes | |
End Sub | |
Private Sub butnColorRandom_Click() |