![]() |
|
|
Few Lines to add in your Form_Load event and you will get full control over your form and all included (TextBox - Lables-Buttons-Grid-Recordset) and all related events (Leave-paint-Keypress-AfterColEdit-OnAddNew-Click-MouseEnter-MouseLeave-MouseDown-Enter)
You can:
Example:
dm.InitForm(CN, Me, oMaster, AxDataGrid1, oDetails)
dm.PrepareImageButtons(aImage, "C:DataManageIcons", False)
dm.NavigationButtons("FirstButton", "PrevButton", "NextButton", "LastButton")
dm.ManageButtons("OkButton", "NewButton", "DeleteButton", "ExitButton", "SearchButton")
dm.KeyFields("OrderId")
dm.SetLink("OrderId", "OrderId")
dm.AddRelatedValue("Customers", "CustomerID", "CustomerID", "CustomerName", "xCustomerName", 3)
dm.AddGridRelatedValue("Products", "ProductID", "ProductID", "ProductName", "ProductName", 2)
dm.KeyLeaveField(oMaster, "OrderId", 5)
dm.RequiredFields("OrderId+OrderDate+CustomerId")
dm.NumericFields("CustomerID", "OrderId", "ShipVia")
dm.DateFields("OrderDate")
dm.PopulateForm(Me, oMaster, AxDataGrid1, oDetails)
after this few lines you will get full automated controling on your form without any additional code to write, it is incredible!





Reviews & Questions
