Advertisement Jump to content
Sign in to follow this  
Hannibal smith

XNA and problem

This topic is 1160 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i have build an application for 2d chart in, using XNA. Now i'd like to add a selection effect like this ; my problem is that: when i add the code for the selection in my xna application, visual studio said:

  Error      Overload resolution failed because no accessible 'New' can be called with these arguments:
    'Public Sub New(brush As System.Drawing.Brush, width As Single)': Value of type 'Microsoft.Xna.Framework.Color' cannot be converted to 'System.Drawing.Brush'.
    'Public Sub New(color As System.Drawing.Color, width As Single)': Value of type 'Microsoft.Xna.Framework.Color' cannot be converted to 'System.Drawing.Color'.    C:\Users\zzzzzz\mydoc\apptest\transpPrivewForm.vb    70    27  


Error    2    'FromArgb' is not a member of 'Microsoft.Xna.Framework.Color'.    C:\Users\zzzzzz\mydoc\apptest\transpPrivewForm.vb
    61    36 


Anyone know how can i do the same thing using only xna or how to solve this errors?


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!