Red faceC# Book Snippet (Jorndels C# Book)

Posts 1–15 of 15 · Page 1 of 1
C# Book Snippet (Jorndels C# Book)
Well, since some people prefer text instead of video. I decided to make this tutorial to see if my C# Book. (Writing it) Will be understand able

First of all we need to start, you need to install: Visual C# Express 2010
This is a free ware, so after 30 days you just register and you have it

Now, install it and we will be ready to start



Let's create a New Project:

Now we will create an Windows Application Form


Now we will look on some basic stuff.



First of all we will have a look at the ToolBox and the Properties.

 
ToolBox


What we will use most is the stuff in the: Common Controls
Let's expend it and look what we will use...

(I might have some more or less in it, but mainly we have the same)

Okey, now lets Drag & Drop a Button from the ToolBox onto our Form1.


Now, we can re-size it by dragging the white squares on the ends or sides of the button.

Now you know how to re-size it, you can also move it by holding the mouse down (on the control/button) and move it to where you want.
 
Properties


Here we have the options we usually use when we modify our controls.
Most of the options you see there can be done with coding, but not all of them are easy to do.

I have marked some of the most common used properties for the button here:


You can play around with the properties to get a better understanding of them.




Now we will look into some basic coding, so you will have a basic knowledge of what we will work with later on.


To access the coding page, we can right click and select the: View Code
But, we won't do that now. Since there is nothing there for us now

Double-Click the Button1 (This will create the default event for the button. Which is 'Click')


Now, lets create an very simple function:
MessageBox.Show("MyMessage");

And keep in mind that you have to add it in the button1_click event

Mark the: { } - I like to call the: { for the Open Code/Function Mark, and the: } for the Close Code/Function Mark


 
If Statement
Now, lets look on the If|Else Statement. This is used to check if something is true/false or just to check something
Code:
If(Argument1 == Argument2)
{
//We will do something
}
else
{
//We do something
}
Here is an example:

This will do the: Else Statement.
Why? Because I did an: If "name" is equal too "you"
And that would not be the same value as the "name".


 
Declareing Variables
So let's look a little on how we can declare variables / values.
First of all we have mainly two ways we declare a variable.

1:

Okey, here I have done two things.
First: I declared a variable with the 'name' - Name.
But I didn't 'declare' the content of the variable Name.

Second: I declared a variable with the 'name' - Name2.
But here I did declare the content, as "Jorndel" - My Online Name

(Note, if you see the RED line under the: Name in the If statement. That means it can't use something that is nothing to check it with a variable that is something. (Your Program would not be able to debug...)

2:

(Now, you see the RED line is gone? That is because we didn't create it in the same method as we used it in.)

The same here as before. (The First and Second)
But this time I made it 'public'. That means I can use it in any of my events / methods I am to make.
This allow you to set the value: Name to something in an other method / event and then use the button1_click event to check if the name is 'Jorndel'

Let me Demonstrate:

As you see, now I sat the value of Name equal to "Jorndel". (By pressing the Button2)
Mark: When you use 1: = that means you set a value to the variable. 2: == Means you check the value.
Look more on these 'checking' ways here: Operators


I will release more once I write more.

I would really need some feedback on this.
Since I am writing a book on this stuff
If you need some help for some code or something else, call me on steam and i will come on skype
Good job for this TextBox ^^
But you forget something bro', let see how to make it in .exe (Debug => Build)
If you want, i can make a video for it ^^
Quote Originally Posted by hochikage View Post
If you need some help for some code or something else, call me on steam and i will come on skype
Good job for this TextBox ^^
But you forget something bro', let see how to make it in .exe (Debug => Build)
If you want, i can make a video for it ^^
Why would I need that?
X,x

This is just a snippet of my book.
There is no videos in a book....
To help some guy cause i know some who don't find properties and don't know how to put it in .exe ^^
Very nice, I can't wait to see more.
Im trying to make a hack but its very difficult
what you show here , so you can make hacks right?
Quote Originally Posted by Maurice12 View Post
Im trying to make a hack but its very difficult
what you show here , so you can make hacks right?
Erm, no.

Just a snippet of my C# Book for you guys.

Go to the tutorial section.
Released a 28 min long tutorial for it.
<3 This Jorndel Your Helping Me Alot xD
Jorndel, how would I start to make an aimbot script and like boxes around people and what not?
Quote Originally Posted by Ventril View Post
Jorndel, how would I start to make an aimbot script and like boxes around people and what not?
Start with .NET and create a trainer
Good GUID man
Very good starting C# tutorial, but you should get into the more advanced stuff, this kind of stuff is already all over the internet.
ok, i'm new at the c-languages (i know what they are, and i'm not total programming-n00b) and this tutorial explains very well how to start
i hope you finish your book, and maybe share the link

very good job
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us