Cor said:
Go to the solution explorer, click on the icon show all files, and all code
created by the wizard becomes visible to you.
What should I do?
I have still been unsuccessful at trying to change the path to the
database, so I have to ask for guidance as a novice. If I give you more
detail it should help you straighten a novice out!
So, when I do as you eloquently said, I do not see any explicit
references to the database in the VB code. But, when I tried doing
"Edit, Find Symbol", I am given a list of things that point to the
database explicitly (I.E.: Some type of expansion of the variable to
the location of the database is being shown). This listing through the
"find symbol" offers the option "goto definition". When I go to the
definition, I see only the variable name and no explicit path to the
database. It's taking me to the code you said I should look at.
Again, my program runs correctly except I have to be able to change the
location of the database on a PC.
Background: I created the connection to the database by clicking on
"Data, Add New Data Source ...", "New Connection button", "Browse" to
the database, save the default connection string, select with checkmark
the table in the database, click "finish" which would produce a file
having suffix ".xsd" in the Solution Explorer. Then, in the Data
Sources window I dragged the table to my form. The form then shows a
navagation bar and the table. The program runs beautifully.
I can change the path to the database but I would have to create a new
data source connection, connection string, and navigation bar etc.
Briefly, when I did as you described in your last post, I see VB code
such as this:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class ...
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
P.S.: Yes, you did reply to an older thread about this topic, but your
recommendation wasn't useful to me.
....