470,628 Members | 2,344 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,628 developers. It's quick & easy.

How to show DirectX in Visual Basic of Visual Studio 2005 Beta 2 ?

Hello. To see the graphics of technology DirectX 9.0 SDK Update - June 2005
in project Visual Basic, WindowsApplication1 from Visual Studio 2005 Beta 1,
in file My Project, MyApplication.vb in a method:

<Global.System.Diagnostics.DebuggerStepThrough() > _

Protected Overrides Sub OnCreateMainForm()

Me.MainForm = My.Forms.Form1

End Sub

instead of a line (Me.MainForm = My.Forms.Form1) I wrote down a code from
Tutorials DX:

Dim frm As New Form1

If Not frm.InitializeGraphics Then

MessageBox.Show(":")

Return

End If

frm.Show()

While frm.Created

frm.Render()

Application.DoEvents()

End While

and the graphics normally appeared on main Form1 and on the subsequent
instances of Form1 (after click of the Button on this Form1).

Now I have installed Visual Studio 2005 Beta 2, and in project Visual Basic,
WindowsApplication1 in file My Project, Application.Designer.vb in a method:

<Global.System.Diagnostics.DebuggerStepThrough() > _

Protected Overrides Sub OnCreateMainForm()

Me.MainForm = Global.WindowsApplication1.Form1

End Sub

instead of a line (Me.MainForm = Global.WindowsApplication1.Form1) I have
written down the same above mentioned code from Tutorials DX.

However now there is a panel with the message "Pass Microsoft data on an
error". If in file Application.Designer.vb to change nothing, and to write
down the same above mentioned code from Tutorials DX in handler of click of
the Button on Form1, after occurrence of Form1 and click of the Button,
graphics of DirectX appears normally.

Inform, please, how to show the graphics of DirectX on main Form1 in
project Visual Basic, WindowsApplication1 from Visual Studio 2005 Beta 2 ?

Beforehand many thanks for the answer. Mr. Zharkov V.A., Moscow, Russia.
Nov 21 '05 #1
0 1321

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bootstrap Bill | last post: by
14 posts views Thread by Jessica Weiner | last post: by
10 posts views Thread by gerry | last post: by
11 posts views Thread by =?Utf-8?B?UGV0ZXI=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.