Preview

Qwerty

Satisfactory Essays
Open Document
Open Document
4648 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Qwerty
ACTIVITY 1

Public Class no1 Private Const Mt = 0.3048 Dim a As Double Dim b As Double Private Const Ft = 5280 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

b = ((Ft * Mt) * a) / 1000 TextBox2.Text = FormatNumber(b, 2)

End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged a = Val(TextBox1.Text) End Sub

Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged

End Sub

End Class

Public Class no2 Private Const inch = 2.54 Private Const ft = 12 Dim a As Double Dim b As Double Dim c As Double

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged a = Val(TextBox1.Text) End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click b = a / inch TextBox3.Text = b c = b / ft TextBox2.Text = c End Sub

End Class

Public Class no3

Private Const Pound = 454 Dim a As Double Dim b As Double

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

b = a / Pound TextBox2.Text = FormatNumber(b, 2)

End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged a = Val(TextBox1.Text) End Sub

End Class

Public Class no4

Private Const week = 168 Private Const days = 24 Dim x As Double Dim a As Double Dim b As Double Dim c As Double Dim d As Double Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

You May Also Find These Documents Helpful

  • Good Essays

    78) The contents of a text box may be cleared in Visual Basic code by ________.…

    • 3668 Words
    • 15 Pages
    Good Essays
  • Good Essays

    Open the excel file which is password protected and goto Macro's (I am using Office 2007 so the menu's maybe different View >> Macros). Click on "Record Macro >> OK" and then click on "Stop Recording" from the same menu. Now goto "View Macros", you will find a Macro with a default name E.g. Macro1 - Select the macro name and click on Edit. Now a Visual Basic Editor opens up. Re-place the default code and Paste the below code.…

    • 1023 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Prg421 Week 2 Ia

    • 565 Words
    • 3 Pages

    NumberFormat; import javax.swing. JButton; import javax.swing. JComboBox; import javax.swing. JFrame; import javax.swing. JLabel; import javax.swing.…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    In the space provided below, copy and paste your VBScript Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program…

    • 529 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 42 M3

    • 430 Words
    • 2 Pages

    Within the Excel spreadsheet program one can create buttons that can operate certain tasks such as a button to go to the next record or a button to calculate the attendance percentage. These buttons are programmable according to the user needs. Such small command operations are known as Active X control. The speciality of Active X controls are that they are designed to work over the internet through web browsers such as internet explorer. ActiveX is not a programming language, but rather a set of rules for how applications should share information.…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Qazwsxedcrfvt

    • 661 Words
    • 3 Pages

    Haydn was a remarkable composer, epitomizing the meaning of classical period composition, and though he wasn't as flashy as the younger Mozart, his music always stayed true to form. Haydn, unlike most composers, had a "reliable and steady" job composing, directing, teaching, performing, and managing musicians from the royal Esterhazy family. During this time, Haydn composed many pieces of music for the courtly orchestra to perform. With a staggering body of work, including over 100 symphonies and 60 string quartets, he is often referred to as the "Father of the Symphony" or "Father of the String Quartet."…

    • 661 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The Alphabet

    • 675 Words
    • 3 Pages

    "Of Mice and Men" by John Steinbeck is a historical fiction play novelette. The novel is about the hardships of living in the Great Depression as a mentally challenged man. Lennie’s death was foreshadowed by what happened in Weed, and also by death of Curley’s wife. The ending of the novel is inevitable because of Lennie’s actions or other people’s reactions. George killed him in what he thought was a humane way to die.…

    • 675 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Typewriter

    • 1081 Words
    • 5 Pages

    In a journal entry from July, 1910, E. M. Forster wrote, "However gross my desires, I find that I shall never satisfy them for the fear of annoying others. I am glad to come across this much good in me. It serves instead of purity." Although Forster wrote this passage some two years after he published A Room with a View, it could have been written at almost anytime during his long life. However much he understood the "holiness of direct desire," the emotional purity one achieves by following the heart rather than social orthodoxy, he spent his youth and young adulthood, as Lucy Honeychurch nearly did, repressing his sexual desires to adhere to the expectations of society.…

    • 1081 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Keyboard Shortcut

    • 4025 Words
    • 17 Pages

    Keyboard shortcuts are a common aspect of most modern operating systems and associated software applications. Their use is pervasive enough that some users consider them an essential element of their routine interactions with a computer. Whether used as a matter of personal preference or for adaptive technology, the pervasiveness of common conventions enables the comparison of keyboard shortcuts across different systems. The following sections detail some of these comparisons in widely used operating systems.…

    • 4025 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    Xss Detection

    • 253 Words
    • 2 Pages

    Usually when testing for XSS vulnerabilities, we normally use the attack vectors <script>alert(111)</script> , <body onload=alert(111)/> etc. If the developer has implemented a blacklist serverside validation for <> and script, we will not get satisfactory test results. But in some scenarios we can successfully demonstrate an XSS attack even without using the above mentioned vectors.…

    • 253 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Computer Short Cut Keys

    • 1309 Words
    • 6 Pages

    [pic]The following is a list of keyboard shortcuts that are available in Microsoft Word 2002, in Microsoft Office Word 2003, and in Microsoft Office Word 2007. This list is a compilation of the individual keyboard shortcut lists available in Word 2002 Help and in Word 2003 Help.…

    • 1309 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Design and develop a simple program that demonstrates how to preload a collection of items into List box 1. The program should be able to display one or more selected items on another list box. Follow the given figure below in designing and developing the application program.…

    • 607 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    | Displays items in one of four views (text only, text with small icons, text with large icons, or report view.…

    • 447 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Asp.Net Coding

    • 1016 Words
    • 5 Pages

    CHAPTER 2 OBJECT: Adding Web Forms with Code to Your Site CODE: public partial class Demos_CodeBehind : BasePage { protected void Page_Load(object sender, EventArgs e) { Label1.Text = "Hello World; the time is now " + DateTime. Now. ToString(); } } OUTPUT: OBJECT:…

    • 1016 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Qwert

    • 536 Words
    • 3 Pages

    Issue 086 : Young people should be encouraged to pursue long-term, realistic goals rather than seek immediate fame and recognition.…

    • 536 Words
    • 3 Pages
    Good Essays