Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm getting an error "Compiler Error Message: BC30035: Syntax error" for this code - can someone please help me out?

VB
Protected Sub calArrive_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Handles calArrive.SelectionChanged()
    txtArrivalDate.Text = calArrive.SelectedDate.ToShortDateString
End Sub
Posted
Updated 19-Sep-15 7:38am
v2
Comments
Richard MacCutchan 19-Sep-15 12:57pm    
Where?
ZurdoDev 19-Sep-15 13:54pm    
I haven't done VB in a long time but I don't think you should have () after the Handles calArrive.SelectionChanged

1 solution

I think () is needed at end....

C#
txtArrivalDate.Text = calArrive.SelectedDate.ToShortDateString()
 
Share this answer
 
v4
Comments
Maciej Los 22-Sep-15 3:32am    
I agree with (), but disagree with ;. The question is tagged as VB.NET. Semicolon is specific for c#, java, etc.

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