944,149 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 6751
  • VB.NET RSS
May 2nd, 2007
0

themes

Expand Post »
i need to make a theme form, chossing two colors, and make them in all of the project forms using this code maybe:

Sub RepaintForm()
grbrush = New System.Drawing.Drawing2D.LinearGradientBrush(New Point(0, 0), _
New Point(Me.Width, Me.Height), x, y)
Me.CreateGraphics.FillRectangle(grbrush, New Rectangle(0, 0, _
Me.Width, Me.Height))
End Sub
Private Sub frmThemes_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
RepaintForm()
End Sub
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
yaya_star is offline Offline
26 posts
since Jan 2007
May 2nd, 2007
0

Re: themes

I don't think you need themes. The whole dotnet thing is bloated enough, no need to add to that by having each frame rendered as your own theme.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
May 5th, 2007
0

Re: themes

You can just type that code into a class file and whenever a new form is created just call the class file in the load event. This should do it.
Reputation Points: 347
Solved Threads: 13
Practically a Posting Shark
arjunsasidharan is offline Offline
812 posts
since Aug 2006
Nov 18th, 2009
0
Re: themes
Reputation Points: 10
Solved Threads: 1
Newbie Poster
bvvvb is offline Offline
2 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Internet Cafe Software
Next Thread in VB.NET Forum Timeline: VB2008 - Write data to sql database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC