Skip to Main Content
VB.Net Web Developer's Guide
book

VB.Net Web Developer's Guide

by Syngress
September 2001
Intermediate to advanced content levelIntermediate to advanced
608 pages
23h 46m
English
Syngress
Content preview from VB.Net Web Developer's Guide
234 Chapter 6 • Advanced Programming Concepts
Imports System.Drawing
Imports System.WinForms
Public Class testform
Inherits System.WinForms.Form
2 Protected Sub cmdBlue_Click(ByVal sender As Object, ByVal e
As System.EventArgs)
3 Dim delMess As New delegatedemo()
4 Dim sMessage As String
5 delmess.showcolor(AddressOf blueMessage, "Hello World B ")
6 msgbox(sMessage)
7 End Sub
8 Protected Sub cmdRed_Click(ByVal sender As Object, ByVal e
As System.EventArgs)
9 Dim delMess As New delegatedemo()
10 Dim sMessage As String
11 delmess.showcolor(AddressOf redMessage, "Hello World R")
12 msgbox(sMessage)
13 End Sub
14 Private Function redMessage(ByVal sSmessage As String) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward

Publisher Resources

ISBN: 9781928994480