Using database connection in other forms

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Fuitad
Posts: 6
Joined: Mon 12 Feb 2007 15:13

Using database connection in other forms

Post by 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!

[email protected]
Posts: 38
Joined: Tue 07 Mar 2006 17:13

Post by [email protected] » Thu 15 Feb 2007 20:31

If you change the Modifers property to Public, is it visible in the child designer? Just a thought....

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

Post by Fuitad » Thu 15 Feb 2007 20:33

Tried that, no luck :(.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Fri 16 Feb 2007 08:27

What version of MySQLDirect .NET do you use?
Where do you click on "Connection"?

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

Post by 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...).

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Mon 19 Feb 2007 07:45

Where are these other components (MySqlCommand, MySqlCommandBuilder, etc...)?
Try to use MySQLDirect .NET 4.0 beta.

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

Post by Fuitad » Mon 19 Feb 2007 17:09

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

Yay!

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Mon 19 Feb 2007 17:34

Well done.

Post Reply