Visual Basic 2010, I need help please

Status
Not open for further replies.

MrFun4Free

Senior
Original poster
senior
Joined
Jul 26, 2011
Posts
3,475
Reaction score
350
Points
0
Location
TBN
Hey guys, I need some help on Visual Basic 2010, I would like a simple code that when they click a button, a msgbox pop's up.

Also I would like a code where when they close the program (hit the X) A custom Msgbox comes up saying: Thanks for using blah blah blah.


Please help, I need these codes fast.:smug:
 

xkulikidzx

Member
member
Joined
Jan 17, 2011
Posts
14
Reaction score
1
Points
0
for the click a button a msgbox pops up one you double click the button then put msgbox ("anything here") keep the " in there.
 
  • Like
Reactions: MrFun4Free

MrFun4Free

Senior
Original poster
senior
Joined
Jul 26, 2011
Posts
3,475
Reaction score
350
Points
0
Location
TBN
for the click a button a msgbox pops up one you double click the button then put msgbox ("anything here") keep the " in there.

and what about the red X button?
 
K

KamaluNg

Guest
Double click on your form.

it should be titled: private sub loaded (or something like that)

change loaded to close or closed. then at the end of the line change the form.loading to form.closed or something like that....

Then all the code you write under there will be what happens when you press the X
I'm on my phone but if i remember correctly that will work.
 

xkulikidzx

Member
member
Joined
Jan 17, 2011
Posts
14
Reaction score
1
Points
0
Double click on your form.

it should be titled: private sub loaded (or something like that)

change loaded to close or closed. then at the end of the line change the form.loading to form.closed or something like that....

Then all the code you write under there will be what happens when you press the X
I'm on my phone but if i remember correctly that will work.
What he said.....
 

gino

Member
member
Joined
Aug 14, 2011
Posts
18
Reaction score
3
Points
0
Double click on your form.

it should be titled: private sub loaded (or something like that)

change loaded to close or closed. then at the end of the line change the form.loading to form.closed or something like that....

Then all the code you write under there will be what happens when you press the X
I'm on my phone but if i remember correctly that will work.


You should learn the basics the first thing to learn in vb when dealing with the GUI is the msgbox
 

MrFun4Free

Senior
Original poster
senior
Joined
Jul 26, 2011
Posts
3,475
Reaction score
350
Points
0
Location
TBN
kk thanks guys, ima try it
 
Status
Not open for further replies.