Hi guys,
I am just wondering how you would do it basically?
The plan is to use a database just a MDB one, which holds all text fields for all the objects in my application.
For example (real dodgy example)
Label1.text = "Select NewText from Table where [ID] =" & Label1.Name & " and [ENABLED]=1"
I want this to go for every single control in my application, which basically would allow any client to completely customize text fields in the app.
How would you do it?
Currently I'm using this so far to access the Data. But before I continue I want to see what you guys would do?
Code:Imports System.Data.OleDb Public Class Form1 Dim objconnection As New OleDbConnection Dim conn As OleDbConnection Dim cmd As New OleDbCommand Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load conn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Database.mdb;") Dim cmd As New OleDbCommand("select * from Table", conn) End Sub End Class




Reply With Quote
