Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class CustomControl1 : TextBox
- {
- public CustomControl1()
- {
- InitializeComponent();
- }
- protected override void OnPaint(PaintEventArgs pe)
- {
- base.OnPaint(pe);
- }
- public void Pokemon()
- {
- string temp = this.Text.ToString();
- char[] pokemon = new char[this.Text.Length];
- pokemon = temp.ToCharArray();
- for (int i = 0; i < temp.Length; i += 2)
- {
- pokemon[i] = char.ToUpper(pokemon[i]);
- }
- for (int i = 1; i < temp.Length; i += 2)
- {
- pokemon[i] = char.ToLower(pokemon[i]);
- }
- this.Text = new String(pokemon);
- }
- public void Caps()
- {
- this.Text = this.Text.ToUpper();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement