Click here to Skip to main content
14,454,836 members
   

C#

 
Questionrotating a winform control Pin
Faysal22-Jul-08 20:11
MemberFaysal22-Jul-08 20:11 
AnswerRe: rotating a winform control Pin
John Ad22-Jul-08 21:03
MemberJohn Ad22-Jul-08 21:03 
GeneralRe: rotating a winform control Pin
The Cake of Deceit23-Jul-08 9:04
MemberThe Cake of Deceit23-Jul-08 9:04 
QuestionPlease help with xml reading Pin
Medp3722-Jul-08 19:42
MemberMedp3722-Jul-08 19:42 
AnswerRe: Please help with xml reading Pin
Srishti Mathur22-Jul-08 20:14
MemberSrishti Mathur22-Jul-08 20:14 
QuestionThread problem Pin
Mogaambo22-Jul-08 19:36
MemberMogaambo22-Jul-08 19:36 
AnswerRe: Thread problem Pin
Elroy Dsilva22-Jul-08 23:04
MemberElroy Dsilva22-Jul-08 23:04 
QuestionMy sort of first program that doesn't work Pin
DFlat4Now22-Jul-08 18:38
MemberDFlat4Now22-Jul-08 18:38 
I have been studying C# for about 4 or 5 months and then thought "Well I'll just write something from scratch. Well I felt like I've been reading a book on "How To Swim" and then when I jumped in the water I just gasped for air! Well anyway I hoping that someone could look at this and tell me how to use the return for the "public bool TrueOrFalse().

Thanks and sorry this is so elementary. I think I would like to write a book some day named a Beginner Beginner for the Basics of C#. Well any way here it is.

using System;
using System.Collections.Generic;
using System.Text;

namespace StartingOver
{
class RunIt
{
public bool TrueOrFalse()
{
int four = 4;
int five = 5;
bool answer;
Console.WriteLine("4 * 5 should equal: {0}", four * five);
four*five
return answer;
}
public void Getyear()
{
Console.WriteLine("What year will you be beginning?");
string year = Console.ReadLine();
Console.Clear();
Console.WriteLine("Starting all over again in {0}\n", year);
}
static void Main(string[] args)
{
RunIt ri = new RunIt();
ri.Getyear();
ri.TrueOrFalse();
}
}
}
AnswerRe: My sort of first program that doesn't work Pin
John Ad22-Jul-08 21:31
MemberJohn Ad22-Jul-08 21:31 
AnswerRe: My sort of first program that doesn't work Pin
mark_w_22-Jul-08 23:17
Membermark_w_22-Jul-08 23:17 
Questionparent form --> MDIChild connection Pin
shadowhazard22-Jul-08 18:32
Membershadowhazard22-Jul-08 18:32 
AnswerRe: parent form --> MDIChild connection Pin
Mbah Dhaim23-Jul-08 0:24
MemberMbah Dhaim23-Jul-08 0:24 
QuestionHard Inheritance Questions (for me) Pin
Dirso22-Jul-08 13:53
MemberDirso22-Jul-08 13:53 
AnswerRe: Hard Inheritance Questions (for me) Pin
Luc Pattyn22-Jul-08 14:26
sitebuilderLuc Pattyn22-Jul-08 14:26 
AnswerRe: Hard Inheritance Questions (for me) Pin
PIEBALDconsult22-Jul-08 15:32
professionalPIEBALDconsult22-Jul-08 15:32 
AnswerRe: Hard Inheritance Questions (for me) Pin
Dirso22-Jul-08 17:34
MemberDirso22-Jul-08 17:34 
AnswerRe: Hard Inheritance Questions (for me) Pin
Giorgi Dalakishvili22-Jul-08 22:32
mentorGiorgi Dalakishvili22-Jul-08 22:32 
GeneralRe: Hard Inheritance Questions (for me) Pin
Dirso23-Jul-08 4:50
MemberDirso23-Jul-08 4:50 
GeneralRe: Hard Inheritance Questions (for me) Pin
Giorgi Dalakishvili23-Jul-08 5:44
mentorGiorgi Dalakishvili23-Jul-08 5:44 
QuestionLockbits and 8-bit grayscale images Pin
gigahertz20522-Jul-08 13:39
Membergigahertz20522-Jul-08 13:39 
AnswerRe: Lockbits and 8-bit grayscale images Pin
Guffa22-Jul-08 14:39
MemberGuffa22-Jul-08 14:39 
GeneralRe: Lockbits and 8-bit grayscale images Pin
gigahertz20522-Jul-08 16:26
Membergigahertz20522-Jul-08 16:26 
GeneralRe: Lockbits and 8-bit grayscale images Pin
Luc Pattyn22-Jul-08 16:42
sitebuilderLuc Pattyn22-Jul-08 16:42 
GeneralRe: Lockbits and 8-bit grayscale images Pin
gigahertz20522-Jul-08 16:50
Membergigahertz20522-Jul-08 16:50 
GeneralRe: Lockbits and 8-bit grayscale images Pin
Guffa23-Jul-08 5:33
MemberGuffa23-Jul-08 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.