Important Questions and Answers on Visual and Internet Programming – Part 1

Introduction to Visual & Internet Programming

what is Visual Programming?
Visual Programming is a programming model that allows developers to create software 
applications using graphical interfaces and visual elements, rather than writing code in a 
text-based format.
Key Characteristics of Visual Programming:
  1. Graphical Interface
  2.  Drag-and-Drop Components
  3.  Rapid Application Development (RAD)
  4.  Minimal Coding:
Examples of Visual Programming Tools:
  • Scratch:
  • Visual Basic 6.0:
  • Visual Studio (Windows Forms/WPF)
  • Node-RED:
  • Unreal Engine Blueprints

Visual programming vs Traditional programming

Concept of visual basic

What is Visual Basic(VB)?
Visual Basic is a high-level programming language developed by Microsoft. It's designed to make easily to create Windows applications, especially with graphical user interfaces (GUIs). It is an event-driven language that allows developers to drag and drop controls (like buttons and textboxes) onto a form and write code for them.

Design:


Code:

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim IntNumber1 As Integer
        Dim IntNumber2 As Integer
        Dim IntSum As Integer

        IntNumber1 = Number1.Text
        IntNumber2 = Number2.Text
        IntSum = IntNumber1 + IntNumber2
        Sum.Text = IntSum

    End Sub

Label properties of label control:



The common properties of the text box control area



The common properties of the button 



Variable declaration:
  • A variable is a named storage location in a computer's memory that holds a value or data.
  • It should be a unique name for each storage, used to identify it within the program.
  • Every variable has an associated data type, such as integer or string, etc, to specify the type of data it can hold.
  • Dim statement is used to declare a variable in VB. (Syntax: Dim variable name As Data type).









Concept of Multiple Document Interface (MDI)

What is Multiple Document Interface?
Definition: Multiple Document Interface (MDI) is a user interface design where multiple documents 
or windows can be opened and managed within a single parent application window. Each document 
is displayed in its own child window, which is contained within the main application window.
➢ The main form called MDI form is a container for all other windows and It is called the parent 
form/window.
➢ The window in which individual documents are displayed is called child form/window.
➢ Child forms exist independently, but they are bound to the parent form.



Create an MDI Application:
✓ Create a form.
✓ Design that form according to your needs.
✓ Make it a parent form.
✓ Set the IsMdiContainer property of the form to True to make any form as parent form.
✓ Now create multiple forms that you need.
✓ To make these forms as a child form, you have to set Mdiparent property of the name of the parent form. 


ActiveX Controls:
An ActiveX control is like a little pre-made tool or gadget you can add to your Windows 
programs (like a calculator button or a calendar).
How it helps: Instead of building everything from scratch (like making a clock yourself), 
you use an ActiveX control (like a pre-built clock) that someone else made. You just drop it 
in and tell it what to do.
Ex. Imagine you’re building a toy house (your app). ActiveX controls are like pre-made 
parts (e.g., a door, a window) you buy from a store. You stick them into your house, and 
they work right away, no need to carve them yourself!

Examples: 
➢ A calendar to pick dates.
➢ A media player to play videos or music.
➢ A chart to draw graphs. Etc








No comments

Theme images by hdoddema. Powered by Blogger.