The Sandbox Thread

14 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

piCALC

Back to Forum: The Sandbox
  • User profile image
    Animaonline

        So this is my first Microsoft Visual Basic 2005 Express Edition
        program! This is a tool that calculates area of circle. Hehe.

        I know it's simple and easy to create, but this is the first thing that     I made with Microsoft Visual Basic 2005 Express Edition so I'm quite proud of it! ^^:O

  • User profile image
    josh_harris

    nice first program

  • User profile image
    Khamul

    Great! Only two pointers:

    • Transparent Backgrounds on controls would look much better
    • Make form Fixed Single and disable maximize OR use Anchors to make controls resize dynamically.

  • User profile image
    Animaonline

    Thanks!

    Can someone tell me how can I learn Visual Basic all the way from the beginning? Are there any free tutorials on the internet?

    P.S. I’m 16.

    P.P.S. How do I make my program draw a circle (in the group box) with a radius that was inputted in the “Radius” textbox?Perplexed

    Do I have a chanse of becoming Visual Basic  Professional? Or is it to late?! Expressionless

  • User profile image
    josh_harris

    i would say you have a pritty good chance of becoming a vb professsional, im only 18, and i only really started to get stuck in to vb 2-3 years ago

    as for the circle question, i cant help you, sorry

    but if you want a good VB tutorial goto here

    hope this helps

  • User profile image
    Animaonline

    Wow! Thanks for the tutorial link! it's great! Big Smile

  • User profile image
    Khamul

    Well, I'm 15. I started with VB6 when I was 12, and made the migration to .Net (2.0, having skipped the first .Net wave) at 14. I am in no way a Visual Basic professional, but I'll keep going, and you should too!

    To draw a circle:

    Public Class Form1
        Dim draw As Boolean

        Private Sub Panel1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
            If draw = True Then
                Panel1.CreateGraphics.FillEllipse(SystemBrushes.ControlDarkDark, New RectangleF(10, 10, Panel1.Width - 20, Panel1.Height - 20))
            End If
        End Sub

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            draw = True
            Panel1.Refresh()
        End Sub
    End Class

  • User profile image
    ploe

    i have to give you credit that's a good first program. my first program looked some thing like...

    #include <stdio.h>

    int main(int argc, char *argv[])
    {
        printf("hello world\n");
        return 0;
    }

    :/

  • User profile image
    Khamul

    I've modified your source code and can post it if you want, but you'll probably want to work at it yourself! Big Smile

    PS: My first program was a stopwatch in VB6.


    Edit: I also added CInt and Cstr to the values. Not necessary, but recommended.

  • User profile image
    Animaonline

    Sure thing! just post the code you modified thanks for your Draw Circle code! Tongue Out

  • User profile image
    Khamul

    Code posted here.

  • User profile image
    josh_harris

    just in case you were wondering my first .exe was a game, I had written it in a game maker program, then I went on to quickbasic and so on and so on

  • User profile image
    robinjam

    well i'm only 14 and i've been programming vb since I was 9. So there!Tongue Out

  • User profile image
    Animaonline

        Hi all!
        Check out my bugtracker and all the programs that i made:
        http://animaonline.blogspot.com/
        http://animagfx.blogspot.com/
        http://www.animaonline.blogspot.com/
        http://www.animagfx.blogspot.com/

        I will be making some new software soon Smiley

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.