Thirty seconds of Googling, it took me:
IP-Address TextBox[
^]
You need to either learn how to Google, or learn to start using Google. You caould have had this over twenty minutes ago with a trivial search, mostly taken from your question: "c# winforms textbox that only allows format of an IP address"