\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Game Programming > Managed DirectX > DrawText Error


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
\r\n
Code:
\r\n
fntOut.DrawText(Nothing, IIf(bRenderWireframe, "F1 - Solid", "F1 - Wireframe"), _\r\n                        New Drawing.Rectangle(5, 5 + (5 * (iFontSize + 6)), 0, 0), _\r\n                        DrawTextFormat.Left Or DrawTextFormat.Top, _\r\n                        Drawing.Color.FromArgb(255, 200, 128, 64))
\r\n
Recently I\'ve been having problems with the sprite part of the DrawText function. I want the Sprite to be \'Null\' because the SDK says that if you leave it null it will just create its own sprite. For some reason when I use nothing or null, I get errors. Anyone have any ideas?
\r\n
\r\nfntOut.DrawText(Nothing, <-' + '- this is the part of the code that is giving me an error.
\r\n
\r\nI don\'t remember having to even deal with sprites in the past. Whats the deal?
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[1148839] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 05-20-2006, 08:12 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
Moohasha\'s Avatar\r\n\r\n
\r\n \r\n Moohasha\r\n Moohasha is offline\r\n\r\n\r\n
Prev Previous Post   Next Post Next
  #1  
Old 05-05-2006, 03:36 AM
SpiralEdge's Avatar
SpiralEdge SpiralEdge is offline
Regular
 
Join Date: Sep 2004
Posts: 51
Default DrawText Error


Code:
fntOut.DrawText(Nothing, IIf(bRenderWireframe, "F1 - Solid", "F1 - Wireframe"), _
                        New Drawing.Rectangle(5, 5 + (5 * (iFontSize + 6)), 0, 0), _
                        DrawTextFormat.Left Or DrawTextFormat.Top, _
                        Drawing.Color.FromArgb(255, 200, 128, 64))
Recently I've been having problems with the sprite part of the DrawText function. I want the Sprite to be 'Null' because the SDK says that if you leave it null it will just create its own sprite. For some reason when I use nothing or null, I get errors. Anyone have any ideas?

fntOut.DrawText(Nothing, <-- this is the part of the code that is giving me an error.

I don't remember having to even deal with sprites in the past. Whats the deal?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->