본문 바로가기
반응형

vb .net강좌15

visual basic,비주얼베이직,vb .net강좌-썸네일클릭시 큰이미지보기,thumbnail image,viewer 위에 썸네일을 클릭하면 밑의 픽쳐박스에 큰이미지가 뜹니다.우측 위의 windowApplication 72 를 마우스 우측 클릭시 맨밑에 properties 를 클릭합니다. 썸네일 의 역삼각형을 클릭해서 choose image 와 size mode 를 설정합니다.. Public Class Form1 Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click PictureBox4.Image = My.Resources.a1 ' a1,a2,a3 는 이미지 이름 입니다. End Sub Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles .. 2017. 1. 30.
visual basic,비주얼베이직,vb .net강좌-팝업메뉴 사용하기,popup menu,ContextMenuStrip visual basic,비주얼베이직,vb .net강좌-팝업메뉴 사용하기,popup menu,ContextMenuStrip 반드시 위처럼 form 속성에 ContextMenuStrip 지정해줘야 합니다. 위에 메뉴를 클릭하면 click event 소스창으로 넘어갑니다. Public Class Form1 Private Sub FileToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles FileToolStripMenuItem.Click TextBox1.Text = "file" End Sub Private Sub CopyToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles CopyTo.. 2017. 1. 29.
visual basic,비주얼베이직,vb .net강좌- 마우스 클릭위치 /mouse click lotation.mouse down position Public Class Form1 Private Sub Form1_MouseClick(sender As Object, e As MouseEventArgs) Handles Me.MouseClick TextBox1.Text = e.X TextBox2.Text = e.Y End SubEnd Class 2017. 1. 28.
visual basic,비주얼베이직,vb .net강좌-auto slide image,PictureBox와 Timer를 이용 타이머와 버튼2개 픽쳐박스를 화면에 배치합니다. PictureBox 우측상단의 역삼각형을 클릭해서 image를 import 합니다. size mod는 StretchImage 로 위 그림처럼 Timer 셋팅을 합니다. Public Class Form1 Dim num As Integer = 1 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Select Case num Case 1 ' num 변수를 하나씩 + 해서 그림을 차례대로 보여줍니다. PictureBox1.Image = My.Resources.p1 num = 2 Case 2 PictureBox1.Image = My.Resources.p2 num = 3 Case.. 2017. 1. 28.
반응형