KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

MaskedTextBox in .NET?

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
masken
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 14 Mar 2003
Posts: 202
Location: Gothenburg, Sweden

PostPosted: Sun Mar 04, 2007 10:08 am    Post subject: MaskedTextBox in .NET? Reply with quote

I can't seem to find anything about this in the .NET version?
Back to top
View user's profile Send private message MSN Messenger
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Sun Mar 04, 2007 1:16 pm    Post subject: Reply with quote

Here is an example and a little info:

MaskedTextBox Break Down

.Mask Property Value

  • A String representing the current mask. The default value is the empty string which dis-allows any input.
  • Mask must be a string composed of one Or more of the masking elements, as shown in the following table:
  • 0 Digit, required. This element will accept any single digit between 0 And 9.
  • 9 Digit Or space, optional.
  • L Letter, required. Restricts input to the ASCII letters a-z And A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions.
  • [abc...] Match Set. Restricts input to the characters contained in the Set.
  • [a-z...] Match range. Restricts input to the characters contained in the range.
  • < Shift down. Converts all characters that follow to lowercase.
  • > Shift up. Converts all characters that follow to uppercase.
  • | Disable a previous shift up Or shift down.
  • \ Escape. Escapes a mask character, turning it into a literal. "\\" is the escape sequence For a backslash.
  • All other characters Literals. All non-mask elements will appear as themselves within MaskedTextBox. Literals always occupy a static position in the mask At Run time, And cannot be moved Or deleted by the user.


Code:

Break On

$System = CreateObject("Kixtart.System")

$Form = $System.Form()
$Form.Text = "Form1"
$Form.Size = 640,300
$Form.FontSize = 10

$Label = $Form.Controls.Label()
$Label.Width = 600
$Label.Left = 10
$Label.Top = 10
$Label.Text = '[a-zA-Z][a-zA-Z][a-zA-Z] - \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z- [0-9][0-9][0-9]'

$TextBox = $Form.Controls.MaskedTextBox()
$TextBox.Top = $Label.Bottom+10
$TextBox.Left = $Label.Left
$TextBox.Mask = '[a-zA-Z][a-zA-Z][a-zA-Z] - \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z- [0-9][0-9][0-9]'
$TextBox.Height = 21
$TextBox.Width = 600

$Form.Center
$Form.Show

While $Form.Visible
 $= Execute($System.Application.DoEvents())
Loop

Exit 0

_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
masken
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 14 Mar 2003
Posts: 202
Location: Gothenburg, Sweden

PostPosted: Sun Mar 04, 2007 3:52 pm    Post subject: Reply with quote

Benny, are you saying this should work in .NET?
Back to top
View user's profile Send private message MSN Messenger
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Sun Mar 04, 2007 5:50 pm    Post subject: Reply with quote

My bad, this is only for kf.classic, don't think it is there for kf.net
_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
AJ83
KiXforms Follower
KiXforms Follower


Joined: 14 Jun 2007
Posts: 16

PostPosted: Thu Jul 10, 2008 11:28 am    Post subject: Reply with quote

In another thread Shawn posted this in june 2007:
Quote:
Btw - I will be posting a new Dev Build soon. Compiled under pure .Net 2.0 - this means we can start to open-up all the new fancy controls in 2.0 (like DataGridView and MaskedTextBox and SplitContainer etc etc) ...


Is MaskedTextbox available in kixforms.net now?

Edit:
Shawn, could you answer this question? If MaskedTextbox isn`t available in .net, i will have to build different kinds of basic input validation (isnumeric and such) on multiple textboxes.
Thanks in advance!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group