VS 2008 Data Exchange Beatween Forms

Sep 9, 2009

I am trying to make an application, that gets data from OPC server to form1 and displays some pieces in form2. The app works that way: on start - form1 starts. Form2 must be started manually after form form1 is statrted (i mad a buttton for that). If some values in OPC server changes i need to see some of them in form2. Here is a sub which shows how do i get data from OPC server.[code]but nothing happened when i opened form2, nor on change of data in OPC server (i wrote the code that on form2 load all values are shown in msgbox, message box did not show up).

View 39 Replies


ADVERTISEMENT

Global Variables For Data Exchange Between Forms

Sep 14, 2011

Is it a good practice using global variables in a VB (.NET) application in order to exchange data between forms? As global variable I mean a public variable defined in a module and not a public member or property of a class. Moreover as my personal rule I never access a global variable from a class, but I pass the values to the class via functions.

[Code]...

View 1 Replies

[2008] How Can Two Independent .NET Application Can Exchange Data

Jan 28, 2009

I wanted to know how can two independent .NET application can exchange data. Something like DDE which was there in older versions.My purpose is to have an upgrade application (which is a seperate .net program) and my main application. Now I wanted to know that when my upgrade app runs it should be able to confirm that my main application is not running. How can I achieve this ? I know thru process name I can find out if my main program is running or not but thats risky if there is another program with the same name.Thus I wanted a way whereby my independant .net program (upgrade app) is able to determine if my another application (main app) is running or not.

View 2 Replies

Data Exchange Between 2 Applications In VB?

Aug 4, 2009

I have 2 applications which we can call for example Client/Server.

I would like to exchange data between these applications but basically don't know which is the best route.

I have managed to speak to both applications using text files, but there must be a better way of doing this.

View 2 Replies

Extract Data From MS Exchange?

Aug 18, 2009

I need to convert a VB6 application into VB.Net Windows application. The program pulls data from MS Exchange (UserID, firstname, lastname, etc - not the emails themselves) and places it in a .txt file. The code has been converted, but the program does not work. When the application is run, the .txt file is created, but is blank and I get a pop-up that shows the following, "trying to access email in outlook do you want to allow this?". The popup box is gone in an instant and when I try to click on yes, it does nothing. I always have to end the program as it is non-responsive.

View 1 Replies

Extracting Data From MS Exchange?

Mar 19, 2010

I need to convert a VB6 application into VB.Net Windows application. The program pulls data from MS Exchange (UserID, firstname, lastname, etc - not the emails themselves) and places it in a .txt file. The code has been converted, but the program does not work. When the application is run, the .txt file is created, but is blank and I get a pop-up that shows the following, "trying to access email in outlook do you want to allow this?". The popup box is gone in an instant and when I try to click on yes, it does nothing. I always have to end the program as it is non-responsive.

View 14 Replies

Data Exchange For Parent / Child Processes?

Apr 23, 2010

I am writing an application in VB 2008 Express which will consist of a parent process which calls / runs / executes several child processes. I can happily start up a utility program from the parent process, passing parameters to it through Process.StartInfo.Arguments

View 1 Replies

Extracting Data From Outlook Or Exchange Server?

Mar 26, 2012

I need to realize an app that read appointments from an exchange server or (I think it's easier) from various outlook folders.

I can retrieve datas from my own calendar using this

Dim objOLApp As Outlook.Application
objOLApp = New Outlook.Application
Dim myNamespace As Outlook.NameSpace

[Code].....

View 2 Replies

Live Currency Exchange Rates Data

Nov 26, 2009

I have only just started on .Net (C#, VB) programming. Does anyone know how to retrieve live currency exchange rates data for example SGX stock market exchange rates. I am supposed to do a program which retrieves live currency exchange rates and then make use of the data on a currency converter.

View 3 Replies

Server-Client Data Exchange Using MySQL (.Net)?

May 3, 2012

I developed a simple examination system with registration forms. I used VB.Net as the programming language. I haven't tried manual coding for my problem yet.Anyway this is a project for the company from which I am an intern. The plan is to get every client pc to have this examination/registration application and this application will send the personal info and the score to a central database(server pc).I used MySql as the dbms and developed the application on the same machine which means that the Database server I used is only on the local host.

Now I was about to try to implement the application to one client pc(as a beta test) and installed the necessary files(.net framework) and I also installed MySQL Server(and workbench) in the server pc.When I run the application in the client PC it didn't detect/connect to the ServerPC's MySQL server instance and therefore was not able to record the dummy values I input in the client application. Take note I changed the connection string of my app to point to the ip address of the serverPC.

Should I install the MySQL Server(and Workbench) to every ClientPC so that I can create a server instance that uses the REMOTE HOST option and configure it such that it will connect to the SERVERPC's Database?How should I setup the server so it gives access to the application I installed in all clientPCs?

View 1 Replies

VS 2005 - Retrieving Live Currency Exchange Rates Data

Nov 26, 2009

I have only just started on .Net (C#, VB) programming. Does anyone know how to retrieve live currency exchange rates data for example SGX stock market exchange rates. I am supposed to do a program which retrieves live currency exchange rates and then make use of the data on a currency converter.

View 1 Replies

VS 2008 Make Text Exchange?

Apr 14, 2011

i want what ever the user types in text box1 to be in text box2 EXCEPT i want it to have tags around it. so say a user types "hello" in the first text box i was the second text box to read "!hello!" or something similar.

View 12 Replies

VS 2008 Query Exchange 2003 Calendars?

Oct 20, 2009

I have a requirement to query Exchange Server 2003 for some specified user accounts and to retrieve all calendar appointments for a given date range.I've had a look at various articles on the Internet but most relate to local installations of Outlook (not Exchange server) and others are in VBScript (in this case, which doesn't convert well to .NET).

View 4 Replies

VS 2008 Search For All Emails At Exchange (within Unread!)

Dec 17, 2009

I want to search all my emails from Microsoft Exchange by using the Windows Search at the bottom of Windows-Startmenu (within unread emails!).I've already added the file-extension for Outlook-mails to the SearchIndexer. It works fine, but this doesn't return the unread emails! Because of this I think that I have to modify the Windows Search to get the unread mails too?!So is it possible to modify the Windows Search with C#/VB.Net?

View 1 Replies

VS 2008 Exchange 2007 Global Address List

May 10, 2010

I am creating a small internal messaging system for my company mainly for phone messages to be passed on. These messages are going to be sent in a form of e-mail which I am perfectly good at coding but the bit I am having a problem is, is contacting the Exchange 2007 Server and pulling up a list of email addresses from the GAL.

[Code]...

View 2 Replies

Passing Data Between Forms Vb 2008?

Oct 20, 2010

I need to pass a double from form1 to form2 and have form2 return this value back. My problem is while i can receive the proper value in form2 i can not seem to get the corrected value back in form1 (using byRef in form1). Here is the code snip

Dim AmountPaid As Double = 8
Dim newInvoiceRow As InvoiceDataSet.InvoiceRow
If (MakeAPayment.ShowDialog(AmountPaid) = Windows.Forms.DialogResult.OK) Then

View 4 Replies

VS 2008 AccessingTextbox Data Between Two Forms?

Mar 17, 2009

I am in the process of creating an excel add-in.I need to figure out how to pass textbox data between forms. The default values pop up inside the textboxs from Form1. After any changes, these values should be stored publicly so that I can access them from a comepletely different form.

How do I go about doing this? Sorry if this is a stupid question. I am new at this and I have been given this project with very little instruction. Trial by fire.

View 9 Replies

VS 2008 Passing Data Between Forms?

Jul 8, 2010

Form1 is a Datagridview which is non editable. I want a user to be able to double click and open Form2, which will allow editing BUTForm2 is a list view and also had a binding navigator so I guess I cannot use dialogue? I do not want to simply just edit in a dialogue and save.Is there an easy way to get the record from Form1 and pass it to the controls in Form2 so that the correct record is displayed?

View 5 Replies

[2008] Passing Data Between 2 Forms?

Jun 18, 2009

I am trying to pass data between forms on a double click operation. On Form1, I have a simple database with three fields (ProfileID(PK), Profile First, Profile Surname). The database has 10 records at present which displays all records in a datagrid view which is set to read only. I have the Selection Mode set to FullRowSelect to highlight the full row.Form2, is a form to Display one record at a time. This form allows editing and saving of changes.How would I go about coding in vb.net to firstly get the ProfileID from the relevant row and send this into Form2 to display that record for editing?

View 10 Replies

VS 2008 - Sending Data / Passing Value Between Forms

Dec 15, 2009

Imagine a project with couple of forms and a module. Now as per my knowledge if i want to send some data from one form to another then :

- If I declare variable friend/public in a module then it can be accessed in the entire project (thus also between forms).
- If I just have to send data from one form to another, then I can call the other form's sub/function and pass value.
- If the pass value by reference then I can get new value only if its changed in that function.

Now what the issue is, I need to pass a variable to a form and in that form when user types contents in a textbox or makes other selection and presses OK button then it should return some values back to the calling form. Now how can I achieve this (without declaring global variables which will be accessible everywhere) ?

View 14 Replies

Forms :: Share Data Between Forms (as Opposed To Passing Data)

Nov 26, 2011

Quite a few threads on passing data from one form to another, but I'm struggling to work out how to share data between the two - back and forth.

For example:

Class1 is a class with 10 string properties

Form1 has 10 labels ("Label1", "Label2" etc) and a [Configure] button.
Form2 has 10 textboxes and a [Apply] button.

I want to load with Form1, and create an instance of Class1. Click the Configure button and load Form2, passing Class1. On Form2 I want to manually fill in the 10 textboxes and hit Apply. The Apply should update the Class1 instance and close the form.

Form1's Label controls should then be updated with the data from the Class1 instance.

I'm fine creating the forms and classes, as well as passing the class into Form2 with a custom Sub New(EmptyClass as Class1) constructor. This gets the empty class into Form2, but how can I get the populated class back to Form1?

As Form1 already exists I don't want to create a new instance with another custom Sub New(PopulatedClass as Class1)

It's also key to be able to use the Form2 multiple times, basically ending up with a Data class being displayed as part of Form1 but updated using Form2? (For example if the Class has already been created and populated with data when it's passed back to Form2 for the second time I would pre-load the Textboxes with the values already in the class).

View 3 Replies

VS 2008 CSV Or XML - Make Data Available To Multiple Forms At The Same Time?

Nov 4, 2010

I have used CSV files before for a simple database of about 12,000 items - this was a simple one page form... Now I want to have the same database but with the data available to multiple forms at the same time.. eg.. Form 1 displaying persons 1,2,3,5,7 name, addy, phone etc and form 2 pulling info for persons 2,3,4,8... Is this possible with CSV files?? or even XML?... The only other thing is that I do it all in .NET 2.0....

View 3 Replies

VS 2008 Data Between Forms - Button Which Shows Another Form

Nov 6, 2011

In my program i have a button which shows another form

dim oForm2 as new form2
oForm2.showdialog(me)

On form2 i have a label that i need to populate from a grid on form3

[CODE]....................

View 11 Replies

Forms :: Data Base Master/detail Consistency VB 2008

Mar 15, 2010

In it's simplest form, I have two forms a master form and a detail form. I added the data source from within the ide.

Data> add new data source database>new connection > microsoft sql server database file. Selected table etc.

From the datasources tab in the ide I dragged the grid view onto the master form. dragged the detail view onto the details form.Independently both forms work fine, However if I load the master form first and then load the detail form when the master dgv is clicked the problems start.

[code]...

All variables are correctly declared and the details form works fine, the correct record comes up and can be added, edited and deleted.I then save the form by clicking on the save icon and close the form but changes made to the details form (e.g. additions or deletions) are NOT reflected on the master form until I close and rerun the application. guess it's just a matter of refreshing the right control(s) on the master form but I cant seem to find it.

View 1 Replies

Passing Data Between Forms Without Any Public Methods Or Properties On The Forms

Dec 28, 2009

Passing data between forms without any public methods or properties on the forms. everything but the "Controller" class, which I would like you furnish. I just changed the title from "Intermediate" to "Beginner" This solution is an example of the Observer Pattern. The "Controller" class is the "observed" class, which in this case means it publishes events.

' File Definitions.vb

Public Delegate Sub MessageDelegate(ByVal sender As Object, ByVal e As MessageEventArgs)

Public Class MessageEventArgs : Inherits EventArgs
Public Message As String

[CODE]...

The program should initially display Form1, and Form2. Clicking of the button on either form will modify the Title Text of both forms. I think that you will find the final end result to be pretty neat, as it works with any number of open forms not just two. I think asking for the Controller class is easier than asking for the code in the forms. My solution for Controller class has 7 lines of content, 9 lines if you include Class, EndClass. A minimal solution could achieved with only 4 lines of content, but it would a textbook example of bad programming.

View 12 Replies

Create A Data Forms With Forms Wizard In VB 2005?

Jan 21, 2010

How to create a data forms with the data forms wizard in VB 2005

View 6 Replies

Forms :: Retaining Data Across Multiple Forms

Sep 8, 2010

VB.NET newbie here... I have an vb.net windows application set up. It has multiple forms, about 6 in all. There's a main menu form, and then 5 other forms to collect data. The user will collect data on each form and bounce back and forth between forms. How do I get the forms to retain the data that has been entered into the text boxes and/or other controls on the forms? For example, they might fill out a few textboxes on a form, but then need to go to a different form and fill something out... and then back to the previous form. Right now, when they come back to the form, all the data previously entered in to the text boxes is gone.

View 1 Replies

.Net Exchange Web Services?

Aug 31, 2011

I created an application using the Exchange Web Services, everything works fine, but after running 3 or 4 times, I suddenly get the error:

There was an error downloading "whatever/ews/services.wsdl"The remove name could not be resolved:There was an error downloading "whatever/ews/services.wsdl/$metadata"That gets me is its working find for a while, then it just stops working. I do an update and get the error. wait a little longer, try to browse it through browser and it prompts me for a user name and password, even though I checked the box "Remember".

View 1 Replies

Ews (Exchange Web Services)?

Jun 12, 2009

I'm looking at using ews to move new emails to a sub folder and download attachments to a network drive. I was wondering if anyone had any experience with this particually using VB.net but all and any advice?

View 1 Replies

Using Ews (Exchange Web Services?

Mar 11, 2009

I'm looking at using ews to move new emails to a sub folder and download attachments to a network drive. I was wondering if anyone had any experience with this particually using VB.net but

View 2 Replies







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