Pass Data To Different Application?

Feb 3, 2009

I'm sure this is possible but I've got no clue of what I'm looking for to even start to learn this. Basically I want to create a form that can load data from one software application and feed it to another.

Is it possible to change settings in other forms by another piece of software like if there was a flag = True and I wanted to change it to flag = False or instead of loading Dim processorID As String = String.Empty I can input Dim processorID As String = 1234

View 8 Replies


ADVERTISEMENT

Pass Data Between Webpage And VB Application?

Oct 17, 2011

I am developing an application for internal use in our company. The purpose of this application is for document imaging. What we are wanting to do is print a barcode label to attach to documents so that when they are scanned in a piece of software such as vfiler will be able to read the barcodes and know how to file them.The main focus is our ERP system which is web based (PHP). We are wanting to modify the code to allow the user to print the barcode label immediately once they enter an order or PO. I have access to the source code for the ERP web pages. I don't know of any way to make a web page print to a printer without displaying the printer select dialog. So, I decided that I wanted to try and create a VB application that would do the printing of the barcodes. This would allow me to bypass the the printer select dialog.

Now for the question. Is there any way to have a web page (PHP) running on the server call a VB app to perform a task? So, if I had a button on the webpage and the user clicked it, that button would somehow send the pertinent information (Order number) to the VB app and the VB app would print the barcode. The VB app will always be running on the machine. The label printers will be Zebra USB label printers on each person's machine.

View 2 Replies

Pass Data Application To Application

Aug 15, 2009

I was wondering if it was possible to pass data from one vb.net application to another vb.net application? If yes, how is this done?

View 5 Replies

Pass Data Between BLL And UI In 3-layer (single Tier) Application?

Dec 4, 2009

I am a fairly rookie programmer who is trying to learn the basics of n-layered architecture (DAL, BLL, UI). The application I am programming is a single tier, 3-layer application written in VB.NET (.Net 3.5). Layers as follows:

DAL
BLL
UI
COMMON - contains DTO's right now.

I am having trouble determining what to pass between my BLL and UI. My instinct tells me that I should only pass data to the UI, and not the full business object from the BLL. Consider two scenarios:

1) Pass the BO directly from BLL to UI. This exposes BO methods and allows the UI direct access to the BO, which seems bad.

2) Pass only the pertinent data from the BO to the UI. For instance, a customer has a Name and Address. This data is really what we want to show/edit in the UI, so we would only return that data to the UI instead of the full BO. The UI would then call to the BLL to update a specific BO.

I am inclined to use #2, but I don't know the best way to implement it. The way I have it programmed now, if I only return data from the BLL, all references to my BO's will be lost and the GC will claim them. Based on this, I have some questions:

1) Should I keep business objects alive between calls to the BLL? The alternative is to re-create them every time I pass data through the BLL, which seems wrong.

2) What is the best way to keep a BO alive in a single tier architecture (how to hold a reference if we dont pass it to the UI?)

3) How do n-tier applications do this? Do they keep the BO's alive in the BLL and wait for an update from the UI? Doesn't this require a lot of "book keeping" in the BLL to make sure BO's are released when they are no longer needed?

View 2 Replies

Pass Data To Dialog - Manipulate And Pass Back?

Jan 15, 2010

Just started VB programming this week and have found a wealth of information about what I'm trying to do. Problem is, some of it is more complete than others.Here's what I'm trying to do:In Form1 (my main form), I want to instantiate a class that contains a couple of properties (speed setpoint and position setpoint). When I click a button, I want to pass this data to Form2 and populate two textboxes on Form2 with the properties of this object. I want to manipulate the property values on Form2 and click an OK button which closes the dialog and returns the manipulated data, updating the property values of the object. Here's the algorithm I'm following:1) On Form1, instantiate the class2) On Form1's "Pass Data" button click event handler, instantiate a Form2 object and invoke the ShowDialog method, passing the object as a parameter.

3) On Form2, overload the ShowDialog method to accept the object as a parameter and modify the method so that it returns the manipulated class data.4) On Form2, in the ShowDialog method, populate the textboxes with the class data that was passed in.Here's where I get stuck. If I press the OK button on Form2 (DialogResult.OK), it returns me to Form1, but what hook do I have in Form1 to receive the manipulated class data that the ShowDialog method is returning?Here's an example of what I'm thinking about:

Code:
Public Class Form1
Dim clsController1 As New MotionController

[code].....

I'm sure it's probably a very elementary question, but every explanation I've found seems to be incomplete.

View 2 Replies

Pass Current Web Credentials From Asp.net Web Application To Windows Client Application

Nov 20, 2011

I'm developing a web application that requires the user to log in using forms authentication. inside the webpage you need to download a desktop application that requires to login to the same system too. Is there a way to transfer the current logged credentials from the web application to the windows desktop application without need to login again?. Both applications shares a Login object from an vb.net interface.I tried to save the IP address in the Database but that don't work for me because the website needs to be accessed inside and/or outside of the company and the user cannot login twice in different machines.

View 2 Replies

Pass Data From Datagridview To Textbox And Append New Data To The Next Line?

Sep 13, 2010

I am trying to click on certain rows in a datagridview and have the information in the rows sent to a textbox. It does not append each row to the textbox though, which is what I want it to do. it just replaces it with the row I click on. What's wrong with my code. I have tried cell click too.

Private Sub dgProducts_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgProducts.Click
Dim i As Integer

[Code]....

View 2 Replies

Pass Data From VB 2008 Project To Data Fields Set In Word?

Dec 10, 2009

I�d like to pass data from my VB 2008 project to data fields set in Word. Can it be done and if so

View 10 Replies

How To Pass Parameters To Another Running Application

Aug 18, 2010

we have an old vb6 application (let's call it app-vb6) that basically handles database searches. now i created a new .net application (app-dotnet) that can use the database information to do something else.

what i want to do is to be able to run app-dotnet using information obtained from app-vb6 (which would send something like a command line with a few parameters). but i don't know how to make only one single instance of the app-dotnet to refresh information every time app-vb6 calls it. this link [URL].. seems to have the answer but i could not follow it since it is VC.

View 2 Replies

Pass Variables To A COM Object From Application?

Aug 10, 2010

I am writting a VB .net (3.5) applivcation which references a COM object. I can call methods on the COM object fine provided that they don't require any variables to be passed. I have been told that you can only pass a maximum of one varaible to a COM object, I really don't believe that it true

for example
objsession.connect()
works fine
but

[Code]...

View 6 Replies

VS 2008 Safety Of The Log And Pass In Application?

May 11, 2010

My application works with the sql database. It always connect to the databse using the same login and password written earlier in the application code.I just have a conncetion string with all that data inside.

I know that it is not the safiest way to do that. How to safely hold this thata inside of an application?

View 4 Replies

Pass Parameters To SQL Stored Procedure From Application?

Apr 6, 2009

I have created a database with on table that is very similar in setup to ProductCostHistory from the Adventureworks database. Using the adventureworks database as an example, when the procedure is given the parameters of date and productID it will change the EndDate of the currently active cost to the date value and insert a new record with productID as the ProductID and Date as the StartDate, leaving EndDate null for the newly inserted record. I am looking for a way to create a simple form with two textboxes and a button. textbox1 accepts the ProductID parameter and textbox2 accepts the Date value. when the button is pressed, the stored procedure is executed and the table is updated. This seems pretty simple and I am very familiar with tieing stored procedures to a table in a dataset when each prcedure handles only a single simple action (either, SELECT, INSERT, UPDATE, or DELETE but not a single procedure that combines UPDATE and INSERT as the procedure described above does). I've done some reading and played with this on myown but can not find the simplest straightforward way of accomplishing this seemingly simple task.

View 2 Replies

Pass Variables From Php Script To Program Application?

Mar 14, 2012

I am developing an VB.NET application that reads data from the serial port and tcp socket, then I'm processing this data and store it in Database server. This application will be started all the time as long as the computer is started. On the server there is installed an apache server with some php scripts representing the "visual interface". From there the users can see the readed data from the VB app. The need is when an event appear in the apache server (such as button pressed), some data to be passed to the running VB app, and eventually trigger an event on it. I've considered some variants like start an timer that reads continuously some tables from the database that the php script writes onto, or read an xml ot text file, but I think that this may slower the communication and it is a source of exceptions or errors.

For example: An user opens a webpage, just to say test.php. On the page there is a button. The user pushes the button. The result of pushing the button has to trigger an event on the VB app and cause sending data trough the serial port or tcp socket. OR - The VB app has a timer that scans for pressing the button on the test.php.

View 3 Replies

VS 2010 Pass Arguments To Application After Started?

Sep 4, 2009

how to use Visual Basic to pass arguments to an application after said application was started. Example, "myapp.exe -d" enables debug mode, I want to be able to start myapp.exe then have a checkbox labeled "Debug mode" in Visual Basic. Upon "Debug Mode" being checked, it passes the argument -d to myapp.exe. Upon it being unchecked, it withdraws that argument from myapp.exe.

View 4 Replies

Pass Constructor Arguments To Application Main Form?

Oct 23, 2010

I've constructed a custom System.Windows.Forms.Form that requires arguments to New. I want to use one of these as the MainForm in a Windows Forms Application. How do I get the Application Framework to pass those arguments as needed?

View 1 Replies

Pass Data Between VB6 App And .Net App?

Jan 27, 2012

I need to pass data between a vb6 app and a .net app. This data will either be written or read every second. It is about 30 fields. Both apps reside on the same machine. I am currently passing this data via the registry and it works great but it makes me a little nervous. I would do it with a text file but I am worried about data loss.

View 4 Replies

[2005] Pass Excel.Application Object To Shared-Addin By .Net?

Jan 22, 2009

I currently need to build a Automation Add-in for Excel. This add-in will load a recordset from Database to Excel. I would like to have function A() that I input in Cell as a formular. This function A() call a the add-in to load the data from Database to Excel. The data should be a matrix. So that means I would like to set in Excel worksheet a range of data by just calling single function in a cell. (I am sure there should be some way to implement it)As I know if I develop a shared Add-in by VB(or VB.Net) and in the add-in, I can get an Object of Excel.Application. By this Excel.Application object, I can get full control of Excel inside the Add-in. That means if I define a sub that load datamatrix from database and using the Excel.Application object I can populate the data matrix to the Excel.

I have done much research on internet and I now have built a shared Add-in for excel. I should say this add-in works fine without invoke the Excel.Application Object that I have tested. But when I call the Add-in function that invode Excel.Application Object from Excel I got an error as below:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Run-time error '2147467262'(*)
Unable to cast object of type 'System.String' to type Excel.Application

[code]....

View 2 Replies

Asp.net - Pass Data From Dropdownlist?

Apr 28, 2011

I have been trying to pass selected data from two dropdownlist (page1.aspx) to (page2.aspx) I am not having any luck as it seems the data is not being passed when selected. Please help, this doesn't seem that difficult, but I can not get it work. On (page2.aspx) the data from the dropdownlists will be passed to a stored procedure and all results will be in a gridview.

Here is my code:

Page1.aspx
<asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="ST_Code" DataValueField="ST_Code" />

[code].....

View 1 Replies

Pass Data Between Forms?

Oct 3, 2011

Is this way a "right" way to pass data between two forms?[code]...

View 1 Replies

Pass Data Between WPF Windows?

Apr 13, 2011

I have some code that works in winforms, but not in WPF apparently, the code is as follows: This is set globally:

Private Property avar As Object
Public main As MainWindow
Public charchoice As Char

And then in the Window Loaded sub, this is placed:

charchoice = main.charchoice

Thing is, the next window doesn't pick up this variable, so how can I make it recognise and use it?

View 1 Replies

Pass Data From Other Class?

Apr 7, 2011

I'm still trying to develop p2p chat application from this thread. I have 2 applications, server and client. A client has: Form1.vb, BB_Client.vb, and RTS_SocketClient.vb. Dataflow is Form1 creates new object of BB_Client, BB_Client calls RTS_SocketClient.[code]...

View 7 Replies

Pass Data Out Of An Object?

Dec 17, 2010

I have this [code]...

1. Create a global SQL instance and call .Write from within .ReadData

2. Create a new SQL instance within .ReadData and call .Write

3. Pass the data back to the code above and call .Write from the main code i.e. [code]...

View 1 Replies

Pass Data To A Message Box?

Nov 19, 2009

I have a form for end user (EU) to search for a certain code to check if it is an active code or not, i have the search bit working but i want to be able to have a message box saying "the code (code) is an active (product) code!"

So far i have:
Sub UpdateGrid(ByVal sqlStr As String)
Dim var As String

[code].....

View 1 Replies

Trying To Pass Data Between Form

Mar 10, 2010

trynig to pass data between form in first form [code]the problem is when i select "Yes" next form is not showing .i tried directly to run the last form. but its not added in the startup form list.i am getting error form2 is an type under windowsapplication1 and cannot be used as expression in application design.vb.

View 2 Replies

Collections - Pass Data To ActiveX.exe?

May 17, 2010

I've created a MAPI Wrapper in VB6 and compiled it as an ActiveX.exe so I can use it in my VB.NET project. The project is a windows service that takes data from a webservice passes data to activex.exe and it creates public folder records in exchange 2003. I was wondering if anyone know how I could pass a collection to my activex.exe?

View 1 Replies

How To Pass List (Of ) To Data Layer Of App

Jul 25, 2011

I've never used a List(Of) before and I'm not sure how to pass it to the Data Layer of my application. The ColResCategory is a property within the Business Layer (See below) and it needs to be passed to the Data Layer. ReplaceResCategory (See 2nd Code view) is another class file within my Business Layer and the ColResCategory references it.

Public Property ColResCategory() As List(Of ReplaceResCategory)
Get
If IsNothing(mColResCategory) Then
mColResCategory = New List(Of ReplaceResCategory)
End If
Return mColResCategory
[Code] .....

View 5 Replies

How To Pass Reference Data To New Form

Dec 5, 2011

I need to pass a reference of a class instance to a new form; the newform obtains data from the user to be added to the class instance. How might I do this? Is there a way to pass it as a parameter via the ShowDialog call?

View 2 Replies

How To Pass Structure Into A Data Layer

Feb 19, 2011

I'm creating a Data Layer for a Web Application and in one of my functions, I need to pass in a Structure full of Customer info. This Data Layer is essentially a DLL. My problem is that I'm not sure how to do this.Below is my code and what I want to do.

[Code]...

View 5 Replies

Pass Data Between Two Winform Applications?

Feb 14, 2011

I have two VB projects in one VS2010 solution. The first program brings in about 60 integers every few seconds from my PC's serial port. The second program, published via Click-Once and running on my customer's PC, needs to see that new data every two to five seconds.

Is there a simple and reliable way to accomplish this, staying with VB? WCF is way over my head.

View 11 Replies

Pass Data From VB To Microsoft Access?

Mar 14, 2009

Remove a record from a Access database using a VB?I have created a small database in Access,then using VB 2008 Express Edition, created a link between Vb form and Access When I try and Add then Save a record, the information is not in the database.But I can't remember how to:-*Add a record*Save the record*Edit an existing record*Find a record in the databas of interest, is it possible for the add button to be clicked when the VB form loads, and if so how do I achieve this

View 2 Replies







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