我需要VB.NET的帮助 [英] I need help in VB.NET
本文介绍了我需要VB.NET的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我意外地在Visual Studio应用程序设置中设置My.Setting现在我想删除但失败我也从设置部分删除它但仍然我的软件更改没有显示。我应用此设置..请帮助我。
accidentally i set My.Setting in Visual Studio App Setting now i want to remove but failed i also delete it from setting section but still my changes in software not showing.i applied this setting..please help me out.
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'My.Settings.TrialActive = True
'My.Settings.StartDate = Date.Today
'My.Settings.TrialUsed = False
'My.Settings.Save()
MsgBox("Trail Extended Successfully")
End Sub
Private Sub checkdate()
Dim dt As Date = My.Settings.StartDate
Dim days As Double = (Date.Now.AddDays(-1).Subtract(dt)).TotalDays
If days <= 0 Then
My.Settings.TrialActive = True
My.Settings.Save()
'MsgBox("This Is Trail Version")
Else
My.Settings.TrialActive = False
My.Settings.TrialUsed = True
My.Settings.Save()
MsgBox("Your Registration hasbeen Expire!")
End If
什么我试过了:
What I have tried:
My.Settings.Reset()
My.Settings.Save()
推荐答案
如果你打算从Button2_click调用checkdate(),那你就忘了。
If you planned to call checkdate() from Button2_click, then you forgot.
这篇关于我需要VB.NET的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文