Code-nundrum *SOLVED*

Start your word games and stuff in here for people to take part and have fun with.
20 posts Page 1 of 2
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4390
Joined: Tue Aug 04, 2009 1:47 am

Code-nundrum *SOLVED*
CodenStuff
Hello everyone,

Thought I would start a new game for you. This one is a quick little code puzzle for you to work out. I have made a realy amazing application that is going to be the best thing ever and here is a screenshot:
sshot-43.png
The problem is my code doesnt work cryer; please look at my code and see if you can figure out why?

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Text = "Two" + Button3.Text + "Happy" + Button1.Text + "Happy" + TextBox1.Text + Button3.Text + "Happy"
Button2.Text = "One" + Button2.Text + TextBox1.Text + Button2.Text + "Happy" + TextBox1.Text
Button3.Text = "Three" + TextBox1.Text + "Happy" + Button2.Text + Button1.Text + Button1.Text
TextBox1.Text = "Four" + Button1.Text + TextBox1.Text + "Happy" + Button3.Text + TextBox1.Text
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Text = "Three" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "One" + Button3.Text + TextBox1.Text + "Happy" + TextBox1.Text + TextBox1.Text
Button3.Text = "Four" + Button3.Text + TextBox1.Text + TextBox1.Text + TextBox1.Text
TextBox1.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text + "Happy"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1.Text = "One" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
Button2.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + Button4.Text + TextBox1.Text
Button3.Text = "Four" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
TextBox1.Text = "Three" + Button2.Text + "Happy" + Button1.Text + TextBox1.Text + TextBox1.Text
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Button1.Text = "Two" + Button2.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "Three" + Button3.Text + TextBox1.Text + TextBox1.Text + "Happy" + Button1.Text + "Happy"
Button3.Text = "Four" + TextBox1.Text + Button1.Text + "Happy" + Button1.Text + TextBox1.Text + "Happy"
TextBox1.Text = "One" + Button1.Text + "Happy" + Button2.Text + TextBox1.Text + Button3.Text
End Sub
End Class
See if you can solve it and if you can think of one of your own then post it on here and let us figure it out. Use the screenshot as a clue. No cheating :P lol

Good luck cooll;
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Robby
VIP - Donator
VIP - Donator
Posts: 417
Joined: Mon Aug 03, 2009 4:01 am

Re: Code-nundrum
Robby
Hi,

First of all are we alowwed to put this code in VB and try it?


Even though i think i already found the problem but i still wanna know are we able to try it in VB and also..

Do we have to think of another question to ask becuz i m probably too lazy for one if i even figure out a question on this


Ty, and Regards

Robby1998
My current Projects Listed Below:
Toixt++ Text Editor Just 10 or less more features to go!
Image
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4390
Joined: Tue Aug 04, 2009 1:47 am

Re: Code-nundrum
CodenStuff
Hello,

No you are not allowed to put it into VB thats cheating lol. Well I cant stop you but it takes the fun out of the game if you do cryer;

You dont have to post another question if you dont have one just the answer if you know it :D

Have you solved it?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Robby
VIP - Donator
VIP - Donator
Posts: 417
Joined: Mon Aug 03, 2009 4:01 am

Re: Code-nundrum
Robby
ok lol i didn;t use vb yet so i wont use it either and i will try to solve it in my next post and or i will just edit this post and solve it :)
My current Projects Listed Below:
Toixt++ Text Editor Just 10 or less more features to go!
Image
Image
User avatar
Robby
VIP - Donator
VIP - Donator
Posts: 417
Joined: Mon Aug 03, 2009 4:01 am

Re: Code-nundrum
Robby
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Text = "Two" + Button3.Text + "Happy" + Button1.Text + "Happy" + TextBox1.Text + Button3.Text + "Happy"
Button2.Text = "One" + Button2.Text + TextBox1.Text + Button2.Text + "Happy" + TextBox1.Text
Button3.Text = "Three" + TextBox1.Text + "Happy" + Button2.Text + Button1.Text + Button1.Text
TextBox1.Text = "Four" + Button1.Text + TextBox1.Text + "Happy" + Button3.Text + TextBox1.Text
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Text = "Three" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "One" + Button3.Text + TextBox1.Text + "Happy" + TextBox1.Text + TextBox1.Text
Button3.Text = "Four" + Button3.Text + TextBox1.Text + TextBox1.Text + TextBox1.Text
TextBox1.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text + "Happy"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1.Text = "One" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
Button2.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + Button4.Text + TextBox1.Text
Button3.Text = "Four" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
TextBox1.Text = "Three" + Button2.Text + "Happy" + Button1.Text + TextBox1.Text + TextBox1.Text
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Button1.Text = "Two" + Button2.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "Three" + Button3.Text + TextBox1.Text + TextBox1.Text + "Happy" + Button1.Text + "Happy"
Button3.Text = "Four" + TextBox1.Text + Button1.Text + "Happy" + Button1.Text + TextBox1.Text + "Happy"
TextBox1.Text = "One" + Button1.Text + "Happy" + Button2.Text + TextBox1.Text + Button3.Text
End Sub
End Class

Lol i see it and i m sure this is the only one cuz i m seing it like almost every where so here it goes :)

As in the first line you put
Button1.Text = "Two" + Button3.Text + "Happy" + Button1.Text + "Happy" + TextBox1.Text + Button3.Text + "Happy"

As it is button1.text="Two" is ok and then u add a plus to it which is also ok but then you add a plus after button3.text so it is gonna be wrong if should have been button3.text="Happy" or you know what i m just gonna type the whole code below and give its mistakes lol :D

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Text = "Two" + Button3.Text = "Happy" + Button1.Text = "Happy" + TextBox1.Text = Button3.Text + "Happy"
Button2.Text = "One" + Button2.Text = TextBox1.Text + Button2.Text + "Happy" = TextBox1.Text
Button3.Text = "Three" + TextBox1.Text = "Happy" + Button2.Text + Button1.Text + Button1.Text
TextBox1.Text = "Four" + Button1.Text + TextBox1.Text = "Happy" + Button3.Text + TextBox1.Text
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Text = "Three" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "One" + Button3.Text + TextBox1.Text + "Happy" + TextBox1.Text + TextBox1.Text
Button3.Text = "Four" + Button3.Text + TextBox1.Text + TextBox1.Text + TextBox1.Text
TextBox1.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text + "Happy"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1.Text = "One" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
Button2.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + Button4.Text + TextBox1.Text
Button3.Text = "Four" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
TextBox1.Text = "Three" + Button2.Text + "Happy" + Button1.Text + TextBox1.Text + TextBox1.Text
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Button1.Text = "Two" + Button2.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "Three" + Button3.Text + TextBox1.Text + TextBox1.Text + "Happy" + Button1.Text + "Happy"
Button3.Text = "Four" + TextBox1.Text + Button1.Text + "Happy" + Button1.Text + TextBox1.Text + "Happy"
TextBox1.Text = "One" + Button1.Text + "Happy" + Button2.Text + TextBox1.Text + Button3.Text
End Sub
End Class

Dang lol its too much i m too lazy to do it but i did do the first part of it and i mma just go and come back and do it :)


kk never mind i did this and you might need to make the buttons bigger so the button1,button2,button3's text is good to see lol


I dont know if this is like what you wanted it to be and if i did it wrong please correct me but dont tell me the answer and let me figure it out and all lol lmao;

Ty and Regards,

Robby1998
My current Projects Listed Below:
Toixt++ Text Editor Just 10 or less more features to go!
Image
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4390
Joined: Tue Aug 04, 2009 1:47 am

Re: Code-nundrum
CodenStuff
Hello,

Good effort and a very good answer. But its not rite im afraid.

Try again :D
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Robby
VIP - Donator
VIP - Donator
Posts: 417
Joined: Mon Aug 03, 2009 4:01 am

Re: Code-nundrum
Robby
ok dang it lol i will try it again even though i doubt i will beable ot figure it out XD

i will try again
and is there a deadline for this or something?


Robby1998
My current Projects Listed Below:
Toixt++ Text Editor Just 10 or less more features to go!
Image
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4390
Joined: Tue Aug 04, 2009 1:47 am

Re: Code-nundrum
CodenStuff
Hello robby1998,


No theres no time limit or deadline its just a bit of fun :D
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Neki
Top Poster
Top Poster
Posts: 96
Joined: Sun Oct 11, 2009 10:12 am

Re: Code-nundrum
Neki
Yeah, but with codes, the fun is ruined :( .
User avatar
gilles
Member
Member
Posts: 43
Joined: Sun Oct 25, 2009 2:37 pm

Re: Code-nundrum
gilles
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Text = "Two" + Button3.Text = "Happy" + Button1.Text + TextBox1.Text + Button3.Text + "Happy"
Button2.Text = "One" + Button2.Text = TextBox1.Text + Button2.Text + "Happy" + TextBox1.Text
Button3.Text = "Three" + TextBox1.Text = "Happy" + Button2.Text + Button1.Text + Button1.Text
TextBox1.Text = "Four" + Button1.Text + TextBox1.Text = "Happy" + Button3.Text + TextBox1.Text
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Text = "Three" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "One" + Button3.Text + TextBox1.Text + "Happy" + TextBox1.Text + TextBox1.Text
Button3.Text = "Four" + Button3.Text + TextBox1.Text + TextBox1.Text + TextBox1.Text
TextBox1.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text + "Happy"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Button1.Text = "One" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
Button2.Text = "Two" + Button3.Text + "Happy" + TextBox1.Text + Button4.Text + TextBox1.Text
Button3.Text = "Four" + Button1.Text + TextBox1.Text + TextBox1.Text + "Happy" + TextBox1.Text + "Happy"
TextBox1.Text = "Three" + Button2.Text + "Happy" + Button1.Text + TextBox1.Text + TextBox1.Text
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Button1.Text = "Two" + Button2.Text + "Happy" + TextBox1.Text + TextBox1.Text + TextBox1.Text
Button2.Text = "Three" + Button3.Text + TextBox1.Text + TextBox1.Text + "Happy" + Button1.Text + "Happy"
Button3.Text = "Four" + TextBox1.Text + Button1.Text + "Happy" + Button1.Text + TextBox1.Text + "Happy"
TextBox1.Text = "One" + Button1.Text + "Happy" + Button2.Text + TextBox1.Text + Button3.Text
End Sub
End Class

mayby this? xD
Dont forget!
people are watching first the design then the program ;)
20 posts Page 1 of 2
Return to “Game Room”