Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

is it possible so that when the user clicks on exit in the mainmenu, it exits, and then displays a messagebox? vise-versa. this doesn't work:

 

Form1.ActiveForm.Close() & MessageBox.Show ("This method does not work please help!")

 

if there is no way then how would you link the Exit to another Form, and then when you click OK on the other form it quits both forms?

  • *Experts*
Posted

Like this :) :

Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
       MsgBox("Your message here")
End Sub

Posted

whosyodaddy, I have seen you ask a lot of *simple* questions, I think it might be an idea for you to look into buying a small book on basic events and happenings in VB. Or look at some online samples/tutorials to see how the application hangs together.

 

It will increase the speed at which you learn, and you have something to compare against.

 

 

 

*My definition of simple :)

Posted
Grimfort, i am new to .NET and just need to know some simple stuff. Books don't provide the answers i need though. I'm thinking of buying "Visual Basic.NET Step by Step". These forums are also a friendly environment and understand what i need help with.
Posted

Forums are very useful, no doubt about that. When I started, I went through a few books (online samples) to work out OOP basics and things like creating forms, adding menus, adding code to events etc etc...

 

There are lots of good books about, you should look if you are thinking of learning seriously.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...