Results 1 to 14 of 14

Thread: Ohm's Law Calculator

  1. #1

    Thread Starter
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Post Ohm's Law Calculator

    I made a calculator that calculates Voltage, Resistance and Amperes in VB.NET

    Features

    Calculates Voltage, Resistance, Amperes(U = R * I) and watts.
    Show how the calculation is done in the Output box (Easier to do homework)


    Preview

    Name:  55f3ef12aa771fa03e0c42dac6e99cc2.png
Views: 3633
Size:  15.2 KB

    Update #1

    • You can now calculate Power based on Voltage and Resistance
    • Added a reset button to reset Voltage,Amperes and Resistance text boxes.
    • Made some changes to the output box.
    • Centered the controls and made some eye candy changes.
    • BUGFIX: The label ''Source code available here!'' didn't have a link.




    Source code is available from this <external link removed by moderator>

    Feedback is appreciated.

    Send me a PM if you find the Easter Egg
    Last edited by Joacim Andersson; Apr 11th, 2013 at 03:55 PM.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Ohm's Law Calculator

    This should go in the Codebank, if anywhere.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Ohm's Law Calculator

    Yea this belongs in the CodeBank.....Btw, is that a custom Form ? Or are you using an OS other than Windows ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4

    Thread Starter
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Ohm's Law Calculator

    If you referring to the borders then yes im using a Windows Theme.

    Also the description of the category is "Drop in here to discuss all editions and versions of Visual Basic .NET (2002 or later) or anything to do with VB .NET programming."..."anything to do with VB .NET programming."
    I assumed that it would go here, Thanks for pointing it out

    Should i report the thread or something ?

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Ohm's Law Calculator

    Moved to the CodeBank - VB.Net.
    anything to do with VB.NET
    ...that we don't have another forum especially made for.

  6. #6

    Thread Starter
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Ohm's Law Calculator

    Thanks for Moving the thread.

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Ohm's Law Calculator

    It would be better if you just attach the source code directly to your post.

  8. #8

    Thread Starter
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Ohm's Law Calculator

    I like MediaFire better because then i have more control over the file than i would if it was attached to thread.

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Ohm's Law Calculator

    What? No you don't. You have full control of your own posts and your attachments. If you want this post to stay in this forum I do have to insist that you add it as an attachment because it's impossible for us to moderate the thread if the link changes. Just make sure that the ZIP file doesn't contain the compiled EXE file, just the source files please.

  10. #10

    Thread Starter
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Ohm's Law Calculator

    That's not what i mean, on MediaFire i have organizing abilities that i don't have here on the forum.
    I got more order when ever project i have made is in the same Sub folder on MediaFire if you understand.

    Am i not allowed to have .exe files in my .zip file on MediaFire and post it here ?
    You can bind an .exe file to an image.

  11. #11
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Ohm's Law Calculator

    I don't care if you keep you your .zip on MediaFire or not but if you want to keep this post you must attach the source here otherwise I have no choice but to delete this thread. This forum is for learning and helping others it's not for promoting your own software. We have this forum for publishing source code that can be used as a learning experience or just plain helpful but not as a way to advertise your own projects. If you want to keep your posts you must comply with the rules of this forum.

    I have now edited your post and removed the link to MediaFire, you can edited it again but do so only to attach your project files (packaged in a zip).

  12. #12

    Thread Starter
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Ohm's Law Calculator

    Ohh now i understand, the .zip file can't contain the compiled .exe or any .exe files for that matter and it doesn't matter if it's in the attachments or not.
    I'll remove the .exe files from the .zip file tomorrow, going to bed now.

    Good night

  13. #13
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Ohm's Law Calculator

    Quote Originally Posted by Dternity View Post
    Ohh now i understand, the .zip file can't contain the compiled .exe or any .exe files for that matter and it doesn't matter if it's in the attachments or not.
    That is true. But if you want to keep this thread in this forum you must add your source as an attachment otherwise it just doesn't belong in this forum.

  14. #14
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Ohm's Law Calculator

    To be honest, its a pain to follow a link to another site in order to download something from the forum. I almost never do it. You always end up have to wade through all kinds of insanity to find the correct download link and then it usually sends you to another page telling you to wait 5 seconds for your download to begin. Another thing about sites like MediaFire is that they take down downloads that have been inactive for too long so you risk having and inactive link to your project here.

    Point is, there are more than enough compelling reasons to host the attachment here. There one compelling reason I can think of to host it off site though, if the attachment is too large, usually a full fledged program with all kinds of resources. I don't think that's necessary in this case however.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width