
PRO
rz90208
USA
Asked
— Edited

I have went thru the tutorial for the plugin and have successfully created a basic plugin. Now I want to go the next step and create a plugin that has a configuration page that is accessed by clicking the gear icon but can not figure out how to do it.
The plugin I hope to create will allow the user to create a connection to a database using a DSN.
RichardZ
Update: One Step Closer - I found the UCConfigurationButton
Update2: Stumbled upon ptp's testplugin on github and creating a ConfigForm.cs using it as my example.
To solve my problem I have decided to go with just one command.
This command will open the DSN connection to the database, Send the query string and return it as an array to your variable and then close the DSN connection. This should make the process (and the programming) much simpler.
Well at least that is the new plan.
@plcdroid As for being your final project, it just might be, as the code I posted is not complete and does not work.
RichardZ
@richard,
The plcdroid post is SPAM!
The user registed today and add a link to a website.
Soon will add (edit the post) more spam links.
@ptp, I expected it was but figured it would not hurt to answer since I was posting anyway. but thanks for the confirmation.
Did you hit any wall. Do you need help with your plugin?
I think now that I am going with only a single command in the plugin, I can follow DJ's tutorial. I will let you know this evening when I rewrite the code. But not knowing C# and just using Google for find the code snippets there is a good chance I will need help so keep an eye on this thread. Thanks much, I will keep you posted on my progress.
@ptp,
Does this look correct?
@rz90208: You need more code.
You can't return a OdbcCommand.
In a few minutes I'll post some code.
I don't have visual studio in front of me but i think those might be Disposable objects, which means you can help the garbage collector by wrapping them in Using() statements like so...