Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

[RESOLVED]Need help with a quick problem in 2008 Express

$
0
0
Hi there! I'm new to Vb Forums. Just introducing myself. Anyways, I am a new Vb.NET programmer and I am starting to get the drift of things. Not close to good or basic , but anyways here is my problem. I am using a MsgBox and it has vbYesNo. If they click 'Yes' I want Vb to hide the Form1 and open Form2. Here is my code
Code:

Dim Answer As Long
        Answer = MsgBox("Are you sure you want to make a CoD 4 CFG?", vbYesNo, "Are you sure?")
        If Answer = vbYes Then
            Me.Visible = False & COD4.Show()

The error I get is with the & COD4.Show() . It says Expression does not produce a value . Any clue? Please don't make fun or anything I'm just starting! Thanks for your help!

Viewing all articles
Browse latest Browse all 42225

Trending Articles



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