C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 307,175 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,579 people online right now. Registration is fast and FREE... Join Now!




Need help making a Ohm's Law calculator!

 

Need help making a Ohm's Law calculator!

Goon

28 Sep, 2009 - 08:57 AM
Post #1

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 2

Here is what I have so far:
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 cisc2330_mty_lab4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            float E = 0;
            float R = 0;
            float I = 0;
            float P = 0;
        }

        public bool IsNumeric(string s)
        {
            try
            {
                Double.Parse(s);
            }
            catch
            {
                return (false);
            }

            return (true);
        }


        private void button1_Click(object sender, EventArgs e)
        {


        }
    }
}


User is offlineProfile CardPM
+Quote Post

 
Reply to this topicStart new topic
Replies(1 - 2)

JackOfAllTrades

RE: Need Help Making A Ohm's Law Calculator!

28 Sep, 2009 - 09:09 AM
Post #2

I exist to Google your problems.
Group Icon

Joined: 23 Aug, 2008
Posts: 5,324



Thanked: 454 times
Dream Kudos: 50
Expert In: Being annoyed with lazy people.

My Contributions
That's not a lot. What are you looking for exactly? You have the equation. Add controls to the form to enter the data, calculate it when the button is clicked, and then display it in another control.
User is offlineProfile CardPM
+Quote Post

Goon

RE: Need Help Making A Ohm's Law Calculator!

28 Sep, 2009 - 11:39 AM
Post #3

New D.I.C Head
*

Joined: 25 Sep, 2009
Posts: 2

Nevermind, I'm retarded. I figured it out. Thanks for the help though!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 07:13PM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month