Making A .dll From Class.vb Files?

Mar 10, 2009

I am using visual studio express edition 2008. I am trying to move my class.vb files in my web application to one .dll. I used visual express edition 2005 earlier and I had to add to import the below code to get it to work. Now in 2008 edition I get a whole new error and I need to know what I need to Import. Code is below

2005:
Imports Microsoft.VisualBasic
Imports System.Configuration
Imports System.Web

When I do the above in 2008 I get the following errors:

Shared mainconnection As
New Data.OleDb.OleDbConnection(ConfigurationManager.ConnectionStrings("connectionstring").ConnectionString)
Error: Error 1 Name 'ConfigurationManager' is not declared.

[code]....

View 1 Replies


ADVERTISEMENT

Interface And Graphics :: Making A Custom Class That Mocks The System.Drawing.Rectangle Class?

Jul 6, 2010

I'm making a custom class that mocks the System.Drawing.Rectangle class because the Rectangle class doesn't have a name property. I need a name property because I am adding all of my rectangles to a collection and I need a little more info stored than just their locale and size. So I changed the _onPaint event but nothing is working out when I run the program?

Public Class Rectanglar : Inherits UserControl
Public BackgroundColor As Color = Color.Blue
Public Sub New(ByVal name As String, ByVal XY As Point, ByVal Widthy As Integer, ByVal Heighty As Integer)

[code].....

View 5 Replies

Making An Array Of A Class?

Oct 29, 2007

I was wondering if it was possible to make an array of a class. I made a class called creatures (for a game of course) and wanted to make an array of that class. So I tried "public creature() as new creatures", and it had a problem with using an array with new. Is there a way around this. All I am using the class for is variables. i.e.: in my class all i have is dim health, defense

View 12 Replies

IDE :: Class Files. Same As Namespace Or The Same As The Class Object Inside?

May 22, 2009

If my namespace is Company.Application.EDI.Acknowledgement and if I stick with theprogramming practice of one class per file then should my class be saved asacknowledgement.vb? Are there any gotchas that will come up?

View 5 Replies

Making A Blackjack Game For Class?

May 2, 2011

I'm making a blackjack game for class. It's been better programming in VB than it has in C#, but I don't know how to link button subs (BTN_Deal_Click or BTN_Deal; I can't decide which one will work) to one another. For example, after the code in BTN_Deal has been run, the program is supposed to wait for the user to click either the Hit or the Stand button.

[Code]...

View 2 Replies

Making Variable Class With Event?

Jun 22, 2010

I haven't quote grasped this whole "class" concept yet, but I'm working on it. When following the instructions below, the "test" portion of this code: "test.variable". It has an underlined error that says that "test" is not declared. If I remove the "test" word then the ".variable" shows not declared. I'm using Visual Studios 8 if that makes any difference. I have a pre-existing variable in a project that I would like to monitor for changes.

Re: Detect variable change.
Make your variable a class with an event.
Make your class:
VB.NET Syntax (Toggle Plain Text)
Public Class myVar
Private mValue As Integer
Public Event VariableChanged(ByVal mvalue As Integer)
[Code] .....

View 1 Replies

Making Auto Exe Files?

Jul 13, 2009

I want to know how can you making auto exe (automatic program start up)files

I'm using visual studio 2005 .net I want to do that in basic language.

View 1 Replies

Not Overwrite Files When Making Them?

Feb 25, 2012

Whenever I create two files with the same name, it overwrites it. I want the second file to be [Name] (#)

View 2 Replies

Class For Making Object Visible.False

Dec 21, 2011

I am trying to make a customer class that will simply make a bunch of controls (hotspots) Visible value = False.

For instance: WinStartSpot.visible = False

Thing is I have roughly 60 "spots" that need to be turned on and off as the user clicks through the program (its a very simple OS simulator) I tried to make a class using boolean return but that failed miserably. how to code a class like that?

View 7 Replies

Making A Program That Can Play Mp3 Files

Jan 21, 2011

im making a program that can play mp3 files but now i only have to figure out how to make them load in a listview i thougt of starting the program then letting it show sort of a folder chooser and then it should open the music chooser form ... (that works fine) now to make al the mp3 inside the folder load should i use sort of a filter or somthing i thougt of [code]

View 8 Replies

Create An UnInterface Making Sure That The Class Does Not Have A Method / Property

Dec 17, 2009

Interface makes sure a class does have a Method / Property, However is there a way to create an unInterface, making sure that the class does not have a method / property or is there a way to implement something that will unimplement every other implements except for itself?

what i want to do: i've got a class that serves as a storage for information only, so i decided to give it a blank interface IBank, the other classes that share this feature will implement this interface. they should not implement any other interface the use is that when i seek out the interface of a class and realise that its IBank i know that its just a class for info storage.

View 1 Replies

Making Sprite Class And Cycling Through Image Arrays

Feb 2, 2012

I am using vb.net by the way. From what I understand, Xna is not usable in visual Basic. Therefore, in order to create my characters, I defined a sprite class. Now my question is.... (I am drawing everything using a timer on the form btw by the process of invalidation.)... how do I use time to cycle through the images in an image array while the instance has no focus, and whilst the class inherits the "Control" class? Basically, how do i get these instances to act without user input? I want a character to eventually respond to user input, but I also need npcs that do not need any input in order to move themselves. Also, I need this in such a way that each instance's processes do NOT interfere with the processes of others. So that whatever timing I use does not also stall the whole window/form.

View 2 Replies

Methods Access Level - Making Public For Only One Class

Mar 20, 2009

I have a class which has various methods that I need to make public to only 1 other class. Is this possible? I don't want to make them public for everybody, just that 1 class.

View 1 Replies

VS 2008 Making Property In A Class Expose An ENUM?

Jul 12, 2009

I've got this in a public module

Module PublicModule
Public caseBAL_C As caseBAL
Public clientBAL_C As clientBal
Public Enum CSFlags

[Code]...

It doesn't like the Public Property StateFlag() As CSFlags -it's saying that CSFlags

'StateFlag' cannot expose type 'PublicModule.CSFlags' outside the project through class 'caseBAL'.

View 2 Replies

Making A Program That Combines Text Files?

Mar 28, 2011

I have been tasked with making a program that combines text files.. okay.. easy enough. Problem is now I have been asked to make the same program start from the second line of the text files to get rid of headers. I am currently using StreamReader to do this but not sure how to make the reader "line feed" before it reads the data. Any help would be much appriciated. Current code below..

Private Sub BackgroundWorker2_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker2.DoWork
Dim writer As StreamWriter = New StreamWriter(Environ("userprofile") + "\Desktop\CombinedFile.txt")
Dim files As String() = Directory.GetFiles(TextBox1.Text)
Dim filename As String

[Code]...

View 3 Replies

Making A Program That Gets Files And Folders Off Internet

Apr 30, 2010

I am making a program that gets files and folders off the internet.I want to make a window simular to a windows explorer window only these would get the files online.My problem is href tags for each one of the nodes and then get the files into the listview control. [code] I can get one node but after that I can't figure out how to get the other nodes to work.

View 1 Replies

Making A Utility That Will Read Through The Files In A Listbox?

Apr 12, 2009

I am making a utility that will read through the files in a listbox.I already have it where it can read the files but you have to have the file selected in the listbox. Im wanting it to do it to all listbox items instead of just the selected one. This is what I was using:

Dim files = ListBox1.SelectedItem.ToString

View 5 Replies

Making A VB 6.0 Project To Copy Files To WCE 5.0 Device?

Dec 19, 2006

i'm making a VB 6.0 project to copy files to WCE 5.0 Device. i copied a code i found in msdn but when trying to compile it send me an error: Expected: Identifier[URL]..

Private Declare Function WaitForSingleObject Lib "kernel32" ( ByVal _ hHandle As Long ByVal dwMilliseconds As Long) As Long

View 3 Replies

Making An Application Which Send Some Files To LPT Port?

Aug 19, 2010

making an application which send some files to LPT port.My Code is

Dim PortName As String
Dim pr As Process
Dim args As New ProcessStartInfo("cmd.exe")[code]....

look at the bold line.1st line Send a file to PORT and 2nd line deleting that file.I am execute this code in a loop.that means those 2 lines are executed in multiple times.As a reason of that,some times these 2 commands are not working properly. so that the file is not deleted. How can the commands are executed in proper way?

View 10 Replies

Visual Studio Making Of .exe File With .swf And .txt Files?

Feb 24, 2012

i compile my project in windows form visual studio with flash file or .swf included? My project have many presentations, .txt included in the system. How to compile them to an executable file? I need to be my .swf file still on my .exe file

View 1 Replies

C# - Create A Reference Of String Class Without Making A Object Of It And Start Using It?

Sep 6, 2010

String s = "test"; String is a class, so to use it we should create an object of it. But rather we just make a reference of it and give it a value. How is it possible and what concepts are used in it. The metadata of String class shows the following :

[Code]...

View 1 Replies

Making A General Functions Class Library That Will Be Used In Several Applications And Asp Pages?

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

Does Making COM Files 'embedded Resources' Improve Performance

Jun 25, 2009

If I took a COM object (specifically Excel 2003 workbook) and made it an embedded resource of my executable, would that improve the notoriously slow .NET-COM interop at all?

View 1 Replies

Making A Game That Reads Text Files Off Of An Ftp Server?

Jul 1, 2010

im makign a game that reads text files off of an ftp server. everything is working great. except for the fact that i cant read more then the first line of the players text file. how would i use substring to, for example, look for 'inventory' and get all the info under 'inventory' and above the next title?

View 4 Replies

Security Camera - Making Picture Automatically From DLL Files

Jan 16, 2011

We bought a DIY security camera, the camera is making automatically mpegs if a movement is recognized. A picture can be made with a delivered program. We have the idea to make a program with the delivered dll files to make automatically pictures.
timestretchDMO.dll
GPIProxy.dll
expDMO.dll
DVCtrl.dll
DSPDMO.dll

View 9 Replies

VS 2010 Making An Animation Using A Series Of JPEG Files?

Jun 1, 2011

I am trying to create a simple form that displays a series of 9 images that will create an animation. the image files are all the same size and spell out a word..

View 19 Replies

Does Making A Class NotInheritable In .NET Offer The Same (potential) Compiler Optimizations As Sealed In C#?

Jan 11, 2010

I've read that making a class sealed in C# is advisable in high-performance scenarios because it frees the compiler to make certain optimizations (e.g., inlining property getters) that it wouldn't be able to make otherwise. Is the same true for NotInheritable in VB.NET?

View 1 Replies

VS 2010 - Array SubString (of Sorts) / Making A Class That Represents A File?

Feb 24, 2011

Im making a class that represents a file. Im making a sub that reads data from one byte array into many properties. Now i need something that returns a byte array but only the first 4. Let me demonstrate because i can't think of a logical way of explaining. "something".substring(0,3) That would return a string containing "som" i need a function like that for a byte array


[code]...

Is there an existing function for this type of thing ? i've looked but didn't see anything that I understood.

View 2 Replies

Making An Express App To Search For Duplicate Files (songs) In Music Directory?

Jan 21, 2010

Windows Media Player has hosed up my library, making multiple copies of the same songs.I am looking at making a VB express app to search for duplicate files (songs) in my music directory, and allow me to delete or move.Where can I go learn about the files and directory controls I would need to use to point to the directory I want to search?

View 5 Replies

Declare A Class In Two Files?

Dec 12, 2011

Say some function is defined in one file and another function is defined in another file

In C++ you can do that right

View 2 Replies







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