Meliodas0_0

Username Checker

Sep 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Windows.Forms;
  5. using System.Net;
  6.  
  7. namespace Username_Checker
  8. {
  9.  
  10.     public partial class MainForm : Form
  11.     {
  12.         public MainForm()
  13.         {
  14.             InitializeComponent();
  15.         }
  16.         void AboutToolStripMenuItemClick(object sender, EventArgs e)
  17.         {
  18.             MessageBox.Show("This program is mainly concept for how to use the ROBLOX API, created by 114k/Stiff");
  19.         }
  20.         void CheckbtnClick(object sender, EventArgs e)
  21.         {
  22.             string username = (userinput.Text);
  23.             string output = new WebClient().DownloadString("https://www.roblox.com/UserCheck/DoesUsernameExist?username=" + username);
  24.             if( output.Contains("true") )
  25.             {
  26.                 label2.Text = ("Taken");
  27.             }
  28.             else if( output.Contains("false") )
  29.             {
  30.                 label2.Text = ("Not Taken");
  31.             }
  32.         }
  33.         void MainFormLoad(object sender, EventArgs e)
  34.         {
  35.    
  36.         }
  37.     }
  38. }
Add Comment
Please, Sign In to add comment