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
ADVERTISEMENT
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
Jun 21, 2010
can I have 2 form share the same progress bar? If so how does this work?
View 3 Replies
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
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
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
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
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
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
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
Mar 15, 2010
assist me to create a form in which i need to show the documets like "*.doc,*.xls,*.txt,*.pdf" which is in network share folder
View 1 Replies
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
Aug 22, 2011
I created a VBA project in Excel. I would like to figure out how to transfer the data back in forth to make a more presentable and user-friendly program in VB Studio.Basically, I need my form in VB to input data to into an excel �workbook.data�, where the calculations are preformed. Then I need to copy the finished excel data cells �workbook.results� and paste them into an end result form in VB. I have tried looking at threads and cannot come up with a solution. There is no data saved each time the program runs, so I don't have a database.
View 14 Replies
Feb 27, 2012
simple way to share, only share, in facebook? I see alot of libraries but they come with alot of code and without documentation.
View 2 Replies
Dec 14, 2009
How to start vb.net application from a shared file in LAN I mean that the application is installed in my PC but I want other users to get access to this application using my shared file.
View 8 Replies
Jun 6, 2011
i am working on a app. and i need to know how can i share floders that the app will use to save flies over the net. i was thinking about crearting a data base that would save all the files on to it , and then share the data base with fellow co workers, but i do not know how to add a excel file or word doc. in the database. i am pretty new to all of this so any help would be great. the app is writen in visual studio 2010.
basical it will let the user access the file he needs to compelte his work off shore. the files are created and saved as he needs them. once he is finished, i need the app to send the floder to some type of server ( dont have a server yet) so that the office and other co workers can see the files when they run the app.
View 1 Replies
Jun 11, 2009
I've looked in System.IO. but I can't find anywhere to get the unc share name of a path/drive.Anyone know how to get the unc share name of a folder, i.e. 'O:MyFolder'.
View 4 Replies
Feb 17, 2009
I have to do an application that share a folder and his sub folder.
This application have to run on Vista computer.
What's the best way for share a folder ?
View 1 Replies
Apr 26, 2011
Visual Studio 2008 / Windows 7 / .net framework 3.5 / Windows forms application
My applicaiton has the following App.Config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
[Code]....
View 1 Replies
Apr 16, 2011
I have created a Bus Booking Website [URL]. I want to share the bus booking form with other sites so that they use our services.How can do I this using vb.net?
View 2 Replies
Feb 12, 2011
How can I connect to a network share without using System.Diagnostics.Process.Start?
I need to connect to a network share and get feedback if it already exists.
Can I use some kind of API?
View 1 Replies
Apr 23, 2010
My problem relates to executing an application located on a network share and getting various security exceptions in trying to do so. By far the greatest number of replies to this sort of problem relate to creating a new Code Group under Runtime Security Policy in the .NET Framework (v2 in this case) Configuration tool. However try as I might, and I've spent hours, trying various things with the config tool (and with caspol), I just cannot get my app to work.Still fails on things like reading command-line parameters and displaying a web page in a WebBrowser control or firing up a browser using Process.Start. In fact I've regressed to creating a VB6 version for this particular task as time is off the essence. Which works fine! As I mentioned lots of people have posted on this topic and not s few of them seem not to have resolved their issues either. So I was wondering if anyway had come up with a definitive solution for this problem which, in my case, seems to affect XP machines only? Seems to work OK on Vista, 7, 2003 Server, etc - although I haven't run exhaustive tests in these environments.
View 1 Replies
Oct 22, 2009
My company got a new server, with a new sever share name, etc. I also moved my project from 'My Documents' to the C: Drive. I went through all my code and replaced the old path info to the new path. Tried to publish and received errors stating my temporary key was no longer valid. I googled that error and tried a solution. I created a test certificate and the app published as expected.
View 2 Replies
Nov 4, 2011
Now I have finished my another really small program. I have tryed to publish in several ways but with now result. So how can I publish it easily? I will share it so I'd like to have just one "setup" file which creates the another necessary files. (or just one bigger file?) but the main thing is that I dont want to start share 4-5 files...
I get it worked on my computer, that's not a problem. But then I upploaded all of the files (4-5) to mediafire, destroyed program from my computer and downloaded those files: Program didnt worked: Sayd just "U havent downloaded all necessary files" (something like that).
Well I think it's possible also to publish to new wep site. In fact I tryed to make wep site (with www.nettisivu.org ) (finnish quite good wep-page-creater) but the same result: no results at all. If this is the easier way, how I could upload my program straight to that site? In that "wep-page-creator" the final site looks that: xxxxx.nettisivu.org and editing page looks: xxxxx.nettisivu.org/wp-admin/page.php?action=edit..... (xxxxx=my name for site)
View 2 Replies
Apr 17, 2010
I have an app with my own class "something".So, Im going to one of the my modules and declare public var as a class. After fillup this class by date, I would to get this date from the other module of my app. But there this var is unavailavle (its mean I have to redeclare it again. Its mean I'll lost
View 7 Replies
Jan 13, 2009
I'm new to VB2008 and SQL Server. I have two forms (frmCustomer and frmDetail). The frmCustomer has a datagridview containing general data of customers, and a button to open frmDetail, which contains each customers detail information. All data modification is done on frmDetail (add, delete, and edit). Currently, both forms are binded to the dataset (same table). When the two forms are loaded, each form performs a FILL function that retrieves the data from SQL Server. In addition, all modifications done on frmDetail does not show up on frmCustomer until I perform the FILL function again on both forms. Seems like I'm maintaining 2 sets of data from the same table, and I think I'm doing more work than I have to. I'm sure there are ways to make this easier, such as bind both forms to a single dataset, so I don't have to do everything twice.
View 1 Replies
Feb 17, 2012
Is it possible to share subscripted variables and their data between forms? So far I can't see the variables I made public in one form, in a second form.
View 5 Replies
Apr 30, 2009
I'm writing a console app to take care of our automated user creation process which was previously done by a batch file. I need to check if a users network share exist on any of 38 servers but seem to be having trouble finding info on how to do it. From what i can tell i need to use the netapi32.dll and the NetShareCheck function, but i'm not sure how to do it.
this is what i have so far, but it isn't working as it should. it seems to be returning 2311 in almost all cases exept if i use uppercase on the server and device and the device starts with C.
Imports System.Runtime.InteropServices
Public Class NetApiWin32
Declare Unicode Function NetShareCheck Lib "netapi32.dll"
[Code].....
View 1 Replies
Oct 5, 2010
my old vb6 "WNetAddConnection2 Lib "mpr.dll" no longer work in vb.net 2010. at run time i get "PinvokeStackImbalance was detected".How can connect to network share ?
View 2 Replies
Sep 8, 2011
I have a few pdfs I am trying to display in a winform app I am writing.
Is there a way to grab these apps from a share drive on a network, loop through the directory and display them?
View 2 Replies