Tema: Re: Del Visual Basic skripto
Autorius: Raimis
Data: 2009-08-11 08:52:56
Del Enter paspaudimo, tai paprasciau butu: formos Properties susirask property-  AcceptButton.
is pradziu jis yra (none) . Pasirink "Button1" (siuo atveju). Nebeliks ir klaksejimo


> 
> Dar reiktu ivedus i paieska teksta iskart spaust "Enter" paieskai (arba 
> Button'a)
> 
> 
> Radau toki skripta textboxui:
> Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As 
> System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
> 
> If e.KeyChar = Chr(13) Then
> 
> Button1_Click(Me, EventArgs.Empty)
> 
> End If
> 
> End Sub
> 
> 
> 
> bet viena problema - nuspaudus Enter girdisi toks windowsinis 'klik' garsas 
> (butu gerai kad jo nebutu)