我想一個表單對象存儲到一個變量,但沒有成功:形式是沒有定義VB.NET
此代碼不起作用:
Dim invoice_form As billing_new_invoice
'Get last remote Row
Dim last_row As Integer = CType(main.ActiveMdiChild, invoice_form).invoiceitems_new_invoice.Rows.Count - 1
Dim count_row As Integer = CType(main.ActiveMdiChild, invoice_form).invoiceitems_new_invoice.Rows.Count()
此代碼的工作:
Dim invoice_form As billing_new_invoice
'Get last remote Row
Dim last_row As Integer = CType(main.ActiveMdiChild, billing_new_invoice).invoiceitems_new_invoice.Rows.Count - 1
Dim count_row As Integer = CType(main.ActiveMdiChild, billing_new_invoice).invoiceitems_new_invoice.Rows.Count()
我需要的形式實例存儲在變量(invoice_form),即庫侖d用於多行代碼中,但它表示(類型'invoice_form'未定義。) 任何人有想法解決這個問題嗎?