IsCharLower (user32)
Last changed: -2.185.203.95

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern bool IsCharLower(char ch);

using System;

using System.Windows.Forms;

using System.Runtime.InteropServices;

namespace IsCharLower

{

    public partial class Form1 : Form
    {
    public Form1()
    {
        InitializeComponent();
    }

    [DllImport("user32.dll")]
    static extern bool IsCharLower(char ch);

    private void button1_Click(object sender, EventArgs e)
    {

        try
        {

        char ch = Convert.ToChar(textBox1.Text);

        if (IsCharLower(ch))
        {
            label1.Text = " Lowercase characters are entered and Compiler 1 is returned.";
            label2.Text = " Character Entered Is =   " + ch.ToString();
        }
        else
        {

            label1.Text = "Entered in uppercase characters or numbers or symbols and compiler 0 is returned.";
            label2.Text = " Character Entered Is =   " + ch.ToString();
        }

        textBox1.Clear();

        }

        catch
        {
        MessageBox.Show(
        "Please enter a character.",
        " ", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
      }
    }
      }

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
IsCharLower on MSDN