LAMPIRAN A: Listing Program
|
|
- Jewel Lewis
- 6 years ago
- Views:
Transcription
1 67 1. Form Menu Utama LAMPIRAN A: Listing Program Public Class MScreen Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Form1.Show() End Class 2. Form Sub Menu Imports System Imports System.ComponentModel Imports System.Drawing Imports System.Data Imports System.Text Imports System.Windows.Forms Imports System.IO Imports System.Diagnostics.Process Imports MediaPlayer Imports Alvas.Audio Public Class Form1 Dim PicBuffer As System.IO.FileInfo Dim proc As Process Dim PicFileStream As System.IO.FileStream Dim start_time, stop_time As Date Dim ratio As Double Private ar As IAudioReader = Nothing Dim oldformat, newformat As IntPtr Dim y As Integer = 0 Dim mbawal, mbakhir As Double Dim filehsl As String Dim fsr As FileStream Private Sub Form1_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser3.Navigate("D:\Mutiara Backup\SHANNONFANO\Aplikasi Kompresi Audio\Cara Pemakaian Aplikasi.pdf") ar = New Mp3Reader(File.OpenRead("test_shannon.mp3")) oldformat = ar.readformat Private Sub BtnBukaTabKmprs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBukaTabKmprs.Click With OpenFileDialog1.Title = "Browse Mp3".Filter = "Mp3 (*.mp3) *.mp3".filename = "" End With OpenFileDialog1.FileName = "" OpenFileDialog1.ShowDialog() If OpenFileDialog1.FileName = "" Then
2 68 Dim fd As FormatDetails Try ar = New Mp3Reader(File.OpenRead(OpenFileDialog1.FileName)) fd = AudioCompressionManager.GetFormatDetails(oldFormat) Catch ex As Exception ar = New WaveReader(File.OpenRead(OpenFileDialog1.FileName)) fd = AudioCompressionManager.GetFormatDetails(oldFormat) End Try oldformat = ar.readformat fd = AudioCompressionManager.GetFormatDetails(oldFormat) txtsa1.text = String.Format("{0} {1}", AudioCompressionManager.GetFormatTagDetails(fd.FormatTag).FormatTagNa me, fd.formatname) Dim fdarr As FormatDetails() = AudioCompressionManager.GetCompatibleFormatList(oldFormat) newformat = DirectCast(fdArr(2), FormatDetails).FormatHandle TxtBukaTabKmprs.Text = OpenFileDialog1.FileName Dim inforeader As System.IO.FileInfo inforeader = My.Computer.FileSystem.GetFileInfo(OpenFileDialog1.FileName) TxtNamaTabKmprs.Text = inforeader.name TxtPathTabKmprs.Text = inforeader.directoryname mbawal = (inforeader.length / (1024 * 1024)) TxtUkAwalTabKmprs.Text = Math.Round(mbAwal, 2) & " Mb" BtnKompres.Enabled = True Private Sub BtnBukaTabDkmprs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBukaTabDkmprs.Click With OpenFileDialog1.Title = "Browse Wav".Filter = "Wav (*.wav) *.wav".filename = "" End With OpenFileDialog1.FileName = "" OpenFileDialog1.ShowDialog() If OpenFileDialog1.FileName = "" Then ar = New WaveReader(File.OpenRead(OpenFileDialog1.FileName)) oldformat = ar.readformat Dim fd As FormatDetails = AudioCompressionManager.GetFormatDetails(oldFormat) txtsa2.text = String.Format("{0} {1}", AudioCompressionManager.GetFormatTagDetails(fd.FormatTag).FormatTagNa me, fd.formatname) Dim fdarr As FormatDetails() = AudioCompressionManager.GetCompatibleFormatList(oldFormat) newformat = DirectCast(fdArr(7), FormatDetails).FormatHandle TxtBukaTabDkmprs.Text = OpenFileDialog1.FileName
3 69 Dim inforeader As System.IO.FileInfo inforeader = My.Computer.FileSystem.GetFileInfo(OpenFileDialog1.FileName) TxtNamaTabDkmprs.Text = inforeader.name TxtPathTabDkmprs.Text = inforeader.directoryname mbawal = (inforeader.length / (1024 * 1024)) TxtUkAwalTabDkmprs.Text = Math.Round(mbAwal, 2) & " Mb" BtnDekomprs.Enabled = True Private Sub BtnBukaTabPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnBukaTabPlay.Click With OpenFileDialog1.Title = "Browse File Audio".FileName = "" End With OpenFileDialog1.FileName = "" OpenFileDialog1.ShowDialog() If OpenFileDialog1.FileName = "" Then Me.TxtBukaTabPlay.Text = OpenFileDialog1.FileName Dim inforeader As System.IO.FileInfo inforeader = My.Computer.FileSystem.GetFileInfo(OpenFileDialog1.FileName) TxtNamaTabPlay.Text = inforeader.name TxtPathTabPlay.Text = inforeader.directoryname Private Sub WebBrowser3_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser3.DocumentCompleted Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter Private Sub Kompres() Dim filename As String = TxtBukaTabKmprs.Text + ".wav" Dim size As Integer = ar.milliseconds2bytes(1000) Dim len As Integer = ar.getlengthinbytes() Dim ac As AcmConverter = New AcmConverter(oldFormat, newformat, False) Dim fs As FileStream = New FileStream(fileName, FileMode.Create) Dim ww As WaveWriter = New WaveWriter(fs, AudioCompressionManager.FormatBytes(newFormat)) Dim wx As Mp3Writer = New Mp3Writer(fsr) While y < len Dim data As Byte() = ar.readdatainbytes(y, size) xxxwxaudio(wx, data) Dim tmpstr As String = ArrayToString(data) Dim datax As Byte() = shanonkompres(tmpstr) y += data.length Dim newdata As Byte() = ac.convert(data) ww.writedata(newdata) End While
4 70 mbakhir = fs.length / (1024 * 1024) filehsl = fs.name ww.close() ar.close() Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk PicBuffer = New System.IO.FileInfo(OpenFileDialog1.FileName) Private Sub BgWork_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BgWork.DoWork Kompres() Private Sub BtnKompres_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnKompres.Click fsr = xwxaudio(txtnamatabkmprs.text) Cursor = Cursors.WaitCursor proc = GetCurrentProcess() start_time = Now pbconvert.maximum = ar.getlengthinbytes y = 0 BgWork.RunWorkerAsync() Timer1.Start() Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If y > pbconvert.maximum Then pbconvert.value = 0 Timer1.Stop() pbconvert.value = y Private Sub BgWork_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BgWork.RunWorkerCompleted Cursor = Cursors.Default proc = GetCurrentProcess() stop_time = Now Me.TxtUkAkhrTabKmprs.Text = Math.Round(mbAkhir, 2) & " MB" Me.TxtLamaTabKmprs.Text = stop_time.subtract(start_time).seconds & " s" ratio = (mbakhir / mbawal) * 100 Dim inforeader As System.IO.FileInfo = My.Computer.FileSystem.GetFileInfo(filehsl) Me.txtFileHasil.Text = inforeader.name Me.TxtRasioTabKmprs.Text = Math.Round(ratio, 2) & "%" pbconvert.value = 0 Timer1.Stop() Private Sub BtnResetTabKmprs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnResetTabKmprs.Click Me.TxtPathTabKmprs.Clear()
5 71 Me.TxtBukaTabKmprs.Clear() Me.TxtNamaTabKmprs.Clear() Me.TxtUkAkhrTabKmprs.Clear() Me.TxtRasioTabKmprs.Clear() Me.TxtUkAwalTabKmprs.Clear() Me.txtFileHasil.Clear() Me.TxtLamaTabKmprs.Clear() Me.txtSA1.Clear() Private Sub Dekompres() ar = xshannonaudio(txtnamatabdkmprs.text) Dim filename As String = TxtBukaTabDkmprs.Text + ".mp3" Dim size As Integer = ar.milliseconds2bytes(1000) Dim len As Integer = ar.getlengthinbytes() Dim ac As AcmConverter = New AcmConverter(oldFormat, newformat, False) Dim fs As FileStream = New FileStream(fileName, FileMode.Create) Dim ww As Mp3Writer = New Mp3Writer(fs) While y < len Dim data As Byte() = ar.readdatainbytes(y, size) (ArrayToString(data)) y += data.length Dim newdata As Byte() = xshandekomp(data) ww.writedata(newdata) End While mbakhir = fs.length / (1024 * 1024) filehsl = fs.name ww.close() ar.close() Private Sub BtnDekomprs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnDekomprs.Click Cursor = Cursors.WaitCursor proc = GetCurrentProcess() start_time = Now pbconver2.maximum = ar.getlengthinbytes y = 0 BgWork2.RunWorkerAsync() Timer2.Start() Private Sub BgWork2_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BgWork2.DoWork Dekompres() Private Sub BgWork2_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BgWork2.RunWorkerCompleted Cursor = Cursors.Default proc = GetCurrentProcess() stop_time = Now Me.TxtUkAkhrTabDkmprs.Text = Math.Round(mbAkhir, 2) & " MB" Me.TxtLamaTabDkmprs.Text = stop_time.subtract(start_time).seconds & " s" ratio = (mbakhir / mbawal) * 100 Dim inforeader As System.IO.FileInfo = My.Computer.FileSystem.GetFileInfo(filehsl)
6 72 Me.txtFileHasil2.Text = inforeader.name pbconver2.value = 0 Timer2.Stop() Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick If y > pbconver2.maximum Then pbconver2.value = 0 Timer2.Stop() pbconver2.value = y Private Sub BtnResetTabDkmprs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnResetTabDkmprs.Click Me.TxtPathTabDkmprs.Clear() Me.TxtBukaTabDkmprs.Clear() Me.TxtNamaTabDkmprs.Clear() Me.TxtUkAkhrTabDkmprs.Clear() Me.TxtUkAwalTabDkmprs.Clear() Me.txtFileHasil2.Clear() Me.TxtLamaTabDkmprs.Clear() Me.txtSA2.Clear() Private Sub BtnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPlay.Click If Len(Trim(TxtNamaTabPlay.Text)) <= 0 Then If axwp.playstate = WMPLib.WMPPlayState.wmppsPaused Then axwp.ctlcontrols.play() axwp.url = Me.TxtBukaTabPlay.Text axwp.ctlcontrols.play() Private Sub BtnPause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnPause.Click If axwp.playstate = WMPLib.WMPPlayState.wmppsPlaying Then axwp.ctlcontrols.pause() Private Sub BtnStop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnStop.Click If axwp.playstate = WMPLib.WMPPlayState.wmppsPlaying Or axwp.playstate = WMPLib.WMPPlayState.wmppsPaused Then axwp.ctlcontrols.stop() End Class
7 73 3. Class Shannon.vb Imports Alvas.Audio Imports System.IO Module shanon Dim str_asli As String Public Function shanonkompres(byval str_asli As String) As Array Dim pohon As String Dim susun As String Dim kararr() As String Dim jumlah() As Integer Dim shn_binary() As String Dim index As Integer Dim datax(str_asli.length) As Byte If str_asli.length <= 0 Then Return datax Dim i, j As Integer susun = "" For i = 0 To str_asli.length - 1 If susun.contains(str_asli(i)) = False Then susun &= str_asli(i) ReDim jumlah(susun.length - 1) For i = 0 To susun.length - 1 jumlah(i) = 0 For j = 0 To str_asli.length - 1 If susun(i) = str_asli(j) Then jumlah(i) += 1 Dim tmpjlh() As Integer = jumlah Dim tmpsusun As String = susun Array.Sort(jumlah) Array.Reverse(jumlah) susun = "" For i = 0 To susun.length - 1 index = Array.IndexOf(tmpjlh, jumlah(i)) susun &= tmpsusun.substring(index, 1) ReDim shn_binary(susun.length - 1) For i = 0 To susun.length - 1 shn_binary(i) = "" index = 0 If susun.length <= 0 Then Return datax Do Dim kar As Char = susun(index) Dim s As String = susun Dim l As Integer = s.length Dim l1 As Integer = l Dim s1 As String = "" Dim s2 As String = ""
8 74 Dim jl(), jl1(), jl2() As Integer Dim jb1, jb2 As Integer Dim a, b As Integer ReDim jl(l) For i = 0 To l - 1 jl(i) = jumlah(i) Do Dim idx As Integer = 0 jb1 = 0 i = 1 Do jb1 += jl(i - 1) jb2 = 0 j = i Do While j < l jb2 += jl(j) j += 1 i += 1 Until jb1 >= jb2 If jb1 > jb2 Then If i > 2 Then idx = i - 2 Else idx = i - 1 Else idx = i - 1 s1 = "" i = 0 Do While i < idx s1 &= s(i) i += 1 s2 = "" i = idx Do While i < l s2 &= s(i) i += 1 ReDim jl1(s1.length) a = 0 Do While a < s1.length jl1(a) = jl(a) a += 1 ReDim jl2(s2.length) a = 0 b = idx Do While a < s2.length jl2(a) = jl(b) a += 1 b += 1 If s1.contains(kar) = True Then shn_binary(index) &= "0" l = s1.length s = s1
9 75 ReDim jl(s1.length) a = 0 Do While a < s1.length jl(a) = jl1(a) a += 1 Else shn_binary(index) &= "1" l = s2.length s = s2 ReDim jl(s2.length) b = 0 Do While b < s2.length jl(b) = jl2(b) b += 1 Dim stemp As String = "" For i = 0 To s.length - 1 stemp &= s(i).tostring.trim While l > 1 index += 1 While index < susun.length ReDim kararr(susun.length) i = 0 pohon = "" Do kararr(i) = susun(i) pohon &= shn_binary(i) & " " i += 1 While i < susun.length Dim total_memory As Integer = 0 Dim total_panjang As Integer = 0 For i = 0 To susun.length - 1 total_memory += jumlah(i) * shn_binary(i).length total_panjang += shn_binary(i).length Dim dec As Integer = 0 For i = 0 To str_asli.length - 1 index = susun.indexof(str_asli(i)) dec = BinToDec(shn_binary(index)) datax(i) = dec Return datax Public Function ArrayToString(ByVal ParamArray data() As Byte) As String Dim str As String = "" For i As Integer = 0 To data.length - 1 str &= Chr(data(i)) Return str Public Sub Reset_DGV(ByVal dgv As DataGridView) Dim baris As Integer = dgv.rows.count - 1 For i As Integer = 0 To baris dgv.rows.remove(dgv.rows(0))
10 76 Public Function BinToDec(ByVal bin As String) As Double Dim des As Double = 0 For i As Integer = 0 To bin.length - 1 des = des + (CDbl(bin.Substring(i, 1)) * CDbl(Math.Pow(2, bin.length i))) Return des Public Function xwxaudio(byval xxstr As String) As FileStream Try File.SetAttributes(xxstr & ".wav.kdr", FileAttributes.Normal) Catch ex As Exception End Try Dim fsr As FileStream = New FileStream(xxstr & ".wav.kdr", FileMode.Create) File.SetAttributes(xxstr & ".wav.kdr", FileAttributes.Hidden) Return fsr Public Sub xxxwxaudio(byval wx As Mp3Writer, ByVal ParamArray data() As Byte) wx.writedata(data) Public Function xshannonaudio(byval fl As String) As IAudioReader File.SetAttributes(fl & ".kdr", FileAttributes.Normal) Dim arx As Mp3Reader = New Mp3Reader(File.OpenRead(fl & ".kdr")) File.SetAttributes(fl & ".kdr", FileAttributes.Hidden) Return arx Public Function xshandekomp(byval ParamArray data() As Byte) As Array Dim newdata() As Byte = data Return newdata End Module
Else. End If End Sub End Class. PDF created with pdffactory trial version
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
More informationFOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources
FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be
More informationLearning VB.Net. Tutorial 19 Classes and Inheritance
Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you
More informationForm Connection. Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel
Form Connection Imports System Imports System.Threading Imports System.IO.Ports Imports System.ComponentModel Public Class connection '------------------------------------------------ Dim myport As Array
More informationDO NOT COPY AMIT PHOTOSTUDIO
AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights
More informationLearning VB.Net. Tutorial 10 Collections
Learning VB.Net Tutorial 10 Collections Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.
More informationVB.NET Programs. ADO.NET (insert, update, view records)
ADO.NET (insert, update, view records) VB.NET Programs Database: Student Table : Studtab (adno, name, age, place) Controls: DataGridView, Insert button, View button, Update button, TextBox1 (for Admission
More informationDéclaration du module
Déclaration du module Imports System.IO Module ModuleStagiaires Public Structure Stagiaire Private m_code As Long Private m_nom As String Private m_prenom As String Public Property code() As Long Get Return
More informationLearning VB.Net. Tutorial 15 Structures
Learning VB.Net Tutorial 15 Structures Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it.
More informationDRAWING AND MOVING IMAGES
DRAWING AND MOVING IMAGES Moving images and shapes in a Visual Basic application simply requires the user of a Timer that changes the x- and y-positions every time the Timer ticks. In our first example,
More informationMr.Khaled Anwar ( )
The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program
More informationSerial-out Color Sensor. Overview. Features
Visit us @ www.thearyatechnologies.com Email: aryaprotech@gmail.com / info@thearyatechnologies.com Contact us@ 0253-2512131 Serial-out Color Sensor Overview Color sensor identifies primary colors (Red,
More informationLAMPIRAN. Universitas Sumatera Utara
LAMPIRAN 1. Modul Imports System.Data Imports System.Data.OleDb Module Module1 Public conn As OleDbConnection Public CMD As OleDbCommand Public DS As New DataSet Public DA As OleDbDataAdapter Public RD
More informationPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.
練習問題 1-1 Label1 Label1.Text = Label1.Text + 2 練習問題 1-2 Button2 Label1 Label1.Text = Label1.Text+ 2 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
More informationIMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants
IMS1906: Business Software Fundamentals Tutorial exercises Week 5: Variables and Constants These notes are available on the IMS1906 Web site http://www.sims.monash.edu.au Tutorial Sheet 4/Week 5 Please
More informationMy first game. 'function which adds objects with bug tag to bugarray array. Saturday, November 23, :06 AM
My first game Saturday, November 23, 2013 5:06 AM Public Class Form1 Dim moveright As Boolean = False Dim moveup As Boolean = False Dim moveleft As Boolean = False Dim movedown As Boolean = False Dim score
More information"!#... )*! "!# )+, -./ 01 $
Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?
More information'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("8b a5-46bb-a6a9-87b4949d1f4c")>
LAMPIRAN A : LISTING PROGRAM Imports System Imports System.Reflection Imports System.Runtime.InteropServices ' General Information about an assembly is controlled through the following ' set of attributes.
More informationIn this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.
Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic
More informationTo start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer
C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version
More informationYou can call the project anything you like I will be calling this one project slide show.
C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise
More informationC4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions
C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions Between the comments included with the code and the code itself, you shouldn t have any problems understanding what
More informationObjectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism
Polymorphism Objectives After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Definition Polymorphism provides the ability
More information超音波モータ制御プログラムの作成 (v1.2.1)
超音波モータ制御プログラムの作成 (v1.2.1) 2008 年 11 月 28 日 Masaaki MATSUO 構成機器 モータ本体 : フコク ロータリーエンコーダー内蔵型超音波モータ USB-60E モータ制御部 : フコク 位置決制御ドライバ DCONT-3-60 (SD13) コントローラ : Interface 2 軸絶縁パルスモーションコントローラ ( 直線補間エンコーダ入力 5V)
More informationLISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara
A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True
More informationHands-On Lab. Lab: Client Object Model. Lab version: Last updated: 2/23/2011
Hands-On Lab Lab: Client Object Model Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: RETRIEVING LISTS... 4 EXERCISE 2: PRINTING A LIST... 8 EXERCISE 3: USING ADO.NET DATA
More informationLearning VB.Net. Tutorial 17 Classes
Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If
More informationC16 Visual Basic Net Programming
C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...
More informationInteracting with External Applications
Interacting with External Applications DLLs - dynamic linked libraries: Libraries of compiled procedures/functions that applications link to at run time DLL can be updated independently of apps using them
More informationRevision for Final Examination (Second Semester) Grade 9
Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual
More informationVISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS
VISUAL BASIC II CC111 INTRODUCTION TO COMPUTERS Intended Learning Objectives Able to build a simple Visual Basic Application. 2 The Sub Statement Private Sub ControlName_eventName(ByVal sender As System.Object,
More informationFinal Exam 7:00-10:00pm, April 14, 2008
Name:, (last) (first) Student Number: Section: Instructor: _P. Cribb_ L. Lowther_(circle) York University Faculty of Science and Engineering Department of Computer Science and Engineering Final Exam 7:00-10:00pm,
More informationcreate database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )
create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) insert into bolumler values(1,'elektrik') insert into bolumler values(2,'makina') insert into bolumler
More informationThe New Brew-CQ Synchronous Sockets and Threading
The New Brew-CQ Synchronous Sockets and Threading Server Topology: The Brew-CQ server is an application written in the new.net compilers from Microsoft. The language of choice is Visual Basic. The purpose
More informationTo enter the number in decimals Label 1 To show total. Text:...
Visual Basic tutorial - currency converter We will use visual studio to create a currency converter where we can convert a UK currency pound to other currencies. This is the interface for the application.
More informationLearning VB.Net. Tutorial 16 Modules
Learning VB.Net Tutorial 16 Modules Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If
More informationVisual Basic: Opdracht Structuur
Visual Basic: Opdracht Structuur HoofdMenu.vb SubMenu_Kwadraat.vb Form1.vb Form2.vb Submenu_Som.vb Form3.vb Form4.vb SubMenu_Gem.vb Form5.vb Form6.vb Form10.vb SubMenu_Naam.vb Form7.vb Form11.vb Form8.vb
More informationโปรแกรมช วยทดสอบหม อแปลงกระแส
โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
More informationRunning the Altair SIMH from.net programs
Running the Altair SIMH from.net programs The Altair SIMH simulator can emulate a wide range of computers and one of its very useful features is that it can emulate a machine running 50 to 100 times faster
More informationUnit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types
Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,
More informationCALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration. MIS 15 Introduction to Business Programming. Programming Assignment 3 (P3)
CALIFORNIA STATE UNIVERSITY, SACRAMENTO College of Business Administration MIS 15 Introduction to Business Programming Programming Assignment 3 (P3) Points: 50 Due Date: Tuesday, May 10 The purpose of
More informationCALCULATOR APPLICATION
CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationHow to work with data sources and datasets
Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved
More informationHerefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)
Student: Candidate Number: Assessor: Len Shand Herefordshire College of Technology Centre 24150 Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Course: Unit: Title:
More informationYear 12 : Visual Basic Tutorial.
Year 12 : Visual Basic Tutorial. STUDY THIS Input and Output (Text Boxes) The three stages of a computer process Input Processing Output Data is usually input using TextBoxes. [1] Create a new Windows
More informationPrivate Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Public Class Cours Private nc As Integer Private Sub Cours_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO : cette ligne de code charge les données dans la table
More informationHow to Validate DataGridView Input
How to Validate DataGridView Input This example explains how to use DR.net to set validation criteria for a DataGridView control on a Visual Studio.NET form. Why You Should Use This To add extensible and
More informationPASSTCERT QUESTION & ANSWER
PASSTCERT QUESTION & ANSWER Higher Quality Better Service! Weofferfreeupdateserviceforoneyear HTTP://WWW.PASSTCERT.COM Exam : 070-540VB Title : TS: MS.NET Frmewk 3.5, Workflow Foundation App Dev Version
More informationVARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals
VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,
More informationLab 6: Making a program persistent
Lab 6: Making a program persistent In this lab, you will cover the following topics: Using the windows registry to make parts of the user interface sticky Using serialization to save application data in
More informationISM 3253 Exam I Spring 2009
ISM 3253 Exam I Spring 2009 Directions: You have exactly 75 minutes to complete this test. Time available is part of the exam conditions and all work must cease when "Stop work" is announced. Failing to
More informationChapter 2 Exploration of a Visual Basic.Net Application
Chapter 2 Exploration of a Visual Basic.Net Application We will discuss in this chapter the structure of a typical Visual Basic.Net application and provide you with a simple project that describes the
More informationUsing Template Bookmarks for Automating Microsoft Word Reports
Using Template Bookmarks for Automating Microsoft Word Reports Darryl Bryk U.S. Army RDECOM-TARDEC Warren, MI 48397 Disclaimer: Reference herein to any specific commercial company, product, process, or
More information: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET
2006-938: CREATING WEB BASED APPLICATIONS FOR INSTRUMENT DATA TRANSFER USING VISUAL STUDIO.NET David Hergert, Miami University American Society for Engineering Education, 2006 Page 11.371.1 Creating Web
More information// Program 2 - Extra Credit // CIS // Spring // Due: 3/11/2015. // By: Andrew L. Wright. //Edited by : Ben Spalding
// Program 2 - Extra Credit // CIS 200-01 // Spring 2015 // Due: 3/11/2015 // By: Andrew L. Wright //Edited by : Ben Spalding // File: Prog2Form.cs // This class creates the main GUI for Program 2. It
More informationForm Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :
Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the
More informationWEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.
WEEK 1 Timer: A Timer is used to raise an event at user-defined intervals. It is optimized for use in Windows Forms applications. Timer is used to control and manage events that are time related. For example:
More informationExamples. Products. W informs Controls > Products > Navigation Bar > Examples. This topic provides how -to examples, grouped by features.
Examples 3564 W informs Controls > Products > Navigation Bar > Examples This topic provides how -to examples, grouped by features. Examples Layout How to: Create a NavBar Control in Code How to: Activate
More informationMember Management System
Member Management System These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA)
More information// Precondition: None // Postcondition: The address' name has been set to the // specified value set;
// File: Address.cs // This classes stores a typical US address consisting of name, // two address lines, city, state, and 5 digit zip code. using System; using System.Collections.Generic; using System.Linq;
More informationSavoy ActiveX Control User Guide
Savoy ActiveX Control User Guide Jazz Soft, Inc. Revision History 1 Revision History Version Date Name Description 1.00 Jul, 31 st, 2009 Hikaru Okada Created as new document 1.00a Aug, 22 nd, 2009 Hikaru
More informationPROGRAMMING ASSIGNMENT: MOVIE QUIZ
PROGRAMMING ASSIGNMENT: MOVIE QUIZ For this assignment you will be responsible for creating a Movie Quiz application that tests the user s of movies. Your program will require two arrays: one that stores
More informationProtected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Option Strict On Imports System.Drawing.Imaging Imports System.Drawing Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.IO Imports System.Web Imports
More informationSub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.
Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:
More informationA Complete Tutorial for Beginners LIEW VOON KIONG
I A Complete Tutorial for Beginners LIEW VOON KIONG Disclaimer II Visual Basic 2008 Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been
More informationComputing Science Unit 1
Computing Science Unit 1 Software Design and Development Programming Practical Tasks Business Information Technology and Enterprise Contents Input Validation Find Min Find Max Linear Search Count Occurrences
More informationApéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1
Apéndice E Código de software de ayuda en Visual Basic 2005 Public Class Form1 Dim checkcont As Integer = 0, foto = 0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
More informationIOS Plus Trade - Web Services Version 4 Walkthrough
IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that
More informationIRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information
IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will
More informationLAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN
LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-1 : NOTA DOKUMEN KELUARAN LAMPIRAN B MASUKAN SISTEM BERJALAN LAMPIRAN B-1 : DATA BARANG DOKUMEN MASUKAN LAMPIRAN B-2 : DATA PELANGGAN DOKUMEN
More informationS.2 Computer Literacy Question-Answer Book
S.2 C.L. Half-yearly Examination (2012-13) 1 12-13 S.2 C.L. Question- Answer Book Hong Kong Taoist Association Tang Hin Memorial Secondary School 2012-2013 Half-yearly Examination S.2 Computer Literacy
More informationDEVELOPING OBJECT ORIENTED APPLICATIONS
DEVELOPING OBJECT ORIENTED APPLICATIONS By now, everybody should be comfortable using form controls, their properties, along with methods and events of the form class. In this unit, we discuss creating
More informationThis PDF was generated in real-time using DynamicPDF; Generator for.net.
TableReport.aspx 1 1 Imports System 2 Imports System.Data 3 Imports System.Data.SqlClient 4 5 Imports cete.dynamicpdf 6
More informationTutorial 03 understanding controls : buttons, text boxes
Learning VB.Net Tutorial 03 understanding controls : buttons, text boxes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple
More informationLAMPIRAN LISTING PROGRAM
LAMPIRAN LISTING PROGRAM Imports System Imports System.IO Imports System.Math Public Class frmutama Dim dicari As DirectoryInfo Dim flpath As String, srcpath As String Dim asnode As Double, dsnode As Double,
More informationLAMPIRAN A. LISTING PROGRAM
78 LAMPIRAN A. LISTING PROGRAM Form Login.vb Imports MySql Imports MySql.Data Imports MySql.Data.MySqlClient Public Class FormLogIn Private Sub BtnLoginClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
More informationDatabase Tutorials
Database Tutorials Hello everyone welcome to database tutorials. These are going to be very basic tutorials about using the database to create simple applications, hope you enjoy it. If you have any notes
More informationProgramming with Visual Studio Higher (v. 2013)
Programming with Visual Studio Higher (v. 2013) Contents/Requirements Checklist Multiple selection: using ifs & case While Loops Using arrays Filling arrays Displaying array contents Types of variables:
More informationCSIS 1624 CLASS TEST 6
CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed
More informationVB FUNCTIONS AND OPERATORS
VB FUNCTIONS AND OPERATORS In der to compute inputs from users and generate results, we need to use various mathematical operats. In Visual Basic, other than the addition (+) and subtraction (-), the symbols
More informationprivate void Form1_Load(object sender, EventArgs e) {
viii LAMPIRAN LISTING PROGRAM 1. Form Home using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using
More informationObject oriented lab /second year / review/lecturer: yasmin maki
1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return
More information1. Create your First VB.Net Program Hello World
1. Create your First VB.Net Program Hello World 1. Open Microsoft Visual Studio and start a new project by select File New Project. 2. Select Windows Forms Application and name it as HelloWorld. Copyright
More informationSystem Analysis and Design
System Analysis and Design LAB RECORD-INFS -280/L Information Systems Department University of Nizwa, Sultanate of Oman Table of Contents Task. No: Title Page Nos. Date 1) VB Text box and Message Button
More informationFirst start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button
Create an Interest Calculator with C# In This tutorial we will create an interest calculator in Visual Studio using C# programming Language. Programming is all about maths now we don t need to know every
More informationADO.NET 2.0. database programming with
TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will
More informationVISUAL BASIC 2005 EXPRESS: NOW PLAYING
VISUAL BASIC 2005 EXPRESS: NOW PLAYING by Wallace Wang San Francisco ADVANCED DATA STRUCTURES: QUEUES, STACKS, AND HASH TABLES Using a Queue To provide greater flexibility in storing information, Visual
More informationWorking with Printers
Chapter 17 Working with Printers After completing this chapter, you will be able to: Print graphics from a Microsoft Visual Basic program. Print text from a Visual Basic program. Print multipage documents.
More informationChapter 8 Advanced GUI Features
159 Chapter 8 Advanced GUI Features There are many other features we can easily add to a Windows C# application. We must be able to have menus and dialogs along with many other controls. One workhorse
More informationSantiago Canyon College Computer Science
P a g e 1 Santiago Canyon College Computer Science The.Net Threading Model Introduction The purpose of this paper is to introduce you to multi-threading in Visual Studio. Learning how to take advantage
More informationLecture 10 OOP and VB.Net
Lecture 10 OOP and VB.Net Pillars of OOP Objects and Classes Encapsulation Inheritance Polymorphism Abstraction Classes A class is a template for an object. An object will have attributes and properties.
More informationCheck out the demo video of this application so you know what you will be making in this tutorial.
Visual Basic - System Information Viewer Welcome to our special tutorial of visual basic. In this tutorial we will use Microsoft visual studio 2010 version. You can download it for free from their website.
More informationUnit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol
Designing User Interface-2 Unit 3 Designing User Interface-2 Lesson 3.1-3 TreeView Control A TreeView control is designed to present a list in a hierarchical structure. It is similar to a directory listing.
More informationCode: Week 13. Write a Program to perform Money Conversion. Public Class Form1
Write a Program to perform Money Conversion. Week 13 Code: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Dim a As Double a = TextBox1.Text If ComboBox1.SelectedItem
More informationNow find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]
C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open
More informationIBSDK Quick Start Tutorial for C# 2010
IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup
More informationフラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M.
フラクタル 1 ( ジュリア集合 ) PictureBox 1 TextBox 1 TextBox 2 解説 : ジュリア集合 ( 自己平方フラクタル ) TextBox 3 複素平面 (= PictureBox1 ) 上の点 ( に対して, x, y) 初期値 ( 複素数 ) z x iy を決める. 0 k 1 z k 1 f ( z) z 2 k a 写像 ( 複素関数 ) (a : 複素定数
More informationก Microsoft Visual Studio 2008
ก 58 ก ก ก ก ก 58 59 ก Microsoft Visual Studio 2008 1. DVD ก MSVS2008 ก MSVS2008 ก ก MSVS2008 ก ก 180 DVD DVD ก MSVS2008 ก ก Install Visual Studio 2008 2. ก ก ก ก ก Next 3. ก ก Options Page ก Custom ก
More informationLampiran 1 Kode Program
53 Lampiran 1 Kode Program Kode Program 1 Kode Menu Peminjaman Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click Call CariKaset() Private Sub RB_CheckedChanged(ByVal
More informationUnit 4 Advanced Features of VB.Net
Dialog Boxes There are many built-in dialog boxes to be used in Windows forms for various tasks like opening and saving files, printing a page, providing choices for colors, fonts, page setup, etc., to
More information