944,149 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 512
  • VB.NET RSS
Aug 21st, 2007
0

How is this wrong?

Expand Post »
Okay,

I've read the documentation about Class INitializers, but they don't work for me.

VB.NET Syntax (Toggle Plain Text)
  1. Public class FGBGColors
  2. 'Inconsequential class
  3. end Class
  4.  
  5. Public Class ColorTableClass
  6.  
  7. Private m_HdrClrs = New FGBGColors With { _ ' <- End of Statement Expected
  8. .ForeColor = Color.Black, _
  9. .BackColor = Color.Gray, _
  10. }
  11.  
  12. end class

NOw this is done identical to MSDN.com but that's site is such BS because this has never worked.

Jaeden "Sifo Dyas" al'Raec Ruiner
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JaedenRuiner is offline Offline
17 posts
since Aug 2007

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: StreamReader change Readline operation
Next Thread in VB.NET Forum Timeline: AxMSCommLib.AxMSComm' is not defined





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


Follow us on Twitter


© 2011 DaniWeb® LLC