Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,924 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am working on desktop application. and I want to implement gmail account without phone number using c#. I search on google but not find any help. I spend a lot of time on google but not find any solution to create a gmail account without phone number. now I am thinking it is possible to create a gmail account without phone number it is possible? Code:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Login_Click(object sender, EventArgs e)
{
string discoveryUri = "https://www.google.com/accounts/o8/id";
OpenIdRelyingParty openid = new OpenIdRelyingParty();
//var b = new UriBuilder(Request.Url) { Query = "" };
var req = openid.CreateRequest(discoveryUri);
req.RedirectToProvider();
}
private void Form1_Load(object sender, EventArgs e)
{
//OpenIdAjaxRelyingParty rp = new OpenIdAjaxRelyingParty();
//var r = rp.GetResponse();
//if (r != null)
//{
// switch (r.Status)
// {
// case AuthenticationStatus.Authenticated:
// NotLoggedIn.Visible = false;
// Session["GoogleIdentifier"] = r.ClaimedIdentifier.ToString();
// Response.Redirect("Default2.aspx");
// break;
// case AuthenticationStatus.Canceled:
// lblAlertMsg.Text = "Cancelled.";
// break;
// }
//}
}
}
and I am using below article :