Using database connection in other forms

Using database connection in other forms

Postby Fuitad » Thu 15 Feb 2007 20:08

So I have a mysqlconnection object in my main form and I want to be able to use it in my other forms (mdi childrens) directly in VS. How do I do that?

Right now, if I click on "Connection", the mdi parent connection object is not shown and I can't use it.

Thanks!
Fuitad
 
Posts: 6
Joined: Mon 12 Feb 2007 15:13

Postby john@haldi.net » Thu 15 Feb 2007 20:31

If you change the Modifers property to Public, is it visible in the child designer? Just a thought....
john@haldi.net
 
Posts: 38
Joined: Tue 07 Mar 2006 17:13

Postby Fuitad » Thu 15 Feb 2007 20:33

Tried that, no luck :(.
Fuitad
 
Posts: 6
Joined: Mon 12 Feb 2007 15:13

Postby Alexey » Fri 16 Feb 2007 08:27

What version of MySQLDirect .NET do you use?
Where do you click on "Connection"?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Fuitad » Fri 16 Feb 2007 13:26

I use the latest version of the MySQLDirect 3

And it's when I click on any mysqldirect component in the designer view of VS. If I put a MySqlConnecton component in my main form (mdi parent), I am unable to use it in the design view of VS with any other components (MySqlCommand, MySqlCommandBuilder, etc...).
Fuitad
 
Posts: 6
Joined: Mon 12 Feb 2007 15:13

Postby Alexey » Mon 19 Feb 2007 07:45

Where are these other components (MySqlCommand, MySqlCommandBuilder, etc...)?
Try to use MySQLDirect .NET 4.0 beta.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby Fuitad » Mon 19 Feb 2007 17:09

I am indeed able to use the new beta in design mode.

Yay!
Fuitad
 
Posts: 6
Joined: Mon 12 Feb 2007 15:13

Postby Alexey » Mon 19 Feb 2007 17:34

Well done.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL