« Home « Chủ đề thủ thuật .net

Chủ đề : thủ thuật .net


Có 125+ tài liệu thuộc chủ đề "thủ thuật .net"

Dạng bài tập về Micosoft.NET- P31

tailieu.vn

Private Sub closeMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles closeMenuItem.Click. Khi chạy chương trình, hình dưới đây sẽ hiển thị:. Trong VB6, Context Menu cũng là một MenuCommand thông thường nhưng ta thiết kế cho nó invisible, để chỉ khi nào ta muốn Pop-Up nó thì nó mới hiển thị.. user right click một control có Context...

Dạng bài tập về Micosoft.NET- P32

tailieu.vn

Thử click new Menu Item trong ContextMenu1, chương trình sẽ hiển thị thông điệp You clicked new Menu Item!. ContextMenu1 đã bị cleared nên sẽ không hiển thị.. Một việc khác ta có thể làm trong lúc Runtime của chương trình là cloning (tạo object song sinh). Khởi động chương trình, click nút Clone Menu, rồi right click TextBox1, ContextMenu...

Dạng bài tập về Micosoft.NET- P33

tailieu.vn

Các bài tập Microsoft .NET 161. Đổi property Text của button thứ nhất (ToolbarButton1) ra Close vì ta muốn đóng chương trình khi user click lên button ấy. Đổi property Style của button thứ nhì (ToolbarButton2) ra Separator vì ta muốn dùng nó để tạo khoảng cách giữa button thứ nhất và button thứ ba.. Đổi property Text của button...

Dạng bài tập về Micosoft.NET- P34

tailieu.vn

ListBox1.BeginUpdate(). ListBox1.Items.Add("Item ". ListBox1.EndUpdate(). ListBox1.SetSelected(1, True. 1 is index of 2nd item ListBox1.SetSelected(3, True). ListBox1.SetSelected(5, True). Để ý cách ta hiển thị một Item với expression Listbox1.Items(i).ToString.. make up the list of Items separated by CarriageReturn/LineFeed For i = 0 To ListBox1.Items.Count - 1. Mess &= (ListBox1.Items(i).ToString) &. For i = 0 To ListBox1.SelectedItems.Count - 1. Mess &= (ListBox1.SelectedIndices(i).ToString) &....

Dạng bài tập về Micosoft.NET- P35

tailieu.vn

Các bài tập Microsoft .NET 171. Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged. Private Sub frmCombo_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load. Các bài tập Microsoft .NET 172. Bind Table Authors to ComboBox1 .DataSource = ds.Tables("Authors"). Make Property/Datafield FullName the DisplayMember of ComboBox1 .DisplayMember = "FullName". Make Property/Datafield AuthorID the...