Make A Class That Can Be Referenced In From Other Applications?
Dec 13, 2010
I am wanting to make a class that can be referenced in from other applications. In this class I simply want to do a showdialog to a form. That form has a ssrs pre-defined within it and a viewer all set to show the report. But when I try and define that action I get that my form is now declaired
Imports System
Imports System.Drawing
Imports System.Collections
[Code]......
View 3 Replies
ADVERTISEMENT
May 12, 2009
I am attempting to move a highly referenced class from one namespace to another. Simply moving the file into the new project which has a different root namespace results in over 1100 errors throughout my solution.Some references to the class involve fully qualified namescape referencing and others involve the importing of the namespace.
I have tried using a refactoring tool (Refactor Pro) to rename the namespace, in the hope all references to the class would change, but this resulted in the aforementioned problem.Anyone have ideas of how to tackle this challenge without needing to drill into every file manually and changing the fully qualified namespace or importing the new one if it doesn't exist already?
View 5 Replies
Oct 11, 2009
how to word this, as it is it's complex to understand the concept of the idea. Basically, I'm trying to use an interpreter pattern, based off of the code I used in php. In php the code is:
abstract class Expression {
private static $keycount=0;
private $key;
[code]......
The problem I'm having is that the static variable is blank for each child using it. How can I have it where one child increases the keycount,and ALL of the children have the new keycount variable?
View 3 Replies
Jun 6, 2011
I am trying to instantiate a c# class whose project is referenced within a vb.net project.By providing the following declaration/instantiation of the class, I hoped to be able to access the instantiated classes publicly declared byte array within a vb.net module.The compiler won't let me. I get the message Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. It wants me to replace the reference to the instantiated class and public member frameData() with the general Class definition name. Why can't I access frameData through the instantiated variable rxFrame?
View 5 Replies
Oct 15, 2009
I've created a class library and built a dll (release build). I've then referenced the DLL in another project (I've tried several). I can see the namespace and classes in Object Browser and I can declare instances of the classes but I cannot use or see any of the methods or properties! there is no IntelliSense whatsoever and calling the methods manualy results in a 'Declaration expected' error.
Within the class library solution I have a unit test project referencing the class library project which works all works fine (and all the tests pass).
Can anyone provide any pointers to what might be going wrong here? I've built plenty of dlls in the past and have had no trouble referencing them at all.[code]...
View 3 Replies
Mar 1, 2011
I am using VB .NET 2003. I have created a user defined Class Library and created a reference to it in my application. Is there a way I can compile the application so that the Class Library DLL is embedded into the application? I would really like to be able to distribute the application without having to distribute the DLL as a second a file.
In other words, I made a New Class Library lets say called TEST. I developed a new class within this library called MYCLASS. I built the Library TEST and created TEST.DLL. I then made a new visual basic project called APP1. I added a reference to TEST.DLL. I now can use TEST.MYCLASS within my APP1 project. The application APP1.EXE will run in the test environment, but if I move it to the runtime environment it will give me an error "File or assembly name TEST or one of its dependencies was not found". To correct this error I can place TEST.DLL in the directory where APP1.EXE resides. I would prefer not to have to put TEST.DLL in the directory. Can I easily compile it into APP1?
View 15 Replies
Sep 29, 2009
How would I test the following code?
Public Sub SetSerialIdForDevice()
Try
Dim component As Object = container.getComponentRef("componentInterface")
[code].....
View 2 Replies
Jun 8, 2010
i created a Class library (.dll) and loaded it as reference into a main project. In the code for the class i've handled exceptions using try..catch subs, however when debugging the main project exceptions that are handled in the DLL still get thrown! (the class ".vb" file gets loaded into the debugger and the line of the exception shows up)
Up till now i've found it useful that when an unhandled error occurs in the imported reference, it shows up in the main project with tracing back to the referenced class. But i dont want the exceptions that are handled in the reference class to be thrown when debugging the main project!
As you can see the exception thrown was handled with try...catch this class exception.vb belongs to the project that created the class library (.DLL that i referenced). i didnt even load the project that built the reference so it amazes me that it could find the coding class to begin with.
View 3 Replies
Apr 7, 2010
I'm sure there are several ways of achieving my goal but I am after opinions on what you think is the best option. I'm writing a vb.net application which (amongst other thinks) interfaces with media players in the home. Because there are different types of media playersI'm trying to structure it so each type of media player has it's own class which interfaces to a management class which sits on top of all the different devices types.
The device classes are responsible for discovering the phsyical devices and returning that information up to the management class. A device class may be responsible for monitoring 1 or more physical devices so..
[Code]...
View 1 Replies
Dec 17, 2009
I have three different web applications that I made in VS08 vb.net. Each application uses a class that i continue to update (MyClass.vb), other than using Vault to propogate changes, is it possible to create a class or dll and put it out on the webserver and have each web app call that class or dll?
View 3 Replies
Feb 13, 2012
I have an 8 bit digital output board used for device controlling. Each external device needs one bit and is controlled by a different application.I have written a class library and the class DigitalOutputPort (VB 2010) that envelopes the driver that manages the 8 bit port. Each device application uses this class, creating its own instance.
In order to set a bit of the digital output port, I have to write a byte to that port: this byte is the bit mask for all 8 bits together: to set HIGH the bit number 0 - 1 - 2, I have to write 7 on the port, to set HIGH all 8 bits, I have to write 256, and so on...
All works fine when only ONE application uses the class. But if two applications want to set its own bit on that port, I get problems because I do not know the current value of all bits set by other applications (the driver has not such function) and, of course, I cannot change one bit without changing all the other (if I do not know the current bit mask)
Normally this looks like a typical case of sharing data between two application and my first idea was to write the current value of the port in a file on the disc, where all application can access and read it. But it seems to be too much heavy for this simple problem. Moreover it could also creates performance ans reliability problem.
Then I though about using a shared field (property) in the class. A shared field preserves its value between all instances of a class: but is it also true between instances from different applications? I cannot find more info about this last point, I have to make same test.
A third way would be that I create just only ONE instance of the class DigitalOutputPort, one for all applications.The first application that needs it, create the object, all other applications will used the already created object.I like more than other this way, but I do not know if and how it can be done.
View 1 Replies
Jul 12, 2009
making a general functions class library that will be used in several applications and asp pages, sometimes running at the same time.I've looked at a lot of samples on the web and they all show you to create an instance of the classlibrary namespace or the classlibrary class.
IE.
dim obj2 as new mycompany.mynamespace.myclass
dim n2 as integer
n2 = obj2.somefunction(...)
What I did was create my class library and put a class in it and declared a function as sharred, then created my dll.I don't have to create an instance of it and I can use it like the net framework by just coding
n2 = mycompany.mynamespace.myclass.somefunction(...).
The net framework does this, I mean once I imports it I don't have to make an instance of it in every function.All the samples I've seen about class libraries do not use the shared keyword.
View 1 Replies
Jan 23, 2010
VB.NET 2008 can make 64bit applications?
View 5 Replies
Feb 23, 2011
I don't want my programs to be cracked. I have this simple authorization system that prompts my users to enter their forum credentials (I have a forum and the users must be registered members to use the programs).So I made a php script that will take in 3 strings sent in by my applications and it will check against the database if that user exists and is of the proper group and it will display a message on the page and my application then looks for the response in the page source which says if this particular user is allowed to use the program or not.
View 4 Replies
Jan 18, 2010
I use several different applications for analysis of pupil data. Each of these applications require similar or identical data but because they don't draw their information from the same sources there is often a need to enter this data more than once which obviously is a waste of time. Some of the data is accessed through the intranet via IE, other applications are standard Windows apps. I would like to create some sort of bridging application to allow data to be automatically shifted from one location to another but have no idea how to use one application to control another
With regard to getting data from the intranet, I have managed to write an application that can retrieve some (but not all) data off a particular page of HTML. It does this by searching the source HTML but some of the data that appears on the page isn't present in the source file. This is very frustrating because I can see it in the browser but can't seem to access it through my application.
View 4 Replies
Jun 15, 2010
I have two web applications that have been migrated over many version of visual studio dating back to 2002 ( I think ).. I'm currently trying to get these applications to act the same in Visual Studio 2010 Premium.App1 - Has designer.vb attached to the pages, and I can see them in the IDE. When I publish the site, it does not want to automatically delete all of the existing files on the target webserver. When I right click -> Properties, a window opens up with lots of web site specific options.. such as Application, Compile, References, Web, Package/Publish Web, Package/Publish SQL, Silverlight Applications.. etc. There is also the option in the right click menu to "Convert to Web Application", which doesn't seem to do anything after the prompt.. and the option for Convert never goes away.
App2 - Does not have designer.vb pages visible in the IDE. When I publish the site, it wants to delete all existing files first.. I'm guessing this is some kind of pre-compile option. When I right click the project -> Properties.. all I see is the smallproperty window, and I don't see any website options like Silverlight or any that App1 gets. There is no 'Convert to Web Application' option.I can not get these two apps to 'act' the same.. and I don't even know which is acting as it should? Both apps work, and publish fine.. they are justing annoying in the IDE that they are so different. What can I do
View 2 Replies
Jun 20, 2009
I made an client server application in vb.net and it is alredy installed among various clients.The problem is i found a potential bug in ma application, so i want to make patch for ma apps(Like a update files that can be downloaded
View 1 Replies
Feb 15, 2012
Well my application is 37 KB size, but when i start the program it took like 10-15 sec to startup, is there a way or code to make my applications run fast and fresh?
View 2 Replies
Nov 2, 2009
Is it possible to make an application, but that isn't visible in the taskmanager -> applications
View 39 Replies
Feb 21, 2011
Is it possible to make applications for the Android phone using VB .NET?
When I searched this, I found stuff where people talked about it, But I didn't find any guide on how to do it or anything that I'm looking for.
View 2 Replies
Feb 24, 2012
i made a some changes in my window application at local host , now i want same on clients machine where source code is not present only dll are present,, how i made changes there or how to make build???
[URL]
View 9 Replies
Nov 19, 2011
Can I make applications in the Free version of VB Express and use them on other machines?
View 9 Replies
May 15, 2009
I can't make difference between public class and private class and friend and protected friend class.
View 1 Replies
Sep 12, 2011
I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another.
[Code]...
View 2 Replies
Feb 28, 2012
I am New to <acronym title="Visual Basic">Vb</acronym>.Net. this is my first test. i try to create small address book. but i don't know what wrong. it compile perfect but when it run it give error and not work. is there any other way to add same class like in class inside array?
[Code]...
View 6 Replies
Jan 13, 2010
Public Class form1
Private Sub btnAnswer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAnswer.Click[code]........
how can i make vb realize that the side that is opposite of the given angle, has to be less than the other sides. Also im not sure what Acamar meant by If txtAngleA.Text <> "" AndAlso txtAngleB.Text <> "" AndAlso txtSideA.Text <> "" Then 'two angles and a side Because im not sure what <> does.
View 1 Replies
Jan 9, 2011
Can i make obejct of a VB class from C# class, if possible then what i'll have to do?
View 3 Replies
Apr 24, 2009
how to make applications more responsive.I haven't been able to figure out how to make my applications stop having the "Not Responding" business.I've tried delegates and thread sleeping to no avail I don't know if I'm just placing them wrong or what[code].....
View 2 Replies
Jan 30, 2010
ok so i've got a Form class that inherits from System.Windows.Forms
the problem is that once i put that line in, the IDE automatically converts it into a class that has Designer enabled. how do i stop this behavior?
View 2 Replies
Aug 15, 2011
how to connect different vb applications to a database server.like accessing data from one database by different applications...
View 4 Replies