목차
비쥬얼 베이직으로 만든 달력입니다.
본문내용
= 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 16
Left = 2880
TabIndex = 18
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 15
Left = 1560
TabIndex = 17
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 14
Left = 240
TabIndex = 16
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 13
Left = 8160
TabIndex = 15
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 12
Left = 6840
TabIndex = 14
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 11
Left = 5520
TabIndex = 13
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 10
Left = 4200
TabIndex = 12
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 9
Left = 2880
TabIndex = 11
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 8
Left = 1560
TabIndex = 10
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 7
Left = 240
TabIndex = 9
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "토"
Height = 495
Index = 6
Left = 8160
TabIndex = 8
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "금"
Height = 495
Index = 5
Left = 6840
TabIndex = 7
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "목"
Height = 495
Index = 4
Left = 5520
TabIndex = 6
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "수"
Height = 495
Index = 3
Left = 4200
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "화"
Height = 495
Index = 2
Left = 2880
TabIndex = 4
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "월"
Height = 495
Index = 1
Left = 1560
TabIndex = 3
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "일"
Height = 495
Index = 0
Left = 240
TabIndex = 2
Top = 960
Width = 1215
End
Begin VB.ComboBox Combo2
Height = 300
Left = 6840
TabIndex = 1
Text = "Combo2"
Top = 360
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
Left = 5520
TabIndex = 0
Text = "Combo1"
Top = 360
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Dim fd As Variant
Dim fd1 As Variant
Private Sub Combo1_Click()
Call a
End Sub
Private Sub Combo2_Click()
Call a
End Sub
Private Sub Form_Load()
For i = Year(Now) - 5 To Year(Now) + 5
Combo1.AddItem i
Next
For i = 1 To 12
Combo2.AddItem i
Next
Combo1.Text = Year(Now)
Combo2.Text = Month(Now)
End Sub
Public Sub a()
For i = 7 To 48
Command1(i).Caption = ""
Next
fd = Combo1.Text & "-" & Combo2.Text & "-" & "01"
fd1 = Format(fd, "w")
'Print fd1
'Print Format(DateAdd("d", -1, DateAdd("m", 1, fd)), "dd")
For i = 1 To Format(DateAdd("d", -1, DateAdd("m", 1, fd)), "dd")
Command1(i + (fd1 - 2) + 7).Caption = i
Next
End Sub
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 16
Left = 2880
TabIndex = 18
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 15
Left = 1560
TabIndex = 17
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 14
Left = 240
TabIndex = 16
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 13
Left = 8160
TabIndex = 15
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 12
Left = 6840
TabIndex = 14
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 11
Left = 5520
TabIndex = 13
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 10
Left = 4200
TabIndex = 12
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 9
Left = 2880
TabIndex = 11
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 8
Left = 1560
TabIndex = 10
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Height = 495
Index = 7
Left = 240
TabIndex = 9
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "토"
Height = 495
Index = 6
Left = 8160
TabIndex = 8
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "금"
Height = 495
Index = 5
Left = 6840
TabIndex = 7
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "목"
Height = 495
Index = 4
Left = 5520
TabIndex = 6
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "수"
Height = 495
Index = 3
Left = 4200
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "화"
Height = 495
Index = 2
Left = 2880
TabIndex = 4
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "월"
Height = 495
Index = 1
Left = 1560
TabIndex = 3
Top = 960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "일"
Height = 495
Index = 0
Left = 240
TabIndex = 2
Top = 960
Width = 1215
End
Begin VB.ComboBox Combo2
Height = 300
Left = 6840
TabIndex = 1
Text = "Combo2"
Top = 360
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
Left = 5520
TabIndex = 0
Text = "Combo1"
Top = 360
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Dim fd As Variant
Dim fd1 As Variant
Private Sub Combo1_Click()
Call a
End Sub
Private Sub Combo2_Click()
Call a
End Sub
Private Sub Form_Load()
For i = Year(Now) - 5 To Year(Now) + 5
Combo1.AddItem i
Next
For i = 1 To 12
Combo2.AddItem i
Next
Combo1.Text = Year(Now)
Combo2.Text = Month(Now)
End Sub
Public Sub a()
For i = 7 To 48
Command1(i).Caption = ""
Next
fd = Combo1.Text & "-" & Combo2.Text & "-" & "01"
fd1 = Format(fd, "w")
'Print fd1
'Print Format(DateAdd("d", -1, DateAdd("m", 1, fd)), "dd")
For i = 1 To Format(DateAdd("d", -1, DateAdd("m", 1, fd)), "dd")
Command1(i + (fd1 - 2) + 7).Caption = i
Next
End Sub
추천자료
비쥬얼베이직-버블정렬,선택정렬,삽입정렬
비쥬얼베이직을 이용해서 신 야구게임 만들어서 A+ 받았습니다.
(비쥬얼베이직) 도형을 그리고 색변화, 크기변화, 위치변화 를 할수 있는 프로그램입니다.
비쥬얼베이직을이용한데이터계산프로그램
비쥬얼베이직 이미지 움직이기 프로그램
비쥬얼베이직 로또 추첨 프로그램
< 비주얼베이직 > 비쥬얼베이직 - 객체지향 프로그래밍 개념정리 & 응용
비쥬얼베이직 학생관리소스
비주얼베이직[비베][비쥬얼베이직] 6.0 프로젝트용 타자게임 프로그램
비주얼베이직[비베][비쥬얼베이직] 6.0 프로젝트용 DB연동 쇼핑몰 상품관리 프로그램