Osobine FORMA Name frmIgra Caption Igra Command1 Name cmdSmanji

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

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,
Warm Up Example 1 Check whether the ordered pair is a solution of 2x – 3y > -2 a.(0,0) 2(0)-3(0)> -2 0> -2 True b.(0,1) 2(0)-3(1)> -2 -3> -2 False.
VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
The IfTest and Case Statement1 The IF Test A conditional statement that permits portions of code to be executed only if and when some special condition.
The "if structure" is used to execute statement(s) only if the given condition is satisfied.
X=0 x
Mark Dixon, SoCCE SOFT 136Page 1 02 – Software Development Life-Cycle.
Section 4.2: Functions that Test Conditions (continued)
Introducing More Controls Text boxCheck box Option button Command button frame image.
The Initial Visual Basic Screen
Multiple Forms We’ve been designing projects with single forms Very easy to add new forms to your project if needed A form to load data from a file into.
True/False. False True Subject May Go Here True / False ? Type correct answer here. Type incorrect answer here.
VB Controls and Events Week 7: Picture Box, Image Box, Option, Check box, Mouse over, Frames, Shapes.
Mark Dixon, SoCCE SOFT 131Page 1 05 – Conditional Execution.
 x (x 2  0) 1. True2. False.  x (3x + 2 = 12) 1. True2. False.
The Visual Basic Integrated Development Environment.
Determine whether each curve below is the graph of a function of x. Select all answers that are graphs of functions of x:
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
Multimedia ! Graphics ! Animation ! Sound Tip Of the Day 4 Tip of the Day: When using graphic methods at Form Load, the AutoRedraw property of the container.
Week 4.  Recap – Ranges  For Each Loops  Ranges Referencing Range Objects  Set (keyword)
Arrays1 From time to time an object (a variable, a picture, a label or a command) does not serve as well as a set of objects of a similar kind addressed.
Standard Grade Programming using VB 1 Programming Visual Basic.
3.9 to  Also refer to as Program  Contains set of instructions that tells the computer how to perform specific task.  Each line of code is referred.
Notes on ADO from other projects Please use speaker notes for additional information!
More Form Tools Combo Box (displays a list) Check Box (yes/no) Frame (groups option buttons) Option Button (exclusive choice) Ref Edit (user selects cells)
Pay Example (PFirst98) Please use speaker notes for additional information!
Word Processor Version.2. Methods Visual Basic is –Object Oriented –Event Driven Objects –Properties –Methods.
Word Processor Version.01 EME 4411 Week 5. The Scroll Bars.
CECS 5020 Computers in Education Forms and Menus.
CheckBox i Option Button. Private Sub Command1_Click() Check1 = 1 If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If Check2 =
Title Category #1 Category #2 Category #3Category #
Dasar Komputer & Pemrograman 2B
Delete text and place photo here.
Standard Controls.
Factors, multiple, primes: Factors from prime factors
The Check Box Control Consists of a small square and a caption
البرمجة بلغة الفيجول بيسك ستوديو
Chapter 6 - Visual Basic Schneider
Who Wants To Be A Millionaire?
Chapter 2 Review Chapter 2 Test tomorrow!!!!!.
Name Not Precise Enough
Factors, multiple, primes: Prime factors
Drawing a Stick Figure!.
True or False: {image} is one-to-one function.
SEMAFOR.
CheckBox i Option Button
Data Types List Box Combo Box Checkbox Option Box Visual Basic 6.0
Find the reference angle for the angle measuring {image}
Bellwork Solve by graphing y < x + 2 y > -1/2x + 5.
True or False 1 2
Active-X Calendar Control
OptionButton, CheckBox компоненттері
OptionButton, CheckBox компоненттері
Work Breakdown Structure Tasks and Sub-Tasks
Systems of Linear Equations: An Introduction
© T Madas.
Composition & Inverses Review
Chapter 2 Sets Active Learning Lecture Slides
Inequalities TRUE FALSE.
Factors, multiple, primes: Multiples
Fractions: Simplifies to a unit fraction?
Standard Form: Multiplying powers of 10
If there is any case in which true premises lead to a false conclusion, the argument is invalid. Therefore this argument is INVALID.
Sub 範例 Sub F ( X ) MsgBox(X ^ 2 ) End Function
MENTAL MATH Here We Go….
Standard form: In standard form?
True or False True or False
Coordinates: Naming 2D coordinates – quadrant 1
If there is any case in which true premises lead to a false conclusion, the argument is invalid. Therefore this argument is INVALID.
Presentation transcript:

Osobine FORMA Name frmIgra Caption Igra Command1 Name cmdSmanji Smanji obrazac Command2 Name cmdPovecaj Caption Povecaj obrazac Command3 Name cmdPrikazi Caption Prikazi dugmad Command4 Name cmdCrveno Caption Crveni obrazac

Command5 Name cmdPlavo Caption Plavi obrazac Command6 Name cmdSkloni Caption Skloni dugmad Visible False

Prvo ćemo ispisati proceduru cmdSmanji_Click. U ovoj proceduri smanjujemo visinu i širinu obrasca. frmIgra.Height = frmIgra.Height – 500 frmIgra.Width = frmIgra. Width - 200 Procedura cmdPovecaj_Click povećava visinu i širinu obrasca. frmIgra.Height = frmIgra.Height + 1000 frmIgra.Width = frmIgra. Width + 1000

Private Sub cmdSmanji_Click() frmIgra.Height = frmIgra.Height - 500 frmIgra.Width = frmIgra.Width - 200 End Sub Private Sub cmdPovecaj_Click() frmIgra.Height = frmIgra.Height + 1000 frmIgra.Width = frmIgra.Width + 2000

cmdCrveno_Click menja boju pozadine obrasca u crvenu. frmIgra.BackColor = vbRed cmdPlavo_Click menja boju pozadine obrasca u plavu. frmIgra.BackColor = vbBlue

Private Sub cmdCrveno_Click() frmIgra.BackColor = vbRed End Sub Private Sub cmdPlavo_Click() frmIgra.BackColor = vbBlue

Private Sub cmdPrikazi_Click() cmdSkloni.Visible = True End Sub Private Sub cmdSkloni_Click() cmdSkloni.Visible = False