@MrBejta There is No straight function in VB to find Percentage. Try this : Dim Amt, P, R, T, I as Double P = val(Textbox1.Text) R = val(Textbox2.Text) T = val(Textbox3.Text) I = (P*R)/100 *T Amt = P + I Label1.Text = “Interest :” & I Label2.Text = “Total :” & Amt
@duodot14 жыл бұрын
cool^^ and i love the music you're usingin your vids:)
@julieatian51437 жыл бұрын
thank you very much for the person who made this code. it helps me a lot for my final project. really don't know what to do, if you didn't made this. thank you very very much
@itsaji14 жыл бұрын
@MrBejta Eg: 15 % on 1500 € for 2 year Formula for Simple Interest = Principal × Rate × Time P = 1500 R = 15 T = 2 Interest = ((P * R)/100) *T Total = P + Interest
@armelt.carguerajr.43749 жыл бұрын
When i Click na Button it didn't move to a black button.. help please . :/
@kerbydoblas74498 жыл бұрын
Thank you for all info i finish my program now :) Im so thankful those people giving me information :)
@EsAiEks12 жыл бұрын
hi Sir!. Thanks to this Vid!. It really helped me in my project in GameDev!. Super Thanks!. :)
@yevinsebastian81718 жыл бұрын
I try to do this in visual studio 2012, ¿why it doesn´t work?
@jyothinangunuri167910 жыл бұрын
The numbers are not moving from one box to another box why
@fredykiller2412 жыл бұрын
me podrias decir el nombre de la cancion ? jejeje tocar guitarra es mi otra pasion aparte de programar :D buenisimo tuto por cierto va para mis favoritos!
@sebastianvipond5718 жыл бұрын
How might I add pictures to move with the numbers? More like a picture puzzle game.
@Tonio211012 жыл бұрын
This is so simple. I made this puzzle with the ability to move more than one button at once, just like the one in Windows Vista/7
@jeffreyelizaga51114 жыл бұрын
Sir how about the looping in 3x3?
@akramestta14 жыл бұрын
man you are the best ! but can you explain the code of the shuffle in the module cuz i don't understand it at all. please answer me see you !
@rubenraj338710 жыл бұрын
Overall good and the video helpful fr me. I found u hd a mistake tat u declared wrong buttons for button number 5..
@havocshasvsveena673110 жыл бұрын
Hi
@YLVision11 жыл бұрын
Can u explain the shuffle subroutine
@mcqueccu13 жыл бұрын
great...Love it love it love it
@haveabestlife12 жыл бұрын
Hey! I Added The Shuffle Code But when i played it, the app was not visible at all and the mesagebox also dint worked!
@deisybermudez876211 жыл бұрын
Hola Itsaji, tengo un problema en la subrutina para mostrar los botones al azar, en la sentencia: RN = CInt(Int((15 * Rdn()) + 1)), no he logrado comprender dónde está declarado Rdn, ojalá pudieras ayudarme. Saludos.
@zairamaeocampo43368 жыл бұрын
good job ! i like it ☺
@kerbydoblas74498 жыл бұрын
all button are working except button 9 it didn't move to button 5 only but it's move to button 10 and 13 so plss help me.
@liormak58736 жыл бұрын
can u do this in 2008 version?
@carlsberxithub371111 жыл бұрын
hello sir i am using vb.net 2008 and i follow all your steps in the checkbutton module but it doesn't work....please help sir?
@MikeObeyMe12 жыл бұрын
Does This Work on Vb 2008 profi.
@lubomyrstefanov877910 жыл бұрын
How to make it restart the counting in the top left when you click shuffle... i mean it still counts from before you shuffle
@shaunzhang7336 жыл бұрын
Put count = 0 at the end of the shuffle event
@SreenikethanI8 жыл бұрын
Actually instead of creating separate Subs for each Button, you can just use the AddHandler statement at the startup of the Form. I mean like using a For loop to go through each Control in the Controls property of the form, then checking whether it's a Button, then using the AddHandler statement like this: AddHandler CurrentControl.Click ActionSub And ActionSub is a Sub with "sender As Object" and "e as EventArgs" as parameters. Then in the ActionSub, you can check the sender's surrounding... wait now that's a problem. Or use the TableLayoutPanel control. It's easier.
@shaunzhang7336 жыл бұрын
That's right, it would be better to just select all the buttons, go to the event section in properties, and click on the onclick event twice, and use a sender statement in a select case situation to check the buttons, like case button1.text, checkbutton 2, 5, etc. If you want to check the sender's surrounding, you have to know where the empty button (the button that does not contain the text) is, and you may need to use the empty button location, and check the clicked button location + the size of it, and if there are gaps between one button and the next, you need to add the gap number as well (not too sure if I am right or not), I don't know how to make the program work like this.
@shaunzhang7335 жыл бұрын
Now I know how to check the sender's surrounding, there's really no need to use a tablelayoutpanel at all for this.
@syedshahrukhali43929 жыл бұрын
plz tell me why my some numbers are missing and some are repeated
@deklp10010 жыл бұрын
can you tell me code button9 and button10
@ISIS-ks8ir13 жыл бұрын
Great vid, really helpful
@debesteniels11 жыл бұрын
if i shuffle the buttons the score doesn't reset what do i have to do to reset the clicks i made?
@shaunzhang7336 жыл бұрын
Put click = 0 at the end of the sub shuffle event, just before end sub
@sateshsukram555010 жыл бұрын
Hey I made the game, but when I click the play button it says "There were build errors. Would you like to continue and run the last successful build?" ...Can anyone help me with that??
@alfreddiomangay75969 жыл бұрын
thank you for this tutorial.. i made it work. Question: how can i reset the click counts?
@shaunzhang7336 жыл бұрын
You only need to put Form1.count = 0 at the last line of the shuffle event.
@dr.richardtrager93235 жыл бұрын
Well if you do the counting with a label like me ... and a shuffle button then just type that into the shuffle button: Label1.text = "" Form1.count = 0
@ronakjhala70375 жыл бұрын
Thank you so much for this amazing video. It's a really easy tutorial and I didn't feel any difficulty/error while making it. 🙏
@ABMultimediaDesigner12 жыл бұрын
Can I use pictureboxes instead?
@mamayguimovlog32239 жыл бұрын
good day.. can you help me with my problem about the coding? i'm having a multiple number in my number box.. what could be the problem?
@shaunzhang7335 жыл бұрын
Look at the code I posted, you need to make sure flag = true and flag = false are in the correct place, and you should see no repeats.. Besides, here is another way to random, and this should work (you need to use at least VB 2017 or else it may not work) Dim Random as New Random Dim Numbers = Enumerable.Range(1, 15).ToList For I = 1 to 15 If Numbers.Count = 0 Then Exit For Dim index = Random.Next(Numbers.Count) Controls("Button" & i).Text = Numbers(index) Numbers.RemoveAt(index) Next Button16.text = ""
@timkelley288210 жыл бұрын
Now when i create a new windows form is it C#
@kerbydoblas74498 жыл бұрын
what code for button 9 ? its not working
@Hardrockerzz1512 жыл бұрын
wht song is this pls tell
@timeoriginal96889 жыл бұрын
This program is a little bit flowchart request
@jayhilmes9012 жыл бұрын
Can you plese tell me the code for 9,10,11 and 12.
@shyampatel573611 жыл бұрын
Hey... Can u send me a code i can't understand in button 9,10,11 and 12 plz
@rubisoto712512 жыл бұрын
muy buen video tutorial muy completo
@thinaneshan20099 жыл бұрын
Can you please tell me the codes of button 9 and 10....
@tesfahungunta27338 жыл бұрын
Gyhhu
@RitheaSen11 жыл бұрын
CAn you tell me code Button9 and Button10.
@bahadorvafadar669111 жыл бұрын
What is the name of the song? :)
@aljohnteodoro235312 жыл бұрын
Me too! When I started to debug it, the app was not visible.
@lunden133912 жыл бұрын
Made some changes to this so count won't count if there's not an empty button next to it and it won't count if you're clicking on an empty box. added a reset to count in shuffle aswell. you can find the code for that here pastebin dot com/0sz7EThf
@itsaji12 жыл бұрын
Gracias y buena suerte con su programación vb
@mfauzikushardian31537 жыл бұрын
Thanks for your information sir,
@itsaji14 жыл бұрын
@TheEpicNewb Thanks ..!
@aljohnteodoro235312 жыл бұрын
HEY! MINE WAS NOT COUNTING ITS CLICKS AND THE SHUFFLE's NOT WORKING.
@DerKaptain114 жыл бұрын
goot tut, but can you tell me the musik name of this video ??!! MFG DerKaptain1
@kuwentokatotohanankasaysay75548 жыл бұрын
Thanks Bro! :)
@mumbai48628 жыл бұрын
Good Job!
@julieatian51437 жыл бұрын
9 and 16?
@jackbrewlabel10038 жыл бұрын
Fuckin' thanks U homie U damn it save me
@tkar6612 жыл бұрын
of course
@musiclover-xy8ii5 жыл бұрын
Thank you
@Tigerblackshirt9 жыл бұрын
THX so much : )
@sateshsukram555010 жыл бұрын
It's not letting me play the game
@petercook9329 жыл бұрын
Nice video but it would have been better had you either added comments to the code to explain what you were doing or added a voice track instead of music. The most critical point in the code was the shuffle and yet it was the part with the littlest amount of time on it. I had to stop the video and copy what you had done. See my code below Sub Shuffle() Dim a(15), i, j, RN As Integer Dim flag As Boolean flag = False i = 1 a(j) = 1 Do While i 14 Then Exit For 'exit here as we will have apiiled the text to buttons 0 to 14 ctrl.Text = a(i) i += 1 End If Next 'set the bottom right button (16th Tile) to no text Form1.Button16.Text = "" End Sub I reset the Click counter at the bottom of the CheckSolved sub in the if statement that checked if the puzzle had been solved.
@mdcomputercenter21556 жыл бұрын
thanks for the code
@shaunzhang7335 жыл бұрын
Just use this code under loop in the shuffle event, it will work (I've tested it). For I = 1 to 15 controls("Button" & i).text = a(i) Next Button16.text = "" If the random code is done in a Module, use the following code instead (though it is similar to the previous one) Form1.controls("Button" & i).text = a(i) Next Form1.Button16.text = ""
@kevnar10 жыл бұрын
Control arrays would have made this so much simpler.
@iamrichmirs9 жыл бұрын
+kevnar hi, do u have tutorial like this? can u please teach me.. thanks
@kevnar9 жыл бұрын
Control arrays were a VB 6 thing. I don't think you can do them in VB.net. Not directly, anyway.
@iamrichmirs9 жыл бұрын
ahh..ok, thanks for the info.
@jayhilmes9012 жыл бұрын
does anyone know the coding for 9,10,11 and 12
@valentinoriva55664 жыл бұрын
bro can yuo give the code plz?:)
@kaustubh215 жыл бұрын
BGM = Peace.........!
@onilvillegas93611 жыл бұрын
it doesnt work on me . wen i click a number it doesnt move :(( pls help me
@dreanics_5 жыл бұрын
same
@shaunzhang7335 жыл бұрын
Please see my comment on this, I got all the codes there.
@itsaji14 жыл бұрын
@DerKaptain1 I don't have any info on the music .. I picked it from some old .. random music files.
@charlenezaide10 жыл бұрын
thank you sir :)
@jesseosarobo11 жыл бұрын
Hello can you email me the codes pls? it's not very clear on here
@vshelper34199 жыл бұрын
the buttons don't move
@shaunzhang7336 жыл бұрын
The buttons don't move, just the number moving into the button that has nothing when you click on a button that has a number and is adjacent to (next to) the button that has nothing
@jay-rruiz94511 жыл бұрын
clicks doesn't count on me please help
@jay-rruiz94511 жыл бұрын
oh! nvm.. :)
@bonulti11 жыл бұрын
source code?
@michaelangelo41767 жыл бұрын
Thanks!!!
@MegaDastaan7 жыл бұрын
someone please post this project here
@shaunzhang7335 жыл бұрын
Please see my comment.
@achrefabidi820811 жыл бұрын
hello! the code please
@TiagoDaniel1311 жыл бұрын
Thanks :D
@kenzieradityatirtarahardja74698 жыл бұрын
i wont show up the msgbox
@shaunzhang7335 жыл бұрын
You may want to use a status strip to show that the game is completed, as well as the move count, maybe even the amount of time taken to play the game
@elta85538 жыл бұрын
I created a web browser with visual basic 2010.
@kenzieradityatirtarahardja74698 жыл бұрын
how
@Asst_Lec_Yousif9 жыл бұрын
I need to code ples
@arturodavilabravo139112 жыл бұрын
muy bueno-
@relliennegauran25287 жыл бұрын
there's a error in my program, it says that "HAndles Clause requires a WithEvents variable defined in the containing type or one of its base types Help me Please!
@antonyfuentes34966 жыл бұрын
a mi me interesa amigo
@shaunzhang7335 жыл бұрын
Further to my previous comment, the following code will make a message box appear when the user clicks shuffle after the game is already started. Private Sub tsShuffle_Click(sender As Object, e As EventArgs) Handles tsShuffle.Click If finished = True Then Shuffle() If start = False Then Shuffle() If start = True Then If vbYes = MsgBox("This puzzle is in progress." + Environment.NewLine + "Are you sure you want to shuffle?", MsgBoxStyle.YesNo, "Puzzle is in progress") Then Shuffle() Else End If End If End Sub
@godhandgaming44805 жыл бұрын
where is source code
@godhandgaming44805 жыл бұрын
can you send me
@godhandgaming44805 жыл бұрын
and your awsome
@shaunzhang7335 жыл бұрын
@@godhandgaming4480 Just use my code. Sort by Newest first, and see my comment, all the codes are there.
@shaunzhang7335 жыл бұрын
@@godhandgaming4480 Actually I have two comments, which make the game more complete.
@tempereddust7 жыл бұрын
This code creates Insolvable shuffle from time to time. Needs a better shuffle code
@maleplatypus6 жыл бұрын
agreed would be useful to not have unsolvable puzzles
@shaunzhang7335 жыл бұрын
No shuffle games are unsolvable, it is just the way you solve it can make it harder to solve in the end. The point is to get the number 1 to 8 first, then get 9 and 13 into the right place, and then get 10 and 14 into the right place, and the rest should be quite straightforward. Also, it would be a good idea to put the number you are going to move behind the number that is 1 number greater than it, for example, if you want to solve 3, put 4 on top, 3 on the bottom of 4, this way, when you move 4 into the place where 3 is supposed to be, and then move 4 to the right, then you will be able to insert 3 into where it is supposed to be. I once found that shuffle game was not easy to solve, but it turns out to be very easy as soon as I watched videos on how to solve slider puzzles. You may want to check out how to solve number shuffle puzzle game on youtube for more details.
@shaunzhang7335 жыл бұрын
The above solution may sometimes cause you to stuck, but you could try and figure out a fix for that. Again, search for guides on how to solve number shuffle puzzle game for solutions.
@shaunzhang7335 жыл бұрын
After investigating this further, I found that there are indeed unsolvable puzzles in this case, maybe there need to be a code to deal with the parity issues.
@shaunzhang7335 жыл бұрын
While I don't have any way to make the game always solvable every time it resets, there is a way around it. When the movecount (or clicks) reaches a certain number there will be a message box warning you saying that the game may not be solvable, and ask you if you want to reset the game or not. In the checkbutton subroutine, under movecount += 1, or click +=1 (depends on what you use), put this code in. If movecount = 200 or movecount = 250 then if vbyes = msgbox("There is a chance that this puzzle is unsolvable, do you want to reset the puzzle?", vbYesNo, "Possibly Unsolvable") then shuffle() Else End if End if
@502ricardo11 жыл бұрын
Tell me what makes each of these things? Dim a(15), i, j, RN As Integer Dim Flag As Boolean Flag = False i = 1 a(j) = 1 Do While i
@shaunzhang7335 жыл бұрын
This is simply a code that prevent random numbers from repeating. Do while I
@kerbydoblas74498 жыл бұрын
somebody else who can help me plsss, help me
@mdcomputercenter21556 жыл бұрын
haha manage to do thay in visual basic 6.0, it is much easier
@polya15804 жыл бұрын
Можно код игры
@Fieldy665412 жыл бұрын
awesome vid, but muted
@petercook9329 жыл бұрын
Further to my comment below I found a bug in my code below is the revised code Dim a(15), i, j, RN As Integer Dim flag As Boolean flag = False i = 0 a(j) = 0 Do While i
@Dripz_Kdot9 жыл бұрын
+Peter Cook You should do another tutorial.. I'm actually doing this as a project so I kinda need help on certain things
@SoundASculptorI8 жыл бұрын
failure
@SahanMendis11 жыл бұрын
Same here :(
@Sumrandomdouchebag18 жыл бұрын
basic is one ulgy language
@k00mikhacking-gaming819 жыл бұрын
don't work ! :D
@bahez1111 жыл бұрын
good tutrial but bad video and ex planes
@vshelper34199 жыл бұрын
bahez hawlery Baad spealing two
@danykl90309 жыл бұрын
+VSHelper & +bahez hawlery you both have bad spelling
@bahez119 жыл бұрын
u r right:d i dont even remember when i commented on this video