By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.