Came across this method to validate a textbox for integers only:

As simpled as referencing the validateTextInteger Textbox textchanged event

       private void validateTextInteger(object sender, EventArgs e)
       {
           Exception X = new Exception();

           TextBox T = (TextBox)sender;

           try
           {
               if (T.Text != “-”)
               {
                   int x = int.Parse(T.Text);
               }
           }
           catch (Exception)
           {
               try
               {
                   int CursorIndex = T.SelectionStart – 1;
                   T.Text = T.Text.Remove(CursorIndex, 1);
                   MessageBox.Show(“Please use a valid integer”);
                   //Align Cursor to same index
                   T.SelectionStart = CursorIndex;
                   T.SelectionLength = 0;
               }
               catch (Exception) { }
           }
       }

The Exchange 2010 EMC has some limitations with regard to the management of Room and Shared Mailbox permissions. This is especially when in resource forest deployment, then it is not possible to add the user forest’s accounts to to mailbox permissions or send-as permissions. When your production user account belong to one forest and Exchange is deployed in another, the Exchange Management Console can not manage principles outside of the forest it’s deployed in.

While for any seasoned PowerShell whiz it’s a quick and easy job to add AD extended rights for example, not so easy for a junior helpdesk staff member to do. Hence I wish to share this app, written in C#. I will release it freely in the next few days if I have time before the holidays.

What it does:

Manage Mailbox send-as, send-on-behalf and mailbox permissions from a forms based application, when a room mailbox is detected it will only work in the context of mailbox permissions. It has the ability to add permissions in bulk (handy irrespective of in which forest the user accounts belong to). It was written for the purpose of managing shared mailboxes but can work with regular mailboxes also.

If your company uses RemoteApp for publishing administrative software over RDP then this is for you.

Capture

If anyone is interested please comment, I hope to have the application ready for download soon!

Follow

Get every new post delivered to your Inbox.

Join 391 other followers