Visual Basic Programming Tutorial: Functions, Loops, Arrays, and File Operations

Code

Imports System.Drawing.Printing

Public Class Form1

 Dim pSize As PaperSize

 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

MyBase.Load

 Dim InstPrinters As String

 ‘ Find all printers installed

 For Each InstPrinters In _

 PrinterSettings.InstalledPrinters

 cboPrinters.Items.Add(InstPrinters)

 Next InstPrinters

 ‘ Set the combo to the first printer in the list

 cboPrinters.SelectedIndex = 0

 ‘ Put the available paper sizes in a combo box for the

Read More

Cisco Router Configuration for Secure Network Connectivity

Router R1 Configuration

Basic Configuration

no ip domain lookup
hostname R1
enable secret ciscoenpass
line console 0
password ciscoconpass
login
exit
security passwords min-length 10
service password-encryption
banner motd #Unauthorized Access is Prohibited#

Interface Configuration

interface GigabitEthernet0/0/0
description Connection to R2
ip address 198.51.100.1 255.255.255.252
no shutdown
interface GigabitEthernet0/0/1
description Connection to S2
ip address 192.168.1.1 255.255.255.0
no shutdown
interface GigabitEthernet0/
Read More

Understanding Operating System Processes and Exceptions

Processes and Exceptions in Operating Systems

Process Management

A process is an instance of a program in execution. The operating system (OS) provides essential resources and abstractions for each process, including:

  • Logical Flows of Control:
    • Single-threaded programs have one flow of control.
    • Multi-threaded programs have multiple flows of control.
  • Private, Protected Address Space: Each process has its own isolated memory space for security and stability.
  • Abstracted Resources: The OS provides a layer of
Read More

Common Polymers: Types, Trade Names, and Applications

Phenolic Resins

Phenolic resins are formed by combining phenol (carbolic acid) with formaldehyde. They are known for their electrical insulation properties and are used in power supplies, handles, switches, plugs, housings, and various boxes. Trade names include Bakelite, Durito, and Resiform.

Urea Resins

Urea resins are synthetic materials made from urea and formaldehyde. They are commonly used in electrical equipment (switches, plugs), insulation boards, and kitchen items. Trade names include Pollopas,

Read More

Masonry Repair and Strengthening Techniques: A Comprehensive Guide

Masonry Repair Techniques

Drilling and Plugging

Un conjunto de letras blancas en un fondo blanco  Descripción generada automáticamente con confianza baja

The drilling and plugging method is suitable for repairing cracks that run in reasonably straight lines and are accessible at one end. This involves drilling along the length of the crack and grouting it to form a key using precast concrete or mortar plugs set in bitumen. The bitumen serves to break the bond between the plugs and the hole, preventing the plugs from cracking due to subsequent movement of the opening. For an enhanced seal, a second hole

Read More

Strengthening and Repair of Building Structures

Underpinning and Strengthening of Building Foundations

Methods for Underpinning Building Foundations

Pile and Beam Underpinning

Piles are installed beside the walls, and beams are inserted, both within the walls and through them, to join the tops of the piles. ABWsushMFBlJAAAAAElFTkSuQmCC

`Pynford’ Stool Method of Underpinning

1NmaEP4fOheQyxrrZY0AAAAASUVORK5CYII=

This method can be used where the existing foundations are in a poor condition, and it enables the wall to be underpinned in a continuous run without the need for needles or shoring.

Underpinning by Cantilever

Read More