No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
- Interests
- Airsoft, Programming, Skeet & Trap
- PC Specs
- VB.Net, C#, C++, Pascal, Batch
To save data to your program using My.Settings. To do this go to your program's properties and to Settings. Create your variables there and to access them, here's an example: dim FavNumA as string FavNumA = 5 My.Settings.FavNumB = FavNumA My.Settings.Save FavNumA=3 MsgBox (FavNumA) MsgBox(FavNumB) You will get a first … |
|
Here is a class to SQL use an access database: Class MyDB Public DBName As String Private con As New OleDbConnection(ConStr) Sub New(ByVal DBN) DBName = DBN End Sub Private Function ConStr() ConStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & DBName & ";" End Function Private Sub ConInit() If con.State <> ConnectionState.Open Then … |