The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TakeHomeFinal
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
buttonShow.Enabled = false;
buttonLogin.Enabled = false;
textBox1.UseSystemPasswordChar = true;
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text != "")
buttonShow.Enabled = true;
else
buttonShow.Enabled = false;
if (textBox1.Text != "")
buttonLogin.Enabled = true;
else
buttonLogin.Enabled = false;
textBox1.MaxLength = 3;
}
private void buttonShow_Click(object sender, EventArgs e)
{
textBox2.Text = textBox1.Text;
}
private void buttonLogin_Click(object sender, EventArgs e)
{
if
(textBox1.Text = "123")
Â
textBox1.Enabled = false;
buttonShow.Enabled = false;
buttonLogin.Enabled = false;
else
textBox1.Clear();
(textBox2.Text = "Invalid password");
textBox1.Focus();
}
}
}
Â
Â
So this is how far I got and I'm getting to error message cannot convert string to bool. Hoping you could help me with this.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly