Share Static Data Between Applications?

Sep 16, 2011

I want to build a main application that make the autentication process and store the loged user... Then use X and Y applications to ask the current user and depends of the user will have full access partial or none access to the app. In future a Z application could be created and will ask for the current user also. XYZ apps are lauched from Main app, when Main app is closed the others are closed and User ID data is cleared. Of course the main app will handle the log on/log off process.

- Store User ID in a Database is toooooo much for just do this

- Save the User ID in a local file like XML is a security problem

I tried to do a WCF Service but i think its not possible to send data and store in it.The other point is who to handle the instantation issue... each program will access to the same static data not create independent.

View 4 Replies


ADVERTISEMENT

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

View 3 Replies

Share DDL's Shared Data Between 2 Applications?

Jun 25, 2011

I would like to know if it was possible to share data between several assemblies using the same DLL.

I'm not looking for a workaround using memory or disk files of some kind of pipes to do the job I just want to know if and how:

1 - I can run an App. referring to a DLL which contains a given shared data structure.

2 - Run another App. referring to the same DLL that will use the already loaded DLL and data instead of creating a new base instance.

View 3 Replies

Share Data Tables For All Applications (only One Instance)?

Feb 25, 2012

I have 5 websites running on same server and I have some sql tables that I access frequently. that was time consuming and by defining them shared I pumped them in memory. So my application is accessing those static data tables from memory quite efficiently.
But I realized I did a mistake and I occupied my memory unnecessarily while I keep same tables 5 times for each web application. Now I need to find the best way to share that table only 1 time. my options are;

1) using a local database - sql CE. my original sql database is on other server. so it makes the access slower but I can add a sql CE database(to be honest I never used it and dont know if it gives me anything) to access only these tables while they have static rows.

2) I read over forums that making a WCF using tcp binding. not sure if it will give me any advantage.

3) windows service: is it faster than wcf? programming is defiantly faster as i have experience with winservice but nor sure about performance.

View 2 Replies

C# :: Can Share A Static Field Across Application Domains

Aug 2, 2010

Consider a process, in which multiple Application domains are created. Can we share a single static field across these Application domains or can we pass this static field across these application domains? How does CLR handle this?

View 1 Replies

Share A Vb Class For 3+ Web Applications?

Dec 17, 2009

I have three different web applications that I made in VS08 vb.net. Each application uses a class that i continue to update (MyClass.vb), other than using Vault to propogate changes, is it possible to create a class or dll and put it out on the webserver and have each web app call that class or dll?

View 3 Replies

VS 2010 Different Applications Share Same Sessions?

Oct 19, 2010

just wanted to ask if it is possible to have different applications sharing the same session (i.e. database session)... i'm planning on creating a web-based application and a form-based application using asp.net for web and vb.net for forms but i need to have them share sessions since some global variables will be session based and also authentication to one application should also authenticate on the other.

View 2 Replies

Speed Fast Query From SQL And Share Applications

Dec 19, 2009

I'm asking about the best way to get data from SQL Database with less than 1 sec. Really I need to know if iIused LINQ is the faster way or ADO.Net? How can I start with application like CITRIX that will be helpful to share this application after I got data. I mean any example to start create an application to share applications like citrix to share applications?

View 6 Replies

C# - When Deploying .NET Applications - Find Out What Zone A Share Is In Relative To The Computer Running The Application?

Jun 8, 2011

Using any version of .NET how do you find out which zone a particular share is classified under. I am having a problem identifying if a share where my referenced dlls reside is in the "intranet zone" or "internet" zone relative to some user machine that is running my .NET application. I suspect this is a problem because I am having a problem accessing referenced dlls from a share on some machines but not others. How can I tell which zone .NET is classifying that share in so I can adjust permissions accordingly?

View 1 Replies

Connect Different VB Applications To A Database Server.like Accessing Data From One Database By Different Applications?

Aug 15, 2011

how to connect different vb applications to a database server.like accessing data from one database by different applications...

View 4 Replies

Share Data Between Apps Without COM?

Feb 11, 2012

i have a sample code written in VB6 that allows communicating between different application windows and passes data. The link is below:[URL] I wonder how we can do the similar work inside VB.net. I simply claim a method between different applications communicating each other and transmits data. Lately i was using the old code and after my researchs on internet i also found different methods using System.Runtime.Remoting libraries

View 2 Replies

Storing Static Data In Class Library?

Jun 21, 2011

I want to store a fairly large amount of static data in a class library.I have used a library before that does this, containing info for thousands of items. The person who made the library got that info from a database and somehow stored it in the library such that you could access it in a variety of ways using different methods. (ID, Name, etc)

View 5 Replies

Method To Share Data Between 2 Apps?

Feb 3, 2009

We are about to have a situation where our application needs to accept/give data to another application. Both applications are residing on the same machine.Two approaches being talked about are using a local web service that will do this or using files that will be used to share all of this data.

View 3 Replies

Can Share Data And Methods With Multiple Threads

Jun 15, 2010

I've used mutiple threads in a VB.NET program but I don't know if I did it right.I would like to start about 3 threads.Can they all use the same methods?Will a separate instance of each method automatically be created for each thread?If not, how do you make sure that the data within the method that is used by one thread is not used by another thread?I would like some data to be shared by all threads.How is data shared among threads?What is the protocol for changing the data and checking for changed data?Is there a good tutorial / website that explains how to handle methods and data when using multiple threads?

View 3 Replies

Share Data Between 2 Or More Visual Studio Extensions?

Nov 1, 2010

I have several Visual Studio Extensions (VSX) that I need to communicate with each other. (For instance activate features, share saved files, access project items from one to another.) I could utilize the registry but I have a very bad feeling about that. I was thinking of a commonly placed XML file but I'm afraid of not having the proper permissions to access it. sharing data between (live) extensions?

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

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

Controlling Outside Applications - Resize Multiple Applications And Send Keystrokes To Each One

Sep 12, 2011

I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another.

[Code]...

View 2 Replies

Data Interchange Between Two Independent Applications

Feb 19, 2009

Which is the best way (fast and robust) that .net framework (3.0/3.5) provide for interchange information (for example: dataset packages) between two independent vb.net applications?

View 2 Replies

Inserting Of Data Through The Window Applications?

Oct 1, 2009

I am doing a project on inserting of data through window applications. I am using the MS Access 2003 for the database. I have this form1 and in this form1, it consists of 6 textbox which is custName,Address,position,companyName,Email,Telephone and 1 combobox which consists of the lists of industry.My problem is that I want to insert the data when running this application.

View 3 Replies

Notify Applications Of Data Change?

May 7, 2010

I have below codes on how to notify forms of data change.

If I were to convert it to exe, how do i then notify the multiple instances of this application of a data change?

Public Class Form1
' use the WithEvents keyword in that the events of frm2 can be handled using the Handles keyword

[Code]....

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

Making Applications That Retrieve Data From Sql Databases

Jun 9, 2011

I have started making applications that retrieve data from sql databases.

I write the database with Sql management studio then apply that database to my applicaton.

My question is, how can I make my applications more secure against hackers. Some applications store user names and passwords and personal information / finantial information and so on.

View 1 Replies

Database - How Data Sources Are Linked In Compiled .NET Applications

Jun 18, 2009

When I try adding a new data source to my project I get a prompt saying "The connection you selected uses a local data file that is not part of the current project. Would you like to copy the file to your project and modify the connection?"This sounds rather obscure to me, as I'm new to VB.NET and programming non-script apps in general. The data source in this case is a .sdf SQL CE file.

Question 1: If I say that I want to copy the database to the project, what will happen after I compile the app, where the database will be? (how will I edit it from another app?)

Question 2: If I do not include it, how the data source will still keep linked? Can I link using filesystem enviroiment variables like %ProgramFiles%MyAppDir?

Question 3: Can I just tell it to use a read-only (Just needs to read it) data source on the web, like on an FTP?

View 1 Replies

Retrieving Custom Formatted Clipboard Data Across Two Applications

Aug 11, 2009

I am having issues retrieving a class serialized in another application. If I put the code all in one application the set and get both work. If I separate the code into two applications the retrieval fails. Any thoughts on how to set the object to the clipboard in one app and get it back in a second one? [code]

View 3 Replies

Switch From ADO To ADO.NET - Regards To Data Access When It Comes To Windows Forms Applications

Jul 21, 2009

I have some friends who are 'old-school' VB6 database developers and I was telling them about .NET and its features, specifically ADO.NET. In our conversation, they brought up the following reasons why they would rather stick with ADO than move to ADO.NET: The Dataset is disconnected (What if power fails?)

The same amount of code still has to be written The new options of Dataset, BindingSource and TableAdapter seem confusing the same code is written programatically access the Database, all that changes is how that command is laid out. Why ADO.NET is 'better' than ADO with regards to data access when it comes to Windows Forms applications. What does ADO.NET provide that ADO does not? What does it do better than ADO? I'd like examples that do not involve LINQ.

View 8 Replies

Write Code That Will Control And Read Data From Applications?

Mar 22, 2010

I'm having difficulty figuring out how to run different programs with my VB program. Using Excel and other MS office programs is easy enough since I just add in the relevant COMs, but I can't for the life of me find out how to run other programs. I promise I spent many hours searching before bothering you kind folks here! I'd think this is a common issue so maybe I haven't been searching for the right thing.how to write code that will control and read data from applications.I know you can do "Process.Start" to open any application, and it looks like there are ways to determine the controls available on an open application, but I can't figure out how to do it. Is this possible? Or do I have to import a .dll file for every program I want to control? Or are both possible?

View 12 Replies

Getting A Form To "share" Data With Another?

Sep 28, 2009

I am developing software that I want any user to be able to use.Right now I have:

Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=c:FILE_PATHfile.MDB")

View 1 Replies

VS 2010 Saving Data From Applications By Saving A Text File Via A Stream Reader As A String

Feb 12, 2012

Currently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:

[Code]...

View 7 Replies

Running Applications Within Applications?

Jul 24, 2009

Is there a way to, when a parent application is opened up, that at the click of a button, or anything of designated event, that this parent application can open a secondary one?

View 11 Replies







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