lerning's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
50 (0.03 per day)
Joined:
08-August 09
Profile Views:
2,116
Last Active:
User is offline Oct 11 2012 06:11 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Mitsubishi
Dream Kudos:
0

Latest Visitors

Icon   lerning has not set their status

Posts I've Made

  1. In Topic: making a radio button programatically

    Posted 10 Oct 2012

    View Postxilith117, on 10 October 2012 - 03:28 PM, said:

    OK, here is what I have:
    Dim radio As New RadioButton
    
            With radio
                .Location.X.Equals(100)
                .Location.Y.Equals(100)
                .Text = ""
            End With
    


    I want a text-less radio button at 100,100 what did I do wrong? Thanks.


    Your on the right track, but you need to specifiy a 'New' location for the button by using '.Location = New System.Drawing.Point(100, 100)' and then telling the form to draw it on the screen using 'Me.Controls.Add(radButton)'

    Dim radButton As New RadioButton
    
            With radButton
                .Checked = False
                .Text = "Radio Button"
                .Location = New System.Drawing.Point(100, 100)
                Me.Controls.Add(radButton)
            End With
    
            Dim radButton2 As New RadioButton
    
            With radButton2
                .Checked = True
                .Text = "Radio Button 2"
                .Location = New System.Drawing.Point(210, 100)
                Me.Controls.Add(radButton2)
            End With
    
    


    Here is a screenshot for what the error shows, if you are using visual studio, placing your mouse over the squiggly blue line will give you your answer:

    http://s7.postimage..../correction.png

    or the error below will tell you: Error 1 Value of type 'String' cannot be converted to 'System.Drawing.Point'. Thus meaning you must create a 'New' point using 'New System.Drawing.Point(#,#)' Your compiler will give you an error but the error usually implies its the answer as well.
  2. In Topic: Slow Ping and not guaranteed success

    Posted 10 Oct 2012

    I figured it out, delete thread pls.

My Information

Member Title:
D.I.C Head
Age:
31 years old
Birthday:
November 15, 1982
Gender:
Location:
Tampa, FL
Interests:
Counter-Strike Source Programming
Full Name:
Branden
Years Programming:
5
Programming Languages:
VB.NET, C#, C, C++

Contact Information

E-mail:
Click here to e-mail me

Friends

lerning hasn't added any friends yet.

Comments

lerning has no profile comments yet. Why not say hello?