Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

What do you mean by "shading"?

You mean like a gradient in the background, or do you mean like another color?

In case of the latter, you can set the form's BackColor property.

For a gradient, you'd probably have to get a gradient brush from the System.Drawing libraries. :)

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Posted

haha i knew that. What I meant was theres so many namespaces in the GDI+, and i've only really developed business applications, so i was wondering if you knew more than jsut sugguesting a class to look at.

 

Its kind of like me saying "have you looked a system.directx".

Posted

For future reference this is what I was looking for:

 

Give it a try, its cool.

 


       'Draws a gradient using the specified colos on the entire page
       Dim objBrush As New Drawing2D.LinearGradientBrush(Me.DisplayRectangle, color.blue, color.white, Drawing2D.LinearGradientMode.Vertical)
       Dim objGraphics As Graphics = Me.CreateGraphics()

       objGraphics.FillRectangle(objBrush, Me.DisplayRectangle)

       objBrush.Dispose()
       objGraphics.Dispose()

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...