DirectX SDK

Step 1: Create a Form

[C++]

This section pertains only to application development in Visual Basic. See Direct3D Immediate Mode C/C++ Tutorials.

[Visual Basic]

A Visual Basic form serves as your application window. Set the properties for your form in the following manner:

BorderStyle     =   1  'Fixed Single
Caption         =   "Triangle"
ClientHeight    =   3195
ClientLeft      =   5415
ClientTop       =   3300
ClientWidth     =   3720
LinkTopic       =   "Form1"
MaxButton       =   0   'False
MinButton       =   0   'False
ScaleHeight     =   213
ScaleMode       =   0  'User
ScaleWidth      =   254
StartUpPosition =   3  'Windows Default 

To show your application window, include the following line in your Form_Load procedure:

    Me.Show

With the application window ready, you can begin setting up the main DirectX objects, which is the topic of Step 2: Initialize System Objects.