Проект – 10 класс VISUAL BASIC. Dim X1, X2, Y1, Y2, Rad, R, G, B As Byte, A1, A2, K As Single, C As Long Private Sub cmdScale_Click() ‘ Система координат.

Slides:



Advertisements
Similar presentations
Chapter 6 - VB 2005 by Schneider1 Do Loop Syntax Do While condition statement(s) Loop Condition is tested, If it is True, the loop is run. If it is False,
Advertisements

Sep-05 Slide:1 VBA in Excel Walter Milner. Sep-05 Slide:2 VBA in Excel Introduction VBA = Visual Basic for Applications Enables end-user programming In.
To use macros in this file… Reduce your security settings by changing Tools → Options → Security → Macro Security to Medium, and restart PowerPoint. Start.
9-6 Other Angles Thrm and examples. Examples EF is tangent to the circle A Measure of arc GB is 110 degrees Angle E is 30 degrees Measure of.
VBA for MS Excel Hamze Msheik. Open the Visual Basic Editor in Excel 2007 Click on the Microsoft Office button in the top left of the Excel window and.
Y A S O O B A L I b o r n o n 1 9 t h F e b r u a r y i n K a n p u r d i s t r i c t o f U t t a r P r a d e s h. H e s t a r t e d s i n g i.
Declaring and Using Variables Visual Basic Data Types.
Control Arrays. All the components in the Visual Basic toolbox are referred to as controls A control array is a group of controls of the same type that.
Programming Lecture #2 CS 101 Autumn 2007 Tariq Jadoon.
The Visual Basic Integrated Development Environment.
Chapter 31 Fundamentals of Programming in VB(Continue I) Numbers Arithmetic Operations Variables Incrementing the Value of a Variable.
Arrays. What is the output of: Private Sub cmdButton_Click() Dim i As Integer, a(1 To 4) As integer Open "DATA.TXT" For Input As #1 For i = 1 To 4 Input.
Function.
Variable, Expressions, Statements and Operators By: Engr. Faisal ur Rehman CE-105 Fall 2007.
Microsoft Access Using Visual Basic Routines. Visual Basic Datatypes Boolean Byte Currency Date Double Integer Long Object Single String Variant Hyperlink.
Lecture 8 Visual Basic (2).
Statements That Repeat. For...Next Loop Structure For counter = start To end Step increment statements Next counter Where Counter is tested to see if.
CSC 162 Visual Basic I Programming. Array Parameters and Sorting Array Parameters –Entire Arrays –Individual Elements Sorting –Bubble Sort.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
1 Advanced Computer Programming Lab Calculator Project.
Pay Example (PFirst98) Please use speaker notes for additional information!
Starter Questions 42 o. Visual Times Tables Click on each circles to view the times tables 2x 3x 4x 5x 6x 7x 8x 9x 10x.
Visual Basic I/O Programs (ProjRead1, ProjRead2, ProjWrite1, ProjPay) Please use speaker notes for additional information!
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
Using force meters Click on the type of force meter that you are going to use.
1 Microsoft® Visual Basic®.NET Language # 2. 2 Flow-Control Statements If … End If Select Case … End Select For… Next Do … Loop Exit.
Scrollbar1 The Scrollbar A final tool in the toolbox is the scrollbar. There are two of them, one ordered horizontally and the other vertically, both do.
VB 4 Controls Scrollbar Radio button check box listboxes timers control arrays.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
General Procedures Chapter 4. Different Procedures 4.1 Sub Procedures, Part I 4.2 Sub Procedures, Part II 4.3 Function Procedures 4.4 Modular Design (not.
Unit Circle Review Degrees and Radians.
CHOOSE 1 OF THESE.
CSC 162 Visual Basic I Programming. Storage Classes Determines the “lifetime” of an identifier Types: –Automatic Default Memory is allocated for the variable.
Ch. 101 DataTable (Continue) Lab sheet 10.3: Form Display Cities table along with percentage growth.
Radians. Definition A radian is the angle that is subtended (cut out) at the center of the unit circle when the radius length and the arc length are equal.
The Testing Process II1 Program Testing Programs must be tested carefully in order to ensure that they work as planned. Testing is not a casual thing.
THE MOUSE Left Click THE MOUSE Right Click.
How to Planning a Trip Via Road from Brisbane to Cairns
Spokane Used Car Dealers -
FIN 324 Week 1 DQ 7 What is a Sub S type of business? To purchase this material click below link 324/FIN-324-Week-1-DQ-7.
A variable is a name for a value stored in memory.
Starter Questions 42o.
Delete text and place photo here.
Click here for the answer. Click here for the answer.
Click here for the answer. Click here for the answer.
Click here for the answer. Click here for the answer.
للمزيد زورونا على موقعنا الإلكتروني:
The Check Box Control Consists of a small square and a caption
Department Array in Visual Basic
Click to place title Sub title
Gradient Type 1 Gradient stops: 5 Stop #: 1 Position: 0
Start the Installation Manager by clicking:
Data Types List Box Combo Box Checkbox Option Box Visual Basic 6.0
Excel – VBA TypeMismatch (Error 13) on OpenRecordset Method Call
Work Breakdown Structure Tasks and Sub-Tasks
Starter Questions 42o.
Starter Questions 42o.
Starter Questions 42o.
Refresh: Click Here.
Visual Basic and File Streaming
CLICK TO START.
CLICK TO START.
Circle Map Learning how to visually represent the thought process of Defining in Context Created by Therese Duffy 2011.
Repetition - Counting and Accumulating
Sub 範例 Sub F ( X ) MsgBox(X ^ 2 ) End Function
Call Now : Click : -
Call Now : Click : -
Call Now : Click : -
Presentation transcript:

Проект – 10 класс VISUAL BASIC

Dim X1, X2, Y1, Y2, Rad, R, G, B As Byte, A1, A2, K As Single, C As Long Private Sub cmdScale_Click() ‘ Система координат picPaint.Scale (0, 100)-(100, 0) End Sub Private Sub cmdPoint_Click()

‘ Точка X1 = Val(txtX1) Y1 = Val(txtY1) R = Val(txtR): G = Val(txtG): B = Val(txtB): C = RGB(R, G, B) picPaint.PSet (X1, Y1), C End Sub Private Sub cmdLine_Click()

‘ Линия X1 = Val(txtX1) Y1 = Val(txtY1) X2 = Val(txtX2) Y2 = Val(txtY2) R = Val(txtR): G = Val(txtG): B = Val(txtB): C = RGB(R, G, B) picPaint.Line (X1, Y1)-(X2, Y2), C End Sub

Private Sub cmdLineB_Click() ‘ Прямоугольник X1 = Val(txtX1) Y1 = Val(txtY1) X2 = Val(txtX2) Y2 = Val(txtY2) R = Val(txtR): G = Val(txtG): B = Val(txtB): C = RGB(R, G, B) picPaint.Line (X1, Y1)-(X2, Y2), C, B End Sub Private Sub cmdLineBF_Click()

‘ Закрашенный прямоугольник X1 = Val(txtX1) Y1 = Val(txtY1) X2 = Val(txtX2) Y2 = Val(txtY2) R = Val(txtR): G = Val(txtG): B = Val(txtB): C = RGB(R, G, B) picPaint.Line (X1, Y1)-(X2, Y2), C, BF End Sub

Private Sub cmdCircle_Click() ‘ Окружность X1 = Val(txtX1) Y1 = Val(txtY1) Rad = Val(txtRad) A1 = Val(txtA1) A2 = Val(txtA2) K = Val(txtK) R = Val(txtR): G = Val(txtG): B = Val(txtB): C = RGB(R, G, B) picPaint.Circle (X1, Y1), Rad, C, A1, A2, K End Sub Private Sub txtCls_Click()

‘ Очистка picPaint.Cls End Sub