Else. End If End Sub End Class. PDF created with pdffactory trial version

Similar documents
Mr.Khaled Anwar ( )

Visual Basic: Opdracht Structuur

DO NOT COPY AMIT PHOTOSTUDIO

S.2 Computer Literacy Question-Answer Book

Revision for Final Examination (Second Semester) Grade 9

Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1

VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS

Objectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism

超音波モータ制御プログラムの作成 (v1.2.1)

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol

Form Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.

In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.

FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources

Interacting with External Applications

IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants

Learning VB.Net. Tutorial 10 Collections

My first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM

Radius= 10 cm, Color= Red, Weight= 200g, X= 3m, Y= 5m, Z= 2m. Radius= 10 cm, Color= Blue, Weight= 200g, X= 3m, Y= 5m, Z= 0m

"!#... )*! "!# )+, -./ 01 $

A Complete Tutorial for Beginners LIEW VOON KIONG

VB.NET Programs. ADO.NET (insert, update, view records)

DRAWING AND MOVING IMAGES

Serial-out Color Sensor. Overview. Features

LAMPIRAN. Universitas Sumatera Utara

WEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.

โปรแกรมช วยทดสอบหม อแปลงกระแส

To enter the number in decimals Label 1 To show total. Text:...

LAMPIRAN A: Listing Program

Learning VB.Net. Tutorial 19 Classes and Inheritance

Programming with Visual Studio Higher (v. 2013)

COPYRIGHTED MATERIAL. Taking Web Services for a Test Drive. Chapter 1. What s a Web Service?

フラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M.

CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3)

How to work with data sources and datasets

: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET

C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions

Disclaimer. Trademarks. Liability

Code: Week 13. Write a Program to perform Money Conversion. Public Class Form1

Year 12 : Visual Basic Tutorial.

ก Microsoft Visual Studio 2008

1. Create your First VB.Net Program Hello World

Code: Write a Program for perform Money Conversion. Public Class Form1

Running the Altair SIMH from.net programs

...015\Projects\Two_Channel_V1.0\Two_Channel_V1.0\Form1.vb 1

OVERLOADING METHODS AND CONSTRUCTORS: The Ball Class

PROGRAMMING ASSIGNMENT: MOVIE QUIZ

Learning VB.Net. Tutorial 17 Classes

(0,0) (600, 400) CS109. PictureBox and Timer Controls

Computing Science Unit 1

Learning VB.Net. Tutorial 15 Structures

Disclaimer. Trademarks. Liability

Section 7 The BASIC Language II

Herefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Form Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :

Member Management System

Visual Basic.NET Sub Programs

Déclaration du module

How to Validate DataGridView Input

LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN

Final Exam 7:00-10:00pm, April 14, 2008

Check out the demo video of this application so you know what you will be making in this tutorial.

Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

System Analysis and Design

Upgrading Applications

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

IOS Plus Trade - Web Services Version 4 Walkthrough

IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information

11. Persistence. The use of files, streams and serialization for storing object model data

Developing Student Programming and Problem-Solving Skills With Visual Basic

C16 Visual Basic Net Programming

Lecture 10 OOP and VB.Net

DEVELOPING OBJECT ORIENTED APPLICATIONS

Unit 7. Lesson 7.1. Loop. For Next Statements. Introduction. Loop

Lampiran 1 Kode Program

GUI Design and Event- Driven Programming

Connection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :

AUTOMATIC PUBLIC DISTRIBUTION SYSTEM

MATFOR In Visual Basic

VB FUNCTIONS AND OPERATORS

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

VISUAL BASIC PROGRAMMING (44) Technical Task KEY. Regional 2013 TOTAL POINTS (485)

Tutorial 03 understanding controls : buttons, text boxes

Visual Studio.NET for AutoCAD Programmers

VISUAL BASIC 2005 EXPRESS: NOW PLAYING

Download the files from you will use these files to finish the following exercises.

This PDF was generated in real-time using DynamicPDF; Generator for.net.

Unit 4 Advanced Features of VB.Net

LISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal

Remote Web Server. Develop Locally. foldername. publish project files to

Visual Basic 2008 學習檔案

Lab 3 The High-Low Game

ISM 3253 Exam I Spring 2009

Exercise 6. Controlling of a bipolar stepper motor with the help of eprodas SCI module and program language Visual Basic

The following are required to duplicate the process outlined in this document.

Both experienced Visual Basic programmers and those new to the language

Computer Net Revision

In-Built Functions. String Handling Functions:-

The New Brew-CQ Synchronous Sockets and Threading

Transcription:

Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click r = Val(TextBox1.Text) m = a * b If r = m Then (" صواب الحل") MsgBox خطا و الحل الصحیح هو") MsgBox ( M &"الحل

Dim x, y, L, h As Single Randomize() x = Me.Width - PictureBox1.Width y = Me.Height - PictureBox1.Height L = Fix(Rnd() * x) h = Fix(Rnd() * y) PictureBox1.Left = L PictureBox1.Top = h Button1.BringToFront()

Dim N, C As Byte Randomize() N = Val(TextBox1.Text) C = Fix(Rnd() * 7) Label3.Text = C If N = C Then "تكسب" = Label4.Text "تخسر" = Label4.Text TextBox1.Focus()

If PictureBox1.Visible = True Then PictureBox1.Visible = False "إظهار " = Button1.Text PictureBox1.Visible = True "أخفاء " = Button1.Text

Dim a, b, c As Integer Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked Then a = 50 a = 0 Label2.Text = a + b + c Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged If CheckBox2.Checked Then b = 250 b = 0 Label2.Text = a + b + c Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged If CheckBox3.Checked Then c = 60 c = 0 Label2.Text = a + b + c

Dim Tea, Cof, Sah, CoC As Single Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked Then Tea = 1 Tea = 0 Label2.Text = Tea + Cof + Sah + CoC Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged If CheckBox2.Checked Then Cof = 2 Cof = 0 Label2.Text = Tea + Cof + Sah + CoC Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged If CheckBox3.Checked Then Sah = 2 Sah = 0 Label2.Text = Tea + Cof + Sah + CoC Private Sub CheckBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox4.CheckedChanged If CheckBox4.Checked Then CoC = 3 CoC = 0 Label2.Text = Tea + Cof + Sah + CoC

101 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim N As Byte Dim T As Integer TextBox1.Clear() T = 0 For N = 1 To 10 T = T + N TextBox1.Text = TextBox1.Text & N & vbcrlf Next Label2.Text = T

Dim n As Single Randomize() n = Fix(ListBox1.Items.Count * Rnd()) Label2.Text = ListBox1.Items(N) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.Hide()

Dim a, b, t As Single Try a = TextBox1.Text b = TextBox2.Text t = a * b Label4.Text = t Catch ex As Exception (" عددیة قیم أدخل فضلك من") MsgBox End Try TextBox1.Focus()

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = TimeOfDay

Dim x As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load x = Me.Width - PictureBox1.Width Timer1.Enabled = True Timer2.Enabled = False Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick PictureBox1.Left = PictureBox1.Left + 5 If PictureBox1.Left > x - 10 Then Timer1.Enabled = False Timer2.Enabled = True Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick PictureBox1.Left = PictureBox1.Left - 5 If PictureBox1.Left < 0 Then Timer2.Enabled = False Timer1.Enabled = True