Visual Basic Net


Controlbox, simge durumunda kucultmek, ekrani kaplamak ve pencereyi kapatma butonlarinin bulundugu kutudur. Controlbox windows uygulamalarinda form ozellikler penceresinden true degeri false yapilir ise simge durumunda kucultmek, ekrani kaplamak ve pencereyi kapatma butonlari gorunmezler.

aktiftextboxadi.Focus()

Vb.Net de javascript kullanmak icin response.write kullanilir.

Or: Response.Write(”javascriptkodu“)

Web sitelerimizde textbox icerisine veri yazilacagi vakit yazilan bir kac deger sonucu alt kisimda daha once girmis oldugumuz textbox degelerinin listesi cikar. Textbox un bu ozelligini kapatmak icin asagidaki ornek kodu kullanabiliriz. 

Protected Sub TextBox1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Load

TextBox1.Attributes.Add(”autocomplete”, “off”)

End Sub

VB.NET oldugu gibi C#’da bu kod yazimi ayni sekildedir.

protected void TextBox1_Load(object sender, EventArgs e)
{
   
TextBox1.Attributes.Add(”autocomplete”, “off”)
}

case x to y seklinde yazilan kontrolun belirli araliklar arasinda olmasi icin x e baslangic degerini y ye bitis degeri yazilir ise bu degerler arasinda bir karsilastirma soz konusu oldugunda bu kisimdaki isleyis devreye girecektir. Asagidaki ornektede goruldugu gibi degerler arasinda istege bagli notlar goruntuletebiliyoruz.

Select Case textbox1.Text
Case Is =
0
label1.Text = “Stok bitmistir.
Case
20 To 30
label1.Text = “Stok degeri 20 ile 30 arasinda yeterlidir.
Case
50 To 60
label1.Text = “Stok degeri 50 ile 60 arasinda fazladir.
End Select

« Previous PageNext Page »