Set Value In Library Created?

Nov 28, 2011

I have created a library which generates a .DLL file that I include in some of my projects. Now my question is that I have 2 databases, a development and a production one. I want to give the user using the .DLL file to have the ability to select which database they want to query. How can I achieve that?

The way I know how to do it will require them to manually select the database EVERY TIME they call a function..

[Code]...

View 3 Replies


ADVERTISEMENT

Can Use A Library Created In C# In Java

Nov 4, 2010

I have written some classes in C# and compiled it. Now I have the library file for these classes. Can I use the same dll with Java?I do not want to write it in Java once again because I am writing the same program in different languages (trying to do so)

View 2 Replies

Code Library Management - Created A Custom Class

Oct 15, 2008

I've created a custom class that I've grown rather dependent on in my coding. I've encapsulated it as it's own "Solution" and use a reference to the class module within the solution on most of my new projects, and that all works fine. It seems slightly clunky to me that my encapsulated class module is packaged with solution-related directories and so forth. For me, this seems to make management and maintenance of these little class modules difficult (renaming them for instance). So now, a few questions:

When you recognize you have a useful class embedded within a solution:
1) What's your method for encapsulation? (is there a template you like?)
2) How do you organize/arrange your code libraries?
3) When, if ever, might you consider using that "Code Snippets Manager" thing in the IDE?

I'm struggling a bit trying to understanding how Visual Studio wraps-up everything in what appears to be a "Solution" umbrella. There doesn't seem to be a lot of write-ups on how to go about organizing your code libraries to work well within this Solution/Project Visual Studio framework.

View 8 Replies

MSDN Website - Link A Created Class Library To A Form?

Oct 11, 2010

I am in the beginning stages of learning VB.NET and all I want to know is how you link a created Class Library to a Form? I've seen code at the top of the designer window that says <dim objSomething as New somethingClass> What the heck is that and how does it work?

View 4 Replies

VB2010 Class Library: Create A Static Library Instead Of DLL?

Jun 21, 2011

I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?

View 6 Replies

Open Html Files In Internet Explorer That Is Created In Editor That Is Created?

Jul 26, 2011

I have an editor created invb.net that creates html files. And when i click the button run , the Internet Explorer opens my file that is inside the Richtextbox.

View 3 Replies

Perform An Action On Clicking A Custom Context Menu Created In Excel Using Excel Add-In Created With Visual Studio 2010?

Apr 14, 2012

I am creating an Excel Add-In using Visual Studio 2010. My intention was to add a context menu to a cell and perform some action on the selected cell or cells. Here is the code I have got as of now

[Code]...

View 2 Replies

Declaring A Object - Instance Of An Object To Be Created When A Form Loads Or Another Class Is Created

Oct 5, 2009

If you want a instance of an object to be created when a form loads or another class is created, you have two options:

Public class example

private IAmAObject As IAmAObject

public sub new()

[CODE]...

Or like this:

public class example

private IAmAObject as new IAmAObject

public sub new()

[CODE]...

I always use the first one. It's more type work but I think it's neater. How about you people and is there any real difference between the two?

View 4 Replies

Access Objects On A Dynamically Created UserControl An A Dynamically Created Tab Page?

Dec 5, 2011

I can usually find the answers to most of my questions via the Google Gods, but not this time.I have a form that has a TabPageControl and on that page a collection of labels and text boxes via a usercontrol.

On the form I have a button that allows the user to create a new tabpage, when the code adds a new page, it automatically adds the UserControl collection. I can't get my head around how to access the objects on the newly created tabpage.

What I need to be able todo is take the index of the tabpage that has focus and translate that against the UerContol name, but I havn't a clue how to do it!

[Code]...

View 4 Replies

AddHandler To Dynamically Created Buttons That References A Dynamically Created TextBox?

Dec 16, 2011

I am adding a grid of buttons to a form at run-time, and all of then use the same Handler.My question is : Is there any way I canadd the TextBox at run-time ?I know how to but without it on the form, the IDE isn't very happy about the "MyClick" Sub - TextBox1 is not declared......

' some logic here to make nice rows and Columns of buttons
' with different .Text and .Name
Me.Controls.Add(btn)

[code]....

View 4 Replies

Access A Dynamically Created Control On A Dynamically Created Form

Jul 16, 2009

I have an application that dynamically creates winforms.

Dim NewS As New Form
Dim NewT as new Timer
NewT.Interval = 5000

[Code].....

View 3 Replies

Access A Dynamically Created Control On A Dynamically Created F?

Jul 16, 2009

I have an application that dynamically creates winforms.

Dim NewS As New Form
Dim NewT as new Timer
NewT.Interval = 5000

[code]......

View 4 Replies

C# - SMS Library For .NET?

May 4, 2009

Anyone know of a free SMS library or webservice for .NET that will allow me to send text messages to people's cell phones?

View 8 Replies

Pdf Library In VB?

Apr 22, 2009

I have a pdf file. I want to use visual basic code to print the file to another pdf, with my particular pdf settings, which includes

- orint in landscape format and

- print multiple pages on single page. (4) are there any libraries. is it possible?

Can System.Drawing.Printing Namespace do it? Is there any way to set that print multi pages =4 in PrinterSettings I was unable to find ...what all values print settings can take?

View 1 Replies

.dll In Class Library?

Dec 29, 2009

there's a lot of dlls i've got one in the Release folder and one in the Debug folder under bin, there seem to be one in the obj folder as well.they all seem to work fine, but which should be the correct one?

View 4 Replies

Building F# Library?

Aug 21, 2011

Possible Duplicate:Building F# library to be used in C#

Let's say I have the following function.
let rec fib n =
match n with

[code].....

View 1 Replies

C# :: .NET Graph Library Around?

Oct 16, 2009

I am looking for Graph libraries for .net. Are there any out?ps: I mean GRAPH libraries, not graphics nor charting libraries!

View 12 Replies

Class Library Or Not?

Oct 18, 2010

I have two projects; A and B, where B needs to use some classes that are in project A. Hence, I added B to A's solution, and in B I added a reference to project A.

Is that sensible? Or should I rather put those classes in a class library?

I see that if I further want to open form/program B from a menu option in project A, then A needs a reference to B. Which would not be possible if B already had a reference to A. However if I use the class library for the common classes, then it's ok as B doesn't need the A reference.

Does this sound logical? It would be nice to know what are typical reasons for putting projects in the same solution, and if it's advised to use libraries aggressively to refactor common code between two projects, even if it's just a couple of classes.. Yet I've never made my own library, so a bit unsure on when to use it.

View 5 Replies

Getting Dll Library Functions?

Mar 1, 2010

I have a DLL library, but I am not familiar with it. How can I get its usage in vb.net?

View 2 Replies

How To Add Reference To Library

Apr 16, 2010

I was looking at tutorial that was detailing how to Build a Class Library Component and Consumer Client Application. One of the steps involved was how to add a reference to a library. Am I right in assuming that the reason for adding a reference is to show Vb where class library is located. I would also like to know if it is possible to add the reference within the code. In the tutorial the reference was added via the top menu (selecting project and add reference).

View 4 Replies

How To Use .net Usercontrol From A 64 Bit Library

Jun 3, 2010

I am running through an issue for which I am unable to find a solution.My goal is to:1- compile a x64 .NET library (vb) which has a simple User Control 2- Use this dll in a .NET WinForm application targeted to x64 CPU ONLY.

I have been able to do the first step, but now I am unable to add the library into the VisualStudio Toolbox. With our previous x86 version we had just to right click to VS toolbox, click on "Choose items...", then brows to the needed x86 assembly. If we do the same selecting a x64 lib (of course I am running vs on a 64 bit OS), we get the following message "[DLL PATH] is not a Microsoft .NET module."

View 1 Replies

Playing MP3 (without Library)

Apr 12, 2010

I have decided that I want to learn a bit about sound and how it works so I thought that I would make an application that reads and plays MP3 files. I know that this will be very difficult and that I will be re-inventing the wheel, but it's all for the educational purpose. So my questions are; How does it work, how does Windows Media Player plays the data from the MP3 file? How can I, with the data provided in the MP3 file, know what to play, how it should sound? Which method would I have to approach to play the sound provided in the file? If you think that I have too little knowledge on the subject

View 4 Replies

Protect Dll Library In .net?

Mar 6, 2010

i have created a dll library and now i want to secure it....and distribute it to other...i want to provide a trial so that the user can see what it can do....how can i protect it...

View 2 Replies

Use A .NET .DLL File Or Library In VB6?

Oct 27, 2010

I'm just wondering if there is something I should know of when doing this or will it work straight out of the bat as long as the .NET framework is installed on the client?

I ask because when I attempted this, VB6's references dialog said "cant register that dll"

View 4 Replies

Using Library From GNU In VB2008

Aug 4, 2009

Im trying to use the library in GNU in VB2008 to generate random number with uniform distribution (actually will also use it for other distributions)...I already added dll under bin file and try to run the following code, but just cant make it work: Public Class Form1 Declare Function gsl_rng_uniform Lib "C:vbuniformuniforminDebuglibgsl.dll" (ByVal x As Double, ByVal y As Double) As Double

[Code]...

View 5 Replies

ConnectionString In Class Library

Apr 27, 2011

I'm merging two of my projects that can share a lot of the same classes into one solution with two web applications and a shared class library.

I've literally just dumped all the classes into the class library project and as expected I've got a ton of errors to fix. My main problem at the moment is the connection string. Currently I have this (which is obviously not going to work):

''' <summary>
''' Initialise the data access layer by loading the database connection string from the Web.Config file

[Code].....

View 1 Replies

.net - Debugging VB Dll Library From Asp.net Hosted In IIS?

Nov 18, 2010

I have the following problem. I have some project written in Visual Basic (not Visual Basic .NET but simple Visual Basic - sic!). I can compile it and generate a dll. Then inside my web application I add reference to this dll library. When I run my web application hosted in default Visual Studio server, everything is fine and I can debug my Visual Basic project. However, when I host my web application in IIS then I can't.Code does not stop in my breakpoint. My asp.net catch the exception when I try to execute some method from the mentioned library which is something like:

Unable to cast COM object of type 'xxx' to interface type 'yyy'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{4C2875B5-3265-306B-9C74-1BEC98986B1A}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

View 1 Replies

.Net Tool Or Library To Compare One PDF To Another PDF

Apr 2, 2012

I am working on a project that currently uses a .tiff, compares the defined template document to the document in question. We are moving away from the .tiff format for a variety of reasons but mainly because the new files will be coming in the format of PDF. I see two potential solutions to the issue. First convert the PDF to a tiff and use the existing code. Or second, use a PDF library that will compare the template PDF to the PDF that is received. Because the PDF that is received will basically come from an outside source we won't know for sure if it is text based or image based so the library or tool will have to be able to compare both.

View 2 Replies

Accessing The MSDM Library

Jan 12, 2010

When I downloaded my Visual Studio Express I also downloaded the MSDM Library (Express Edition) to have the extra resource. I just now got around to installing that. I was under the impression that this was extra content stored on your PC. I could not seem to find a way to access it from VS Express 2008 or find an exe to start it by itself. I searched the Internet and all I get is information about accessing the Online version of the MSDN Library. I do see an icon in VB Express that says MSDN Forums. Is this what I should be looking for or is there really local content I can access.. How does this work?

[Code]...

View 2 Replies

Are Using Microsoft Enterprise Library?

Jun 13, 2009

In my shop we currently develop what I would consider small to medium sized projects.We have been investigating the Enterprise Library and how it may be able to help us in development.I have particularly been looking at the Logging block and comparing it with Log4Net.It seems to me that the Enterprise Library blocks would be an extremely over-engineered solution for something like simple application logging.That being said. Are you using the Enterprise Library and on what size projects? What are your thoughts on the Enterprise Library as a whole?

View 10 Replies







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