User Profile

Collapse

Profile Sidebar

Collapse
Ben3eeE
Ben3eeE
Last Activity: Mar 28 '07, 12:36 PM
Joined: Dec 19 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
        Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim volume As Decimal
            Dim radius As Decimal
            radius = CDbl(TextBox1.Text)
            volume = (4 / 3) * 3.14 * (radius * radius * radius)
            Label1.Text = volume
        End Sub
    Works fine with both Val(textbox1.te xt) and CDbl(Textbox1.t ext)....
    See more | Go to post

    Leave a comment:


  • I actually found some MS(i think) example code called "Controlarraysa truntime"
    and since iam new to programming i dont really understand everything here.

    Code:
        Dim MynewPos As New Point(50, 40)
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim pnt As New Point(CType(TextBox2.Text, Integer), CType(TextBox3.Text, Integer))
    ...
    See more | Go to post

    Leave a comment:


  • My name is in the topic!!!
    no seriosly, if you want help or if someone should be able to help you,
    i should give the important code and explain what the problem is what you
    want the code to do, and try to learn programming loops before asking on
    this forum. that way its much more likely that someone would help you.
    Now, if you explain what you mean with looping the form and what you want to
    loop. someone...
    See more | Go to post

    Leave a comment:


  • Ben3eeE
    replied to Wants Wrong With my loop Code (Yoda)
    Code:
    Dim variable As Integer
    Do Until variable = 2
    MsgBox("loop")
    variable = variable + 1
    Loop
    See more | Go to post

    Leave a comment:


  • Ben3eeE
    replied to Want Form To Loop Infinet Times
    infinite loop goes like this:
    Code:
    Do
    msgbox("Loop")
    Loop
    See more | Go to post

    Leave a comment:


  • Ben3eeE
    started a topic "Rubber Band" Problem

    "Rubber Band" Problem

    I got one too hard for me to fix problem. I know the cause and i know why
    but i cant fix it.
    I am using a "Rubber band" like function, drawing a rectangle on an image
    in a picturebox that i loaded. Now i want to Cut out the part i marked with
    the "Rubber band" and load that image in the picturebox. This works great
    and i can save that image as i want to. The problem is that the image loaded...
    See more | Go to post

  • Ben3eeE
    replied to How do I add my icon to a VB.net exe file?
    in .NET
    do you mean the little icon in the top left corner ?
    try this in form load

    Code:
    Dim AppPath As String
    AppPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath)
    Me.Icon = New Icon(AppPath & "\icons\programicon.ico")
    See more | Go to post

    Leave a comment:


  • Ben3eeE
    started a topic Draw Straight line on picutrebox?

    Draw Straight line on picutrebox?

    Im having trouble making a Paint.exe straight line draw.

    You know the one where you point out where to start then hold down the
    mouse button and release it to finish the drawing. My problem is that
    if i move the mouse back the line should move back with it and if i
    spin the mouse the line should spin and dont draw anything before i release
    the button.
    im using Microsoft visual stuido.net 2003...
    See more | Go to post
No activity results to display
Show More
Working...