Hello,
I am a new to vb.net and daniweb
I am working with an application (A Small game) in which on special days, there is a sale in the game market, which is with game money.
For it, I Have a boolean data type in the settings (My.mysettings) named special. I Also have a form named 'SpecialDay'. When I
Open my application on those special days, the special day form would come. Plz. See this code:
If Now.Day = 25 And Now.Month = 12 Then
specialday.Label3.Text = "For Celebrating Christmas"
specialday.ShowDialog()
settings.special = True
ElseIf Now.Day = 1 And Now.Month = 1 Then
specialday.Label3.Text = "For Celebrating New Year!"
specialday.ShowDialog()
settings.special = True
ElseIf Now.DayOfWeek = 7 And Now.Month = 5 And Now.week = 2 Then
specialday.Label3.Text = "For Celebrating Mother's Day"
specialday.ShowDialog()
settings.special = True
Else
settings.special = False
End If
settings.Save()
The first 2 of them worked perfectly. I Also want Mother's day and Father's Day. I Tried to do it, by defining Date, Month, week but an Error comes in the week. Plz. Anyone help me.