Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27020

[RESOLVED] Nullable boolean with custom sub

$
0
0
Hi all. I'm trying to make a form appear at launch, and also make it so it doesn't show up if a radio button is checked true. This form is being used to update the application at launch, and I am using two radio buttons; one that will launch the updating form, and the other that will prevent it from launching, and if the user doesn't want it updating at launch, the other radio would obviously make it not do so, and not make the form launch at all (the form launch itself is located within the custom sub along with the updating code). The question I have here is if I was to have a code like such, what would I do when the NeverCheckForUpdate is selected?

Code:

If Preferences.CheckForUpdateNotifyAtLaunch.Checked = True Then
            CheckForUpdates()
        ElseIf Preferences.NeverCheckForUpdate.Checked = True Then

        End If

Is there any kind of null or do nothing that will prevent the CheckForUpdates() custom sub to fire when the NeverCheckForUpdate is checked? Thanks.

Viewing all articles
Browse latest Browse all 27020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>