Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Private Sub DrawNote(ByVal hIndex As Short,
Optional ByVal oBrush As Brush = Brushes.Black)

Optional ByVal oBrush As Brush = Brushes.Black 'does not word

tnx
Posted
Comments
Sergey Alexandrovich Kryukov 16-Nov-11 1:05am    
What "does not work", exactly? After all, this is off-topic. Do you know why? Because this site is for software developers; and the software developers don't say "does not work", they provide comprehensive issue report.
--SA
maytel mynt 16-Nov-11 1:48am    
When answering a question please:
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.

Let's work to help developers, not make them feel stupid.

1 solution

Check this out http://www.vbforums.com/showthread.php?t=647265[^]

and this http://www.xtremevbtalk.com/showthread.php?t=318853[^]

Brushes.Black is a read only property and a constant expression is required
 
Share this answer
 
v2
Comments
maytel mynt 16-Nov-11 1:49am    
will look into it
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900