Module Which Wish To Import In Several Projects
Oct 31, 2009
i have a module which i wish to import in several projects. is there anyway i could do this? the current method that i'm using is that i'm copying over several modules in all the projects i'm doing and if i had to change a single module i had to replace that module in all the projects, that is quite troublesome
View 7 Replies
ADVERTISEMENT
Jan 3, 2012
I would like to know how can I have the same module in many different projects. The trick is that I want to be able to modify that module only in one place and still be used in all the projects.
View 6 Replies
Sep 1, 2009
i started with 1 solution, 1 project a usual. Then i did it again, different project. Then, i wanted to have the 2 projects in 1 solution - so i copyed the project folder from solution 2 into the folder of solution 1 and added as existing project the project 2. So far so good.
Now i have a module with some public functions in project 2, that i want to use in project 1 as well. So i added to the solution a class module (some classes i want to share also) and i moved the module, (that i want to commonly use) into this class library. But it seems wrong - my application does not find the function again.
View 5 Replies
Mar 29, 2010
I have no idea what is going on here but it is strange to say the least.I created a new solution in VS2008Pro under windows 7 This solution has 2 projects one for the pc and one for a CE based device.There is one class module which is shared between the 2 projects.In VS2005 under xp this same basic project worked fine but here I am seeing error messages that appear out of no where.
Example the CE portion flags 3 lines initially 1 related to a file i.o function and 2 others related to socket methods. All three of these were supported in VS2005 using framework 2.0 which is the same framework I am using here. This is just the tip of the ice berg however.If I attempt to run the code it runs fine for the pc client and of course not for the CE device. If I make any kind of change, add a line, comment a line or just add a comment I get lots more errors with odd messages that are not even valid.
In one case after I saved it jumped from 3 errors to 30, in another case to 50 and yet another to 144 errors yet the only errors that were present were the original 3 that were flagged.The ide threw errors like Try Catch must end with matching End Try.Get no longer supported ' apparently referring to the binary file get but here it is used as the get portion of the property.Get must end with matching end get.It also started complaining about functions and data types.For example saying "an is not declared" pointing to the word Boolean Or telling me my functions are not declared point to only 1/2 of the function name.
I do not see any errors in the code and it reports no errors in VS2005 under XP.As a test I tryed adding a new property to the project after it was telling me there were 144 errors. I allowed the ide to do most of the work and when I hit enter the errors went back to 3. Then I saved the project and the errors went to 105 pointing first at the new property just created.
View 5 Replies
Oct 26, 2005
Hi: How can I share the Main Module1 between projects? I have project1 in vb.net and contains Module1 (Sub Main of the application) project2 in C# in project2 I have a form1 class that contains a subroutines that need to reference 6 variables that are declared and instantiated in the project1 in the main Module1. Module1 at present is been compiled as Class Library, plus will be a reference of project2 and because I need this variables referenced from project1 it wont compile of course because they are not declared.
View 2 Replies
Jul 30, 2010
How can i import modules from other projects
or else i would like to store important functions in modules of any one project and import the codecs into any of my project instead of rewriting
View 3 Replies
Mar 15, 2009
Removing projects from VB2008 start page recent projects list. The above list is getting clogged. How do I remove items from this list?
View 3 Replies
Aug 16, 2010
how we can declare a connectionstring in a module and call that module
View 1 Replies
Apr 27, 2012
I have a VB.Net interface that communicates with an Access 2k3 Database using this module:
Module MOD_ENGINE
'Declare Database connections controls
Dim con As New OleDb.OleDbConnection
Dim dbProvider, dbSource As String
[code]....
I want to call EngineConnect procedure from MOD_ENGINE module into popCboBox module so I can ignate the engine!
View 3 Replies
May 10, 2010
I want to write a program in vb2008 that can import a text file into a Access 2000 database, but using import specifications already in the access database.
View 2 Replies
Jan 16, 2010
i want to ask that wat is sln? and how to see sln projects...
View 2 Replies
Mar 22, 2009
I notice you need a wizard to at least start to convert projects from VB6 to .Net
I also see it comes with VS Professional
Is it able to be downloaded and run with VS2008 Express ?
View 10 Replies
Jun 8, 2011
How can I create a namespace and classes in it, then save it, and reuse the namespace in other projects? Do I have to click on Create Class Library in Visual Studio?
View 2 Replies
Jun 26, 2009
Im gonna develop an application s/w using VB.Net & Oralce for a small company with 4 employees and a MD.
Each has their own PC connected through a Hub.The task of MD is to check in the employees daily work progress & to calculate their incentives in daily basics...
And each emp should be able to check their daily incentives from their PC using the passwords provided by the s/w Now my doubt is. how should I show the daily incentives updates to all emps PC from MD pc?(i.e) if i install the s/w in all PCs, will they'll get the updates automatically? DOES VB.NET can be used here or should we use ASP.NET?
View 1 Replies
Aug 30, 2011
I have a .Net solution with 5 projects in c# and one in visual basic. I want to know whether there would be a gain of performance to convert my visual basic project to C# in the day to day while I compile my solution.
View 3 Replies
Jan 28, 2010
I want to start learning how to add menus to my vb.net projects. how to code and design them.
View 4 Replies
Sep 13, 2010
How do you add new ocx files so they can be used in your projects? I download some free ocx files and cant use them right now cause I can't get them in the side bar thing.
View 2 Replies
May 4, 2009
I have a project named "slnAllForKids" in Visual Studio 2005. I have another project named "AFKLogin." There is a page called index.aspx in slnAllForKids. I want to redirect from index.aspx to home.aspx in AFKLogin when I click submit button in index.aspx.
View 1 Replies
May 4, 2009
I am currently doing a project which is to be linked with another project. I.e., when I click on some button in my current project's page I should get a page from the other project..
View 2 Replies
Apr 14, 2011
I'm going to build a large project and want to create several libraries (DLL) for it. I don't want to merge them all in one EXE, but want to use seperate DLL files.I don't want those DLL's to be used by others, so these DLL's should be protected so that they can only be used in my own project.I was thinking of using some sort of password in the New() proc, but that doesn't work for shared classes.
Other solution I was thinking of: is it possible to check if the calling assembly has the same strong name as the DLL?These solutions are just one of my ideas. I don't know if those will work and am not saying that one of them is the way to go.What is the best approach to accomplish this?
BTW: I also use a obfuscator to protect my code.
View 1 Replies
Dec 19, 2010
Every time I open a project, it closes the project I had open. I would like to have two or more projects open at a time. I like to do this so that I can reference old code, etc. The projects are not related in any way, so I don't want them linked in any way.
View 10 Replies
Sep 8, 2009
I have two .NET projects in the same domain. The first project I create long time ago in VB.NET. Now I create another project that I built in C#. How can I set up my new project in the same domain so I can access the new forms that I built in C#. Do I need to submit the whole folder from the project? Do I need to change anything in the web.config? Right now I am getting this error. [PhoneControl] is the new project in C#. [URL]
View 2 Replies
Mar 20, 2009
can anyone of u tell me how should i integrate three different modules of my project into one.specifically which all files i need to alter
View 1 Replies
Oct 20, 2009
I have made a class library for visual basic, now I have a dll. How can I now load the dll into other projects?
View 5 Replies
Mar 18, 2012
I know its odd to post 2 different projects in a day but hence the lecturer asked us to do 2 in 1 week what else can I do so here is the problem he wants us to make a tic tac toe game that will ask for player 1 and 2 name then generate a random number for who will play 1st ok.. I though of a solution for that but it seems that player 2 always plays 1st also amm when I click on new game that recalls the code that you will see bellow the lblplayer1.text and lblplayer2.text don't reset to the new values untill I re-use the new game command what seems to be the problem? sorry for the bad explanation my English aint the best
count_turn = 0
score1 = 0
score2 = 0
lblscorep1.Text = 0
[Code]...
View 5 Replies
Aug 16, 2009
Well on VS it has the most recent projects which is only like four. WHen I want to access an older one I click open then click on the folder. I don't know what to click after that but whatever I click never brings the form up but it has it's name in the solution explorer in the top right.
View 1 Replies
Nov 17, 2009
I'm currently writting an class for importing data into application database from various formats. Basically, I want to pass a file path and the class would give back an class objects and from those objects I'll insert data into database. The problem is that I already have classes for containing data and classes that insert data from data-classes into database ready in the main application. But at the moment I cant Access the source of main application (Im at home and remote connection is down is what im trying to sayJ ). I only have setup.exe of application and the application is already instaled on my home pc (I have .exe in program files).
Is there any way I can add a reference of this application into my current Project so that i can use the classes that are defined in main application?
View 2 Replies
Dec 4, 2009
I have a Windows Forms UI, a Class Library, and a WebService. I need to be able to pass an Enumerated type through each of these layers (SystemType). For instance, the UI passes the type to the class library, which then passes the type to the Web Service.My question is, where do I define this enumeration type so they all know about it.
Options so far:
- Each project contains the exact same enumeration.
- Put the enumeration in its own project and reference this assembly from each of the other projects.
View 3 Replies
Apr 19, 2011
I've been poking around in some projects written by one of our contractors, and he seems to be storing a lot of settings in the main "app.config" file for the application, using, for example:
<add key="SomeClass/SomeValue" value="False"/>
And then referencing the key value in the "SomeClass" class in "SomeProjectLibrary" using
ConfigurationManager.AppSettings.Get("SomeClass/SomeValue")
While this works, I guess, it also pretty much sucks. I was wondering if anyone knew of some more elegant way of creating variables in the "app.config" file, which could then be used across various applications within a Solution?
View 1 Replies
Jun 30, 2009
Do you use 'strict off' option, 'explicit off'? Or may be 'strict custom' and some other options like 'Implicit type. Object assumed', 'Late binding', 'Implicit conversion'?
View 8 Replies