VS 2008 Extremely Basic MDI Plugin System

Jul 8, 2010

I've got an MDI form with a menustrip that already detects all .dll files in a folder and adds them to the menu to show the user which plugins are available. The thing is that I don't know what to do from here on out...

I'd like to be able to update my program without having to stifle through all my code (it's a very big program) and be able to create basic new features through external DLLs. It's extremely useful for users to make their own features too

Anyway, what a plugin would look like is most likely just a form with controls on it that the user makes themselves in VB. I'd like the plugin to activate through an init() sub within the plugin by clicking on the menu item shown in my MDI form.

I kind of started with my own code but it didn't really get anywhere:

ListFilesInMenuStrip(PluginsToolStripMenuItem, App_Path() & "Plugins")
For Each c As Control In Me.Controls
If TypeOf c Is MenuStrip Then

[Code]....

...Where ListFilesInMenuStrip() is my function to add all the DLLs to the menu and App_Path is just a shortcut function which serves the same purpose as VB6's App.Path() class.

I've also done research but only came across all their weird complex CodeDom and other weird things...This seems so simple but I just can't wrap my mind around it :I

View 4 Replies


ADVERTISEMENT

VS 2008 - Implementing System To Check Whether Plugin Installed

Jul 8, 2009

I am trying to create a plugin system. I have the actual plugins working fine but now I want to implement a system that knows whether the plugin is installed or not. I can get the plugin name when the form is loaded (ex. "Plugin1"). I then want to check this against something to see if that specific plugin is already there (if not add it) and if it is there is it enabled. I was thinking of doing this with an xml file but thought that might be a lot of work reading and writing each value. I then thought of the My.Settings and was wondering if this is possible. I would want to create an "element" for the name and give it a value of either true or false.

View 10 Replies

Plugin System In .net?

Jun 1, 2011

Is there a significant enough difference with .NET from regular native code to maketraditional plugin systems not very useful? Either way, there must be some system for making a program extensible after it is compiled. To allow third party development withoureleasing the source code. Anyone have info on this? I said .NET, but of course specifically I mean Visual Basic

View 2 Replies

Collection Of Interfaces (plugin System)

Mar 8, 2012

I am trying to make a plugin system in vb.net and i am using interfaces to do that. I have managed to implement the plugins but now i am having problems with setting the plugins in a dictionary or some sort of array.

The system is simple. I have the main application and i have plugins. The application needs 2 mandatory plugins and that is data and authentication. Other plugins are free to use so i have 3 interfaces. Data, Authentication and CustomPlugins.

I load the plugins with this

CODE:

It works fine like this but i want to make a collection of plugins because i don't know how many plugins the customer make. So initially i thought to make a collection

CODE:

But that doesn't work. The main focus is to load as many plugins as i like but have then in some sort of array. A dictionary would be perfect but is not a must.

View 2 Replies

Create A Plugin System For An Application?

May 14, 2009

i want to implement in a program. I'm not asking for code just some advice and maybe a link or 3 to useful pages on the internet.I want to create a plugin system for an application that i want to make. The idea for the plugin system is based on the following...

1-Some graphics editing programs have what i think is called a filter/effects chain. its where you make a list of filters and settings that the program runs to edit the image.

2-In yahoo pipes you take small parts and use them to complete tasks for you mashup (like pulling all the images returned in a search and displaying them).

The system i want advice on is basically a plugin chain system modeled after these 2 idea's where the user selects plugin's and forms a chain out of them.for instance if i wanted to display a picture then i would form a chain of plugins like this

legend:[(inputs)what it does(outputs)]

[show open dialog plugin(output filepath)] -> [(filepath input)open picture plugin(output bitmap object)]->[(input bitmap object)Display a picture plugin(make a form for display)]

The code for the task's will of course be in the plugin's.The problem is i have never done any plugin system before. the hardest part i need help with is getting the plugin's loaded and sending the output's to each other. Also another problem i think is that the plugin's could be for anything (parsing text, displaying a picture, opening a url, downloading a file, etc, etc)Again I'm not asking for code just advice and some useful links to information.

View 1 Replies

Make A Plugin Type System For Themes?

Aug 16, 2011

I am looking for the best way to make a plugin type system for themes. have allow users to create custom GDI based controls in a dll plugin that is to be able to be switched on runtime by users. My issue is there is no way to have a dynamic inheritance so how can I make it so the controls show in the toolbox and can be changed on runtime?

View 5 Replies

Create A Plugin System Where Plugins Can Be Dynamically Loaded?

Dec 21, 2008

I am trying to create a plugin system where plugins can be dynamicly loaded (we don't know how many there are, what their classes are called, ...)This is sample code for a plugin:

Code:
Public Interface IPlugin
Sub bla()
Function bla3() As String
End Interface

[code]....

This code SHOULD msgbox("yay") when it finds a type that implements my IPlugin interface. Yet it never finds one. I can't find what I did wrong. It gets to the debug.print("2"), but never gets past the "If GetType(IPlugin).IsAssignableFrom(t) Then".

View 4 Replies

Getting An Extremely Odd Error From Visual Studio 2008

Nov 6, 2010

This morning I opened up my project The Bible Study Tool and got a pop up warning box that says the following: There is no editor available for 'G:VisualStudio ProjectsThe Bible Study ToolThe Bible Study ToolBSTMain.vb'. Make sure the application for the file type (.vb) is installed. I do not know how to 'make sure the application for the file type (.vb) is installed. I get same error no matter what solution (program) I try to open. I can see the forms code window, but when I double-click the form in the solution explorer I get the above warning.

[Code]...

View 6 Replies

VS 2008 Plugin / Mod In Program

Oct 4, 2010

For many Java games/programs I use, you can download plugins/mods. Now I'm wondering if this is possible in VB?

View 3 Replies

[2008] Use The ESMS Outlook Plugin?

Feb 7, 2009

how to use the eSMS Outlook plugin. Send a mail with Vb.net trough Outlook is easy, but I don't know how to use the SMS plugin from Vb.net.

Dim subject, Recipient, Message As String
On Error GoTo errorHandler
Dim oLapp As Object
Dim oItem As Object

[code].....

View 4 Replies

VS 2008 Crystal Reports Plugin/Express ED?

Feb 16, 2010

We always get this error whenever we try to run the form that has the Crystal Reports viewer on the unit to which we deployed our application. Attached is the screenshot of the generated error and the complete error description.

View 2 Replies

Send An Application To The System Tray With Visual Basic In Visual Studio 2008 Professional?

Sep 26, 2009

I have Visual Studio 2008 Professional and I'm trying to make it so I can click a button to send the application to the System Tray and then click the icon in the System Tray to make the application come back.

Can anyone provide me a method or sample code to do this?

View 8 Replies

VS 2008 : Work Properly With The Reflection To Create A Module/plugin-based Application?

Sep 24, 2009

I have found a lot of articles about Reflection and know how to create a class. I'm practicing how to work properly with the reflection to create a module/plugin-based application.So I found a simple example which is working great, but it isn't dynamic enough, 'cause it is hard-coded. I need to read all the .dll's from the application.startuppath & "modules" & *.dll and get there names (without the .dll).Code is was testing for practice returns the form (I know that this is not the correct way to call the dll dynamically):

vb.net
Imports System.Reflection Public Class Form1 Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click Dim assemblylink As [Assembly] assemblylink = [Assembly].LoadFrom(Application.StartupPath & "/" & "LoginAssembly.dll") Dim LoginFrm As Form LoginFrm = assemblylink.CreateInstance("LoginAssembly.Login") LoginFrm.Show() End Sub

View 8 Replies

Dataset Designer Being Extremely Slow

Apr 17, 2009

I have a dataset with around 15 table adapters. Everytime I make a change, such as add a column, change a type, or just anything, it takes around 3-4 minutes before studio responds again. The processor and ram are in good shape, but there is a spike in network usage by devenv during this time. In fact, devenv has the higheset network usage all together, even with with IE open and browsing. Why would this be and is there any remedy?[code]...

View 3 Replies

Button Array - Code Used (extremely Inefficient)

Aug 10, 2011

I have a button array that I filled up. Here is the code I used to do that.

Public buttons(29) As Button

For i = 0 To 29
buttons(i) = CType(Me.Controls("Button" & i), Button)
i += 1
Next i

Here is some code that I used (it is extremely inefficient):

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click, Button4.Click, Button5.Click, Button6.Click, Button7.Click, Button8.Click, Button9.Click, Button10.Click, Button11.Click, Button12.Click, Button13.Click, Button14.Click,

[CODE].....................

View 1 Replies

C# - Building Extremely Lightweight Business Object / DAL ?

Apr 7, 2010

I have completed a simple database for a project. Only 6tables. Of the 6, one is a "lookup" table.There is one "master" table that is the driver for the system. It is referenced as a foreign key by the other four tables.Give that this step is completed. What is the FASTEST, EASIEST way to create POCOs/BizObjects that can load load the data and the child data.Here are my CAVEATS.

I don't want to spend more than 30-60 minutes learning how? There is very little biz logic needed in the POCOs. They will pretty much load data. Don't even really need to write back data.I already know CSLA (up to version 3) but I feel that is overkill for this little project.Nevertheless, I would love it if it ROOT objects could have collection classes that contain the CHILD objects as in CSLA...but again, without using CSLA.

View 3 Replies

MS Access Table Update Extremely Slow?

Apr 6, 2009

I have looked all over for a solution to this problem and have tried a bunch of different things, but nothing seems to work.I have a sub procedure that does the following:

1) adds two columns to a data table (table1)

2) fills a dataset with several tables in order to make calculations (this determines the data that will be stored in the two new columns of table1)

3) updates ONLY table1, and ONLY the two columns that have just been added (these columns are thus empty for every row before the update begins)

As it is now, the da.Update takes about 3 hours to populate the entire table (it updates about 300 records per MINUTE if I'm lucky). There are approximately 40000 records in table1 for this test subset, but there will eventually be up to 1.5-2 million (in other words, this is a small table currently). I have tried using executenonquery() along with a sql UPDATE command instead of da.Update, as well as many other things, but none of them has improved performance at all. I've also tested it on two PCs, one running Vista and one XP, and there were no differences. I'm using Access 2003. I know Access is not ideal, but for now it is the only option.

I know that the root of this is the line of code with the da.Update, because the giant loop before it that I previously thought was causing the slowdown executes in 30 seconds, leaving only the update before the subroutine is complete. I don't know how exactly the da.Update works, but I've suspected that maybe it has something to do with that? Code is below:

[code]...

View 7 Replies

VS 2010 Working With Extremely Large Numbers?

Apr 28, 2011

For example, to calculate this:(22 ^ 29) Mod 57Supposedly there is a way to get around overflows and do these calculations, but I can't find much online. Now, the person who said this was doing VBA in Excel and said that there was about 4 lines of code which could handle the overflow so it wouldn't happen.

View 4 Replies

Asp.net - Writing To Excel File Containing Formulas Is Extremely Slow

Dec 27, 2011

We have an automatic process that opens a template excel file, writes rows of data, and returns the file to the user. This process is usually fast, however I was recently asked to add a summary page with some Excel formulas to one of the templates, and now the process takes forever.

It successfully runs with about 5 records after a few minutes, however this week's record set is almost 400 rows and the longest I've let it run is about half an hour before cancelling it. Without the formulas, it only takes a few seconds to run.

Is there any known issues with writing rows to an Excel file that contains formulas? Or is there a way to tell Excel not to evaluate formulas until the file is opened by a user?

The formulas on the summary Sheet are these:

' Returns count of cells in column where data = Y
=COUNTIF(Sheet1!J15:Sheet1!J10000, "Y")
=COUNTIF(Sheet1!F15:Sheet1!F10000, "Y")

[Code].....

View 3 Replies

Scrollable Display Of Extremely Large Image On A Form

Aug 11, 2009

I am an experienced programmer but mainly in 4GLs and assembly. Relatively new to VB programming, especially GUI applications. On a form I need to create an area that will be used to display *extremely* large TIFF images. typical image size would be 2000 pixels by 100,000 pixels. Typically I will NOT want to display the entire image at once, so the area will need to have scroll bars and/or other methods to scroll/pan around the image.

I have read about and tinkered with the bitmap and picturebox objects, including some threads about several different ways to implement scrollbars. However, I see that the picturebox size is limited to 32K pixels in both dimensions. I suppose that I might be able to copy various portions of the bitmap to the picturebox depending on scroll position, but that seems potentially quite slow and cumbersome. Can an expert developer who is experienced with these types of issues regarding the following:

1. Can bitmap objects be used effectively with TIFF images of the size I am working with?

2. an approach that should produce reasonable scrolling performance for these extremely large images without excessive coding effort?

3. For an image that exceeds the picturebox size when displayed at 1:1 scale, is the picturebox capable of displaying a reduced size version of such an image without lots of code, and if so, how?

4. Many (most?) graphics display objects count on all of their display data being stored in memory rather than on disk. Would that be true of a TIFF image loaded into a bitmap object and displayed via a picturebox? If so, the amount of RAM required in order to buffer the entire image in memory could be a potential problem for images of this size. Is there an advisable way to have the picturebox or other display object only load portions of the image into memory on an as needed basis, and purge them once they are no longer required? Are there any built in objects/methods/properties or is there any sample code to show how to do this?

View 12 Replies

VS 2010 Loading Extremely Large(dimension) Images?

Feb 8, 2012

I'm trying to load this image file on a PictureBox but I get an "OutOfMemoryException was unhandled" error.

How do I allocate more memory for this? Or maybe use another container? My project's main feature is loading maps, unfortunately my boss wants to load the whole map and won't accept sliced version of the map.

View 8 Replies

Authoring - Developing A basic Help System For VS 2010

Nov 27, 2010

Is HelpStudio Lite still the tool of choice for developing a basic help system for VS 2010? The only mention of this that I can find is in the MSDN library; [url] and it references VS 2008. I just need something basic and (hopefully) free and of course it should not become obsolete anytime soon.

View 9 Replies

Changes Don't Occur In Visual Basic + Login System

Feb 5, 2009

If I change something in my visual basic, and start debugging, nothing changes to the program I made. Wether I save or not, it's just always the same.

Secondly, I would be very glad if somebody could give me the codes for a
"Create User" button. So it saves in C:Program FilesAcc.txt

And if you created one, you can login with it after that.

View 11 Replies

Search And Replace Text With System.IO (Visual Basic)?

Dec 1, 2009

What is the code to replace text in a document. For exaple if my document had the text "The Dog Jumped over the fence" how would i get it to change to "The Cat Jumped over the fence"

View 3 Replies

Visual Basic Express File System Editor?

Apr 18, 2009

I am trying to publish a program but when I run the setup I get an error saying I need to put WindowsBase v3 in the Global Assembly Cache which I can do using the File System Editor apparently. The Help says to access the file system editor go to "Editor" on the "View" menu in Visual Studio. But it isn't there.

View 1 Replies

How To Develop Plugin

Dec 15, 2010

i need to develop a plugin to evaluate web interfaces. Can someone guide me about how to develop plugin in vb 2008 express.

View 4 Replies

IDE :: Create A Plugin For VB 6?

Jan 19, 2010

I am working on a migration project to convert a Visual Basic 6 system to a new platform. To make life easier for the programmers I would like to develop some plug-ins for the Microsoft Visual Basic 6 IDE. But until now I've found only information about using vb6 to write plug-ins for other programs. how to create a plug-in for the Microsoft Visual Basic 6 IDE (SP6)?

View 3 Replies

System.io.fileinfo Cannot See A File In System Folder On Windows Server 2008 64bit

Jan 28, 2010

I have a utility that is a simple exe that is not installed compiled with VS2005 and works well. But when I upgraded to VS2008 the utility can no longer locate files in the active system folder. I have UAC turned off and am logged in as the Administrator and it still can not locate a file that I can see in Windows Explorer. The file I am looking for is PakMgr.exe.

View 1 Replies

VS 2008 : Error - Cannot Perform 'Like' Operation On System.Int32 And System.String"

Nov 2, 2009

I'm trying to use DataView.Rowfilter and I'm getting an exception which says "Cannot perform 'Like' operation on System.Int32 and System.String".

Here's the code...

Dim str2 As Double = CDbl(searchSTR)
Me.shipperDV.RowFilter = fieldName & " LIKE '*" & str2 & "*'"

View 7 Replies

VS 2008 System.IO.FileNotFoundException: Could Not Load File Or Assembly 'System.Core

Feb 15, 2010

I have finished coding an application which I designed for people working in my office. When I started to install the application to computers at the office, I realized that, in some machines, application doesn�t work properly. Although it worked for 15 computers perfectly, for 3 computers following error code is displayed:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

[code]....

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved