1 Attachment(s)
DataBase Password/Connection Problem
Hi,
This Used the Disconnected Model:
I Have Asked Before And Still Cant Get it To Work as I Keep Getting it Underlined, Maybe a option Explicit or Strict Error. Here is a Example of how I Make My connection and Using the First, Next, Etc.
Will Someone please Make a password for the Database called Password and Configure the Connection so it will Work. It Usually asks for Username and Password when I Only Put In A Database Password.
Helping with the Find Button Will be A BONUS.
The Database is in the bin Folder. Place The Zip in The C:\ And Unzip.
Whadayamean it doesn't work....
I Wrote this to Test:
Text = Application.StartupPath
It Works Fine On my Machine
Why do some people write me.text instead of what I Do: Text = ...
Does using me. maybe use less Memory???
Another Thing . . .. .Sorry to Bug
In My Parent Form I Use a Connection to the database too, I Read in one of the Forums that If you make it Public then Only one Connection.
So by using the Wizard(same as Example Attachment) set the Property from Friend to Public and that Should do it Right?
But No, it Seems Every Kid/Child needs their own Connection.
My Question:How Does one Use it Globally, as Public does not recognize it.
I have a Similar Question About Enable/Disable menus on the Parent from the Child. Should I start a new thread?
Thanks Again
Re: Whadayamean it doesn't work....
Quote:
Originally posted by Codehammer
I Wrote this to Test:
Text = Application.StartupPath
It Works Fine On my Machine
application.path and Application.StartupPath are two very different things.
Yes, Application.StartupPath will get you to the same directory as the code I posted, but application.path does not exist in VB.NET.
As a programmer, I am very literal about specific statements, and I try not to leave anything open to guesswork or interpretation, though I am not always successful at it.
Its at the Top of the Page
The Attachment is at the Top of the Page.
I Am using visual basic.net 2003
The Picture attachment shows what I Edit
Re: Thats What I Thought Too
Quote:
Originally posted by Codehammer
Thats What I Thought Too, but was wondering about It. I Use the Wizards as you noticed in the Attachment, Do I put it in the Connection String There, or in the Windows Generatred code as you Said:this is where all those [Friend with events] are?
Yes... it's there. Look for a property called .ConnectionString = ...
Quote:
I Actually have a Application with MDI. the Connection for 15 Childwindows all have their own Conection Point to the Same MDI.
Is there a way to only do it in the Parent, all the Child windows then Just Inherit it. I Have Tried once, but changing the Default Friend to PUBLIC, then deleting the Child Windows Connection but the dataadapter.fill Did not work.
Yes, if you were to declare it in a module, and perform all the initialization there, it would be available to all child forms.
Thing is, I don't know how to work with the wizard, so you'll need to go through the wizard's code and make the appropriate changes.
Application.startuppath & other issues, need some tissues!
About Application.startuppath, I Have used it in all My Applications and It Fine so far, the Only Problem i've had is with this Project, where, on 3 occations, after Build, the Line having the application.startuppath, changes to this, in one of the childwindows:
"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\password.mdb"
On next build it screws up again, cannot find connection.
In the program I Have this Check that, if Idle for 40 Sec, then one has to Authenticate again, if the form is minimized the authenticate is minimized too, normal or minimized the authenticate is MODAL, or Should be, if its max'd then it works 100%, if minimized, when returned to normal view, the form is accessable with the "modal" in the Background.
is this a VB.net BUG?
P.S - Mendak's way mentioned to make the Connectyion work, with the DB always in the Same path as Application.(above)