ROSTAM2
یک شنبه 25 آذر 1403, 07:25 صبح
سلام....
من یک MultiView ایجاد کردم که در ثسمت کد View ها اضافه می شن:
Dim View As View
Dim Content As Button
Me.MultiView1.Views.Clear()
For Each Entry As AppProjects In Entries
View = New View
With View
.ID = String.Format("Project:{0}", Entry.Id)
.ViewStateMode = UI.ViewStateMode.Disabled
Content = New Button
With Content
.ID = Entry.Id
.Text = Entry.Title
AddHandler .Click, AddressOf ViewItem_Click
End With
.Controls.Add(Content)
End With
Me.MultiView1.Views.Add(View)
Me.MultiView1.SetActiveView(View)
Next
156338
ولی با کلیک بر روی کلیدو این خطا رو برمیگردونه:
156337
من یک MultiView ایجاد کردم که در ثسمت کد View ها اضافه می شن:
Dim View As View
Dim Content As Button
Me.MultiView1.Views.Clear()
For Each Entry As AppProjects In Entries
View = New View
With View
.ID = String.Format("Project:{0}", Entry.Id)
.ViewStateMode = UI.ViewStateMode.Disabled
Content = New Button
With Content
.ID = Entry.Id
.Text = Entry.Title
AddHandler .Click, AddressOf ViewItem_Click
End With
.Controls.Add(Content)
End With
Me.MultiView1.Views.Add(View)
Me.MultiView1.SetActiveView(View)
Next
156338
ولی با کلیک بر روی کلیدو این خطا رو برمیگردونه:
156337