JMC network
Welcome Guest!
-------------------
Please Register In Our Forum To get Full Access of Our Forum
- If your not registered, you can click the 'register' button at the end of this message..
- If you are already registered, Please login... Use the button at the end of the message..

**Please Take Part in What Keeps Happening Daily In Our Forum**
---
Forum Administrators -
Jake, Majii and Chris!

JMC network

JMC network for all of you
 
HomeHome  JMC ChatJMC Chat  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 [VB8 TuT] Some Codes You Can Use To Create A Cool Application (Included With Tutorial!)

View previous topic View next topic Go down 
AuthorMessage
Ximster
Admin
Admin


Posts : 10
Join date : 2009-10-29
Age : 21
Location : The Soul Tombs.....

PostSubject: [VB8 TuT] Some Codes You Can Use To Create A Cool Application (Included With Tutorial!)   Sat Oct 31, 2009 1:22 pm

1. Create a new project and name it whatever you want!
2. Set up the form however you want! (In This Case... Its A Key Generator ... Because it will show some text in a text box...)
3. Create:
1 Button
1 Label
1 Text box
4. Rename Label To "Key:"
5. Double Click On Button And Type:

TextBox1.Text = Int(Rnd() * 9)
Select Case TextBox1.Text
Case 0
TextBox1.Text = "Enter your Text Here!"
Case 1
TextBox1.Text = "Enter your Text Here!"
Case 2
TextBox1.Text = "Enter your Text Here!"
Case 3
TextBox1.Text = "Enter your Text Here!"
Case 4
TextBox1.Text = "Enter your Text Here!"
Case 5
TextBox1.Text = "Enter your Text Here!"
Case 6
TextBox1.Text = "Enter your Text Here!"
Case 7
TextBox1.Text = "Enter your Text Here!"
Case 8
TextBox1.Text = "Enter your Text Here!"
End Select
End Sub
End Class

6. So Yea... That's Pretty Much It...
--------------------------
Here is a cool code:

Background Music: (Double Click On Form1 And Enter This Code... Be Sure To Change The Parts Which Doesn't Make Any Sense!)
1. Right click on your project (on the side bar of the screen; on top!) And go to Properties...
2. Go to Resources And Import An Audio File!
3. Keep In Mind The Name Of The Song!

NOTE: Song Format Should be *.WMV!!
Code: My.Computer.Audio.Play(My.Resources. (THE NAME OF THE AUDIO SONG WHICH YOU KEPT IN MIND!) , AudioPlayMode.BackgroundLoop)
Eg: If The Name of The Song Is: jmc_theme
Code: My.Computer.Audio.Play(My.Resources.jmc_theme, AudioPlayMode.BackgroundLoop)
--
If You Dont Want Music To Loop Then Erase The Word "Loop" At The End Of Code....
--------------------------


Last edited by Jake on Sun Nov 01, 2009 12:04 am; edited 1 time in total (Reason for editing : i didn't complete this thing last night... so i finished it today!!)
Back to top Go down
View user profile http://www.jmc-network.tk
 
[VB8 TuT] Some Codes You Can Use To Create A Cool Application (Included With Tutorial!)
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» So who is good with option codes...
» Friend Codes & Friend Safari
» Pokemon 5th Generation Sneak Peek!
» WII mx vs atv untamed
» Wanted thundurus & Reshiram

Permissions in this forum:You cannot reply to topics in this forum
JMC network :: Tutorials :: C++ / C / Visual Basic-
Jump to: