samsmithnz Posted November 17, 2003 Posted November 17, 2003 I was wondering if there was some way that I could add a bit of shading to my forms, so they are not as plain,...? I know there is a new transparent property... Quote Thanks Sam http://www.samsmith.co.nz
Leaders Iceplug Posted November 18, 2003 Leaders Posted November 18, 2003 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. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
samsmithnz Posted November 18, 2003 Author Posted November 18, 2003 The system.drawing library souds promising. any hints on where to start? Quote Thanks Sam http://www.samsmith.co.nz
*Experts* Volte Posted November 18, 2003 *Experts* Posted November 18, 2003 The MSDN sounds like a good place. [msdn]System.Drawing[/msdn] Quote
samsmithnz Posted November 18, 2003 Author Posted November 18, 2003 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". Quote Thanks Sam http://www.samsmith.co.nz
*Experts* Volte Posted November 18, 2003 *Experts* Posted November 18, 2003 Well, you haven't told me what exactly you want to do, so I can't get any more specific. Quote
samsmithnz Posted November 24, 2003 Author Posted November 24, 2003 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() Quote Thanks Sam http://www.samsmith.co.nz
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.