Jump to content

  •  

  • iBotModz CBox


    Photo

    Getting Avatar C#


    • Please log in to reply
    2 replies to this topic

    #1 xXxStevenxXx

    xXxStevenxXx

      Corporal Grade 1

    • Donors

    • 202 posts
    • Joined: 29-June 08
    • Gender:Male

    Posted 09 November 2009 - 08:28 PM

    1.) Create an Textbox and an Picturebox big enought for your avatar.

    2.) Create a button and code it with this
    this.pictureBox1.ImageLocation = "http://avatar.xboxlive.com/avatar/" + this.textBox1.Text + "/avatar-body.png";

    3.) If You like to create a save button do so name it save then enter this as the code
    SaveFileDialog dialog = new SaveFileDialog();
     dialog.Filter = "PNG Image|*.png|JPEG Image|*.jpg|GIF Image|*.gif";
     if (dialog.ShowDialog() == DialogResult.OK)
     {
     this.pictureBox1.Image.Save(dialog.FileName);
     }

    4.)Now your done ! :) I will include an project source

    This tut was brought to you by xXxStevenxXx of Blueshadowz

    Link below on next post :)


    #2 iTzoODavidOo

    iTzoODavidOo

      Sergeant Grade 2

    • Members+

    • 353 posts
    • Joined: 03-December 08
    • Gender:Male
    • Location:Manchester England

    Posted 10 November 2009 - 02:55 AM

    New link guys, steven you plonker. People who don't have accounts on BS can't use the attachment. :p

    Attached Files



    #3 xXxStevenxXx

    xXxStevenxXx

      Corporal Grade 1

    • Donors

    • 202 posts
    • Joined: 29-June 08
    • Gender:Male

    Posted 10 November 2009 - 05:48 PM

    Reason they should make an account on bs :l