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


ADVERTISEMENT

Pass Message From DLL To GUI?

May 14, 2011

I have created an application which consists of 3 Layers: GUI-BLL-DLL. When I am loading a flat file I am doing this in the DLL but I want to show to the user the process through a progress bar in the GUI. So I want to pass the variable LineCounts from the DLL to GUI. I know that I have to use EVENTS

View 1 Replies

.net - Pass A Message From One Program To Another?

Mar 3, 2009

I have a .Net 3.0 application that needs to pass an integer to another program on the same machine. I was using a WCF service to do this, but ran into user rights issues when trying HOSTING the service on the local box.

View 4 Replies

Pass Body Message To An Attachment?

Apr 11, 2010

I've got a program which can send email with html format...is it possible that i pass all my body's contents into an attachment and send?

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

VS 2008 Pass Error Message From Class To Windows Form?

Aug 13, 2009

I'm trying to program in a true object oriented manner and its causing me to re-learn a few things. Specifically, I'm having some trouble with error handling. I have all of my data access being performed by an adapter class in a seperate project. I can catch duplicate records without any problems, but I want to be able to send a message back to the user. Here's what I have so far:

[Code]...

View 11 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

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

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 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

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 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 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

Pass Data From View To UserControl In ASP.NET MVC?

Mar 24, 2010

Say I want to do the simplest of the data passing as follows [code]...

What I want to do is to pass the variable i as the parameter to the UserControl so that it displays the number inside a, say, bordered div.

View 2 Replies

Pass Data To A Parallel Process?

Nov 12, 2010

I need to pass some data to some procedure called with a parralel.invoke, how can I pass data to the procedure?

I need something like:

Sub ProcessData()
For Each myobject In ListOfObject
Parallel.Invoke(AddressOf LoadOneCPU, myobject )

[Code].....

View 1 Replies

Pass Data To Microsoft Word

Mar 17, 2009

how to pass data to microsoft word doc and is it possible to do that? i had no idea how 2 start it.

View 1 Replies

Pass Datagridview Data To Database?

May 16, 2009

Can anyone suggest me how to pass datagridview data to database.

Process must be like this, if the user enter multiple data into the datagridview after user press "save" button, datagridview data must be passed to database. Need C# code in windows application. It should have some comboxbox control in datagridview.

View 1 Replies

Pass Encrypted Data To A Database?

Jan 24, 2011

As we pass data to a database in a clear cut way, there may be situations, when we might fear data stealing. So can we simply encrypt data at the time of insertion, so that the data privacy will be maintained and the front end can only see the data.

View 1 Replies

Pass Json Data In A Particular Format

Oct 8, 2010

I have to pass my Json data in a particular format. My app is coded in vb. The following is my code :

[Code]...

View 1 Replies

Pass The Data To Procedure Instead Of Writing Out Each One?

Jan 7, 2011

I have 10 panels on a form and I was wondering if there is a more efficient way to loop through them to pass the data to my procedure instead of writing out each one the way I am doing

' sample shows only 3 but there are 10
For i As Integer = 1 To 3
Select Case i
Case 1

[Code]....

View 14 Replies







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