themes

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 26
Reputation: yaya_star is an unknown quantity at this point 
Solved Threads: 0
yaya_star yaya_star is offline Offline
Light Poster

themes

 
0
  #1
May 2nd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: themes

 
0
  #2
May 2nd, 2007
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.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: themes

 
0
  #3
May 5th, 2007
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.
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: bvvvb is an unknown quantity at this point 
Solved Threads: 1
bvvvb bvvvb is offline Offline
Newbie Poster
 
0
  #4
12 Days Ago
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC