not all code paths return a value

Apr 5 2009 10:56 AM
Hey guys, below is my code, and I keep getting an error message saying 'not all code paths return a value'. The error is coming from my method convertToMinutes(). Can anyone help me ? thanks

[code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private int convertToMinutes(int theValue)
        {
            return theValue;
        }



        private void button1_Click(object sender, EventArgs e)
        {
            int secondsInput;
            string minutesOutput;
            string hoursOutput;
        }


    }
}

[/code]

Answers (2)