Click here to Skip to main content
15,923,374 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: HELP!!!!! on Forms Pin
John Kuhn5-Feb-04 10:16
John Kuhn5-Feb-04 10:16 
GeneralCOM Interop Attributes Pin
Jim Taylor5-Feb-04 5:45
Jim Taylor5-Feb-04 5:45 
GeneralRe: COM Interop Attributes Pin
Mike Dimmick6-Feb-04 3:34
Mike Dimmick6-Feb-04 3:34 
GeneralRe: COM Interop Attributes Pin
Jim Taylor6-Feb-04 3:47
Jim Taylor6-Feb-04 3:47 
Generalvb.net, timer, run program every 5 mins Pin
Chrissy Callen5-Feb-04 3:09
Chrissy Callen5-Feb-04 3:09 
GeneralRe: vb.net, timer, run program every 5 mins Pin
Ray Cassick5-Feb-04 6:39
Ray Cassick5-Feb-04 6:39 
GeneralRe: vb.net, timer, run program every 5 mins Pin
Chrissy Callen5-Feb-04 23:01
Chrissy Callen5-Feb-04 23:01 
Questionhow to set path? Pin
emmshazi5-Feb-04 2:05
emmshazi5-Feb-04 2:05 
Hello all!
I have a problem with my application.
After completion of my program, when I install it to some other PC & try to run it, it gives me "path not found error" for database file. I have used Ms Access file as my backend.
I use Data Adapter Configuration Wizard to make Oledbadapter, Oledbconnection & Dataset. I then realize that the path of my backend file is set according to my computer's path. Someone told me to use Application.Startuppath in connection string.
Now I want to know here how to use it, & specially where to use it?
As I have mentioned earlier that I use wizard to make connection object, I copy the connection string from oledbconnection's property window & copy it to my form's load event like so (but I didn't delete the Oledbconnection object):

Dim cnn as new oledbconnection
dim path as string = application.startuppath & "\" & "Database.MDB"
cnn.connectionstring="........, Data source=" & path & ",..........

But this thing didn't work here. I still got path error, or sometimes I got this error "Object reference not set to an instance of an object."
Isn't there a way by which I can solve this problem? I am using wizard as I am not so familier with VB.NET.
Can anyone help me to complete my project.Confused | :confused:
Thanx in advance.
AnswerRe: how to set path? Pin
Dave Kreskowiak5-Feb-04 9:35
mveDave Kreskowiak5-Feb-04 9:35 
GeneralRe: how to set path? Pin
emmshazi6-Feb-04 2:00
emmshazi6-Feb-04 2:00 
GeneralRe: how to set path? Pin
Dave Kreskowiak6-Feb-04 2:50
mveDave Kreskowiak6-Feb-04 2:50 
GeneralTrueDBGrid CellTips question Pin
gpa20004-Feb-04 23:57
gpa20004-Feb-04 23:57 
GeneralRe: TrueDBGrid CellTips question Pin
stepdaddy5-Feb-04 0:33
stepdaddy5-Feb-04 0:33 
GeneralRe: TrueDBGrid CellTips question Pin
gpa20005-Feb-04 2:55
gpa20005-Feb-04 2:55 
GeneralRe: TrueDBGrid CellTips question Pin
gpa20008-Feb-04 20:47
gpa20008-Feb-04 20:47 
QuestionHow to add pictures to your database from the front end Pin
fready4-Feb-04 20:43
fready4-Feb-04 20:43 
AnswerRe: How to add pictures to your database from the front end Pin
Hesham Amin4-Feb-04 22:39
Hesham Amin4-Feb-04 22:39 
GeneralImage Scanning in VB with ADO conrol Pin
praveed4-Feb-04 19:13
praveed4-Feb-04 19:13 
GeneralRe: Image Scanning in VB with ADO conrol Pin
stepdaddy5-Feb-04 0:41
stepdaddy5-Feb-04 0:41 
GeneralRe: Image Scanning in VB with ADO conrol Pin
Dave Kreskowiak5-Feb-04 8:20
mveDave Kreskowiak5-Feb-04 8:20 
GeneralCall a form’s sub from a Sub Main() Pin
gregcost4-Feb-04 18:32
gregcost4-Feb-04 18:32 
GeneralRe: Call a form’s sub from a Sub Main() Pin
John Kuhn4-Feb-04 19:49
John Kuhn4-Feb-04 19:49 
GeneralRe: Call a form’s sub from a Sub Main() Pin
gregcost5-Feb-04 2:28
gregcost5-Feb-04 2:28 
GeneralRe: Call a form’s sub from a Sub Main() Pin
John Kuhn5-Feb-04 9:31
John Kuhn5-Feb-04 9:31 
GeneralRe: Call a form’s sub from a Sub Main() Pin
gregcost5-Feb-04 9:52
gregcost5-Feb-04 9:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.