Application c# - Login xenforo script php

Hello, I need help, I want to create an application in c# that you have two textbox and a button, and then put your credentials and log des application c# to a php script then can start session des of the application itself.

I would like a session after I tell me the rank you are

Thanks :)