Exe Call Class In .vb File
May 7, 2010
i'm trying to call an external .vb file class function
is it like dim a as ClassName=new ClassName()?
so how do you do with this kind of..
I try to search for return value from .vbs to project that i will compiled, but none got the answer..
#The reason why i'm doing this is for feature maintenance..
no need to compile again for changes
View 1 Replies
ADVERTISEMENT
Jan 11, 2011
how to write class file in .net(vb.net) and how to call class file in aspx.vb page
View 1 Replies
Jun 22, 2010
I'm trying to call an external .vb file class function, is it like dim a as ClassName=new ClassName()? so how do you do with this kind of.. I try to search for return value from .vbs to project that i will compiled, but none got the answer..#The reason why i'm doing this is for feature maintenance..
View 1 Replies
Mar 1, 2010
I need to create unit testing project for my current website. The currentw ebsite si written in VB. All unit testing examples are using interface to create mock object. My current VB class does not implment any interface. Can I add interface and implement it to my current class and functions without affecting or changing codes to any pages in my website that call the functions? For examples my current class is like:
[Code]...
View 2 Replies
Apr 22, 2012
Base class has one field to hold numeric balance value. With 2 methods that accept arguments for adding and subtracting the new input calculating new balance. Sub class has four fields dates, transaction, memo and amount.I have a deposit form, and withdraw form. Each time one transaction is entered it creates an object with sub class fields, then adds to the account collection. My problem is not understanding how to call the deposit/withdraw method and pass the current transaction amount back to the base class to alculate the new balance. Does anyone have any links to information/tutorials on how to perform something like this? As you can see with my code I have tried various different approaches without any success.
[Code]...
View 5 Replies
Feb 16, 2010
I will try to explain what I need.Let's say that I have a class like this:
Public Class Example1 Public Sub ToBeCalled()
[Code]...
View 5 Replies
Mar 23, 2012
Is there a way to call functions within a class upon instantiation of that same class? Basically, I have functions within a class, but I want to automatically call some of those functions simply when there is an instance of the class created.
Basically, I have this structure:
Dim instance as new class
instance.function1
instance.function2
[Code].....
View 1 Replies
Jun 7, 2010
I am utilizing a centralized class object that needs to call another class object. The program itself will do something like the following
sFieldValue = CentralObject.ObjectHandler(1, TestFunction, "FunctionVar,FunctionVar2,FunctionVar3")
In the central object I have a function
Public
Function ObjectHandler(ByVal ObjectType
As
Integer,
[code]....
View 5 Replies
Feb 18, 2012
I have this code which i got from another forum.[code]...
View 2 Replies
Mar 9, 2007
i have 2 classes. Temp1 and Temp2
Instead of doing
dim clsname as new Temp1
Temp1.GetData("dfs","dfd","fff")
How can i do it where I specify the class name
int=1
dim clsname as string = "Temp" & int
Then somehow use clsname - i tried Activator.CreateInstance but need some help
Public Class Temp1
Private _Account As String
Public Sub New()
[code]....
View 4 Replies
Jul 17, 2009
How can I call a class from a variable ?
Something like :
Dim strClassName As string = "clsAction"
Dim newclass = strClassName
I know that this code doesn't work, but how can I do it, if possible.
View 4 Replies
Nov 27, 2011
i am trying to call a public sub within a class that resides within my form1 code:
[Code]...
View 1 Replies
Nov 9, 2009
I have database with class names listed in string field. I want to circle thru records and call certain class.
Eg.
Data table
ID ClassName
1 ClsCreateButton
2 ClsCreatePanel
After retriving this data in dataset(ds.tblClass) I want to do next:
Dim aClass as New ds.tblClass("ClassName")
Do something with aClass...
View 2 Replies
Apr 30, 2010
I'm trying to create a application using VB.Net 2008 and my database is SQL Express 2005 (currently on visual studio installation)Here's my codeThis is on code on class (I'm using data adapter and data set)
Imports System.Data.SqlClient
Public Class Code1
Dim connection As New SqlConnection(Mod1.connString)
[code]....
In the other form its works, but its just for show the data/table itself. in this case i want to make validation for login form. i want user get a notice when they user name and password are wrong.my code doesn't works, is there something wrong?
View 3 Replies
Mar 11, 2011
Im creating a class that will have my common database functions. So for example I've created a function db_con in a class called db_functions.
How do i use that db_con function in for example my homepage vb code?
View 1 Replies
Jul 23, 2009
I've got a email program that calls a VBScript event handler on certain interesting events. I want to call a method on an object I've written in a VB.net class library within the VBScript event handler.Is it possible to do without registering the .dll or using the GAC, but maybe just referring to the path of the DLL.Or could the object be served by another .net program which is running at the same time?
View 1 Replies
Oct 15, 2011
have inherited a Datagridview column called DatagridviewNumBoxColumn, I have added a property called FormatStringMy question is i want to access the property of format string value from another class.
Public Class DataGridViewNumBoxColumn
nherits DataGridViewColumn
Public m_FormatString As String
[code]....
View 1 Replies
Jun 5, 2012
This might be a dumb question, but is it possible to call the beginning of a class from a different part of the same class?Here's the scenario... I have a class which has several subs in it. One of the last subs features a conditional statement. If that conditional statement is true, then I want the class code to be executed again, from the very beginning of that class.
View 4 Replies
Jul 22, 2011
I have a class (see below)
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Public Class ClientProfile
#Region "Variables"
[CODE]...
It is in the file ClientProfile I have placed in both App_Code and also App_Code/Models
In my code behind I have the following
[CODE]...
The last word, "ClientProfile" has the scary squiggly red line below it. It is not recognizing my class.Even the Intellisense is not picking up te class. Do I have to register the class file in any way?
View 4 Replies
Apr 8, 2011
I have an application written in .NET 4.0 that i compile into a DLL file. I want to be able to use this DLL file in a Windows Forms .NET 2.0 application. I don't need the application to really interact much, except just passing a couple string values to the 4.0 DLL. The DLL is pretty much a bunch of Windows which i converted to UserControls and i just need to be able to reference them to display the UserControls from the 2.0 application without having to use a different exe and having to package them separately.
What is the best way to do this? Because when i try to add the reference to the DLL to the 2.0 application, it gives me and error saying the DLL is built in a newer version of .NET so i can't do it that way. Is this where a COM object would come in?
View 2 Replies
Oct 28, 2010
I have a C# dll and want to use it in VB.NET. I'm using C# 2008 Express and VB 2008 Express. I have added a reference in a VB project to the C# dll. When I create an instane of a class in the C# dll, it gives the following error messsage: "Type 'RF.RabinFingerprint' has no constructors". My C# dll code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;[code].......
View 3 Replies
May 31, 2011
How do I call a function in a visual basic class library?
View 7 Replies
Jan 3, 2011
REF: http:[url].....The above reference is where I got the code below.This code adds buttons to Form1. When a button is clicked a messagebox appears stating what button was clicked. I want to have the ClickHandler fill a RichTextBox on Form1 (I added a RTB to Form1). My problem is I can't do a Dim xForm As New Form1 to fill the RTB from the ButtonArray Class. I can place my file's text in a MessageBox so I know the code I added is correct. I also tried placing a Property method on Form1 and using a Accessor to fill the RTB, however it also requires Dim xForm As New Form1. How can I get my data from files to the RichTextBox on Form1 from the ClickHandler in the ButtonArray Class? See ButtonArray Class Below.
Imports System.IO
Imports System.Text
Imports System.Collections.CollectionBase[code].....
View 5 Replies
May 26, 2009
I have a sub procedure called ServiceCharge in the CheckingAccount Class now I am trying to call it from the CheckingAccountForm Class but its not cooperating Here is my code I put a bunch of and comments where I want to call the Sub Procedure
[Code]...
View 2 Replies
May 23, 2012
I have Errorlog.vb in my vb.net 2008 project. It is for public class. Public Class ErrorLogger I want to call this public class anywhere. So on EACH vb file I use import "mainproject name".ErrorLogger How can I declare once some where at the beginning and that class will be availabe through out the project?
View 2 Replies
Jun 21, 2010
In one of my vb.net 2008 application i have called a java class file through batch process which creates txt file and jar file and put in app path folder.[code]...
View 1 Replies
Mar 20, 2011
I have created a class library DLL to be referenced from any third-party application and it contains only one function that calls a JavaScript to read a local file and returns some values from the file to referencing application.[code]...
View 1 Replies
Mar 5, 2010
How would you call a class from a main form? In VB6 you would call a module by just simply calling the module name.
View 2 Replies
Aug 22, 2011
I have this public class
Public Class commonSettings
Dim etcString As String = "some string"
End Class
How can I call etc String and use it entirely on my code?
View 3 Replies
Feb 6, 2011
I am making a program that will get information from some machinery over IP,
I have a Class that handles all the communication with the machine.
My problem is that I want to use this Class to call x nr of of machines in parallel
and get results back to my main form from the x instances of the Class,
I have this sample code, but I can not get It to work as I have intend.
[Code]...
View 10 Replies