|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
datagrid.textbox -maxlength problemI had set the maxlenght to 20, it is valid for me to input 20 chars
However, it also allow me to input 20 chinese words . In fact, I only want to store 10 chinese words & 20 english chars. How can I do that ?? Thanks Sze,
I think that in this newsgroup very few people are active who really deeply know Mandarin (I thought to know one who know something about it) therefore you can better ask it in a Chinese newsgroup because there are people knowing Mandarin (and other Chinese languages). Cor Show quoteHide quote "Sze" <a**@abc.com> wrote in message news:eQGJ9QD5JHA.5728@TK2MSFTNGP03.phx.gbl... >I had set the maxlenght to 20, it is valid for me to input 20 chars > However, it also allow me to input 20 chinese words . > In fact, I only want to store 10 chinese words & 20 english chars. > > How can I do that ?? > Thanks > > Thanks, could you tell me what is that news group name ?
I had search chinese but find nothing. "Cor Ligthert[MVP]" <Notmyfirstn***@planet.nl> ???????:OCpxlLO5JHA.3***@TK2MSFTNGP06.phx.gbl...Show quoteHide quote > Sze, > > I think that in this newsgroup very few people are active who really > deeply know Mandarin (I thought to know one who know something about it) > therefore you can better ask it in a Chinese newsgroup because there are > people knowing Mandarin (and other Chinese languages). > > Cor > > "Sze" <a**@abc.com> wrote in message > news:eQGJ9QD5JHA.5728@TK2MSFTNGP03.phx.gbl... >>I had set the maxlenght to 20, it is valid for me to input 20 chars >> However, it also allow me to input 20 chinese words . >> In fact, I only want to store 10 chinese words & 20 english chars. >> >> How can I do that ?? >> Thanks >> >> > Sze wrote:
> I had set the maxlenght to 20, it is valid for me to input 20 chars Assuming a DataGrid behaves the same as a DataGridView, then you can attach > However, it also allow me to input 20 chinese words . > In fact, I only want to store 10 chinese words & 20 english chars. > > How can I do that ?? a handler to the editing control: Private Sub myDGV_EditingControlShowing(ByVal sender As Object, ByVal e As DataGridViewEditingControlShowingEventArgs) Handles myDGV.EditingControlShowing RemoveHandler e.Control.KeyDown, AddressOf cellEditingKeyHandler AddHandler e.Control.KeyDown, AddressOf cellEditingKeyHandler End Sub Friend Sub cellEditingKeyHandler(ByVal sender As Object, ByVal e As KeyEventArgs) ' Your code to detect the length of the cell content End Sub Where "Your code to detect the length of the cell content" determines how many characters have been entered in the Sender. Presumably you know some way of distinguishing between Chinese and English graphemes; perhaps if AscW(someChar)>255 you can assume it's Chinese. Andrew
Sleep function in vb.net
.NET Security Emails getting stuck in Outbox .NET Marshalling Optimization - FILETIME conversion Saving and retrieving WinForm template info Print in grey scale exe running from unc Launch 9 vb.net app then horzonital window command OnCtlColor() RE: Rectangle with rounded corners |
|||||||||||||||||||||||