-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmInfo.vb
More file actions
69 lines (52 loc) · 2.15 KB
/
frmInfo.vb
File metadata and controls
69 lines (52 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Imports System.ComponentModel
Public Class frmInfo
Private Sub frmInfo_Load(sender As Object, e As EventArgs) Handles MyBase.Load
txtChord.Text = CurrentChord
txtVals.Text = CurrentSemitones
txtNotes.Text = CurrentNotes
cbInt.SelectedIndex = frmTabTool.cbInt.SelectedIndex
cbKey.SelectedIndex = frmTabTool.cbKey.SelectedIndex
cbMode.SelectedIndex = frmTabTool.cbMode.SelectedIndex
chkOnTop.Checked = oOnTop
If oExpanded = True Then
Me.Height = 397
Me.Width = 454
cmdMaximize.Text = "Shrink"
Else
Me.Height = 125
Me.Width = 454
cmdMaximize.Text = "Expand"
End If
End Sub
Private Sub chkOnTop_CheckedChanged(sender As Object, e As EventArgs) Handles chkOnTop.CheckedChanged
Me.TopMost = chkOnTop.Checked
End Sub
Private Sub cmdMaximize_Click(sender As Object, e As EventArgs) Handles cmdMaximize.Click
If cmdMaximize.Text = "Expand" Then
Me.Height = 397
Me.Width = 454
cmdMaximize.Text = "Shrink"
ElseIf cmdMaximize.Text = "Shrink" Then
Me.Height = 125
Me.Width = 454
cmdMaximize.Text = "Expand"
End If
End Sub
Private Sub frmInfo_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
End Sub
Private Sub frmInfo_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
If e.CloseReason = CloseReason.UserClosing Then
e.Cancel = True
Hide()
End If
End Sub
Private Sub txtChord_TextChanged(sender As Object, e As EventArgs) Handles txtChord.TextChanged
Dim SplitChord() As String
SplitChord = Split(txtChord.Text, ",") 'st SplitChord(0) is the root
CurrentChord = txtChord.Text
End Sub
Private Sub txtNotes_TextChanged(sender As Object, e As EventArgs) Handles txtNotes.TextChanged
End Sub
Private Sub txtVals_TextChanged(sender As Object, e As EventArgs) Handles txtVals.TextChanged
End Sub
End Class