If then C#?

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts Page 1 of 1
Contributors
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

If then C#?
zachman61
how can i write these?
and how can i write vbnewline or whatever it is :D
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: If then C#?
Axel
Code: Select all
if(this.text == "lol")
{
//do your thing here :P 
}
//elseif :
if(this.text == "lol")
{
//do your thing
}else
if(this.text == "lolol")
{
//do something else
}
NOTE : you should use == for boolean , if you use 1 = , this means you set the text



new line :
Code: Select all
"Hey after this , there will be a new line \n This is the other line :D"
just place "\n" in your string
if you want to display something with \ , place 2x \, "\\n" for example , a path , "D:\\Users\\Me\\Documents\\lol.txt"

EDIT: sorry for not using
Code: Select all
 , was to lazy :P
http://vagex.com/?ref=25000
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: If then C#?
Agust1337
So Zach, are you now going to cod in c# :P?
Top-notch casual Dating
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: If then C#?
mandai
If you want the equivilent for vbCrLf then that will be "\r\n".
You could also declare a string starting with @ to include single backslash characters.
User avatar
DreadNought
VIP - Donator
VIP - Donator
Posts: 116
Joined: Fri Jan 08, 2010 12:37 pm

Re: If then C#?
DreadNought
the @ sign is normally used in file paths tbh.

If your going to start learning C# I hope it goes all well... i've been learning C# for about 11 months and and I will admit at first its not so good but it gets better. So far I'm learning pointers I can create ciphers and encryption's along with ansyc sockets with a complex client and server so if you need help with anything just send me a PM.
Bound and boom tech,
The Future Of Coding
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: If then C#?
zachman61
paralyzer wrote:
the @ sign is normally used in file paths tbh.

If your going to start learning C# I hope it goes all well... i've been learning C# for about 11 months and and I will admit at first its not so good but it gets better. So far I'm learning pointers I can create ciphers and encryption's along with ansyc sockets with a complex client and server so if you need help with anything just send me a PM.
well so far all ive made is a message box generator :D
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Axel
zachman61 wrote:
paralyzer wrote:
the @ sign is normally used in file paths tbh.

If your going to start learning C# I hope it goes all well... i've been learning C# for about 11 months and and I will admit at first its not so good but it gets better. So far I'm learning pointers I can create ciphers and encryption's along with ansyc sockets with a complex client and server so if you need help with anything just send me a PM.
well so far all ive made is a message box generator :D
Here are some good idea's for you to learn programming

A calculator
A notepad
A ftp uploader
A Downloader
A System info program
A Game :P
An archiver (a little more difficult)
A Paint applications


and more but the ideas aren't there right now :P
http://vagex.com/?ref=25000
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: If then C#?
zachman61
I might try the notepad :D
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
8 posts Page 1 of 1
Return to “Tutorial Requests”