diff --git a/smstool.py b/smstool.py
index 3d52570..1d60ed0 100644
--- a/smstool.py
+++ b/smstool.py
@@ -3,6 +3,22 @@ from os import system
 
 SMSLEN = 160
 
+#class FloatValidator(wxValidator): 
+#  def Clone (self): 
+#    return self.__class__() 
+#  def Validate(self, window): 
+#     ctrl =wxPyTypeCast(self.GetWindow(), "wxTextCtrl")
+#     try:
+#       value = float( ctrl.GetValue())
+#       return true
+#     except ValueError:
+#       wx.MessageBox("A text object must contain some text!", "Error")
+#       return false
+#  def TransferToWindow(self):
+#    return true
+#  def TransferFromWindow(self):
+#    return true
+
 class SmsToolFrame(wxFrame):
   def __init__(self, parent, id, title):
     wxFrame.__init__(self, parent, id, title,
@@ -19,10 +35,13 @@ class SmsToolFrame(wxFrame):
     self.textCtrl = wxTextCtrl(panel, 20, "",
                    wxDLG_PNT(panel, wxPoint(30, 4)),
                    wxDLG_SZE(panel, wxSize(160, -1)))
+    self.textCtrl.SetMaxLength(SMSLEN);
 
     self.nrCtrl = wxTextCtrl(panel, -1, "",
                   wxDLG_PNT(panel, wxPoint(30, 20)),
-                  wxDLG_SZE(panel, wxSize(30, -1)))
+                  wxDLG_SZE(panel, wxSize(30, -1)),
+#                  validator = FloatValidator())
+                  )
   
     self.fooCtrl = wxButton(panel, 10, "Senden",
                   wxDLG_PNT(panel, wxPoint(70, 20)),