Create An Occasionally Connected Application?

Mar 30, 2010

I'm trying to teach myself how to create an Occasionally Connected Application. I want to create a simple app (like a survey) that will store all the data on a server but have the front end run on the users computer. The users computer may or may not be connected to a server when the data is entered (they may be collecting data in the field).

Program does 3 things:

1. Shows data from database (ie, displays survey data stored on server)

2. Saves data to database (ie, new entries or changes to old entries)

3. Has a background thread that checks for network connection

a. If no connection exists:

i. Gets data, to show, from local database

ii. Saves data to local database

b. If connections exists:

i. Sync local database with network database

ii. To read data: Gets data to show from local database which is now synced with network)

iii. To save changes/new entry: Save changes to local database then sync changes with network, then send update call to anyone else running this app on a different computer so they will get the same changes?

View 3 Replies


ADVERTISEMENT

IDE :: ERROR - Creating An Occasionally Connected Application

Dec 3, 2009

I get this error while im following the "Walkthrough Creating an Occasionally Connected Application" [URL]

Im already in the " To configure tables for local caching" > step 4.

Then when trying to connect this error pops.

"Failed to sync database" <a href="http://tinypic.com" target="_blank"><img src="http://i45.tinypic.com/ur3fq.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

[Code].....

View 1 Replies

SQL Server Synchronization Of Occasionally Connected App?

Mar 11, 2010

Beginning development with SQL Server 2008, VB - Visual Studio 2008 on an application that will deploy laptops remotely for 6 months or more. The laptops will have no network or internet connection. There is a requirement to sync DB changes via shipment of USB flash drives.

The remote app will have a subset of the home database data. Some tables need to be synced bi-directionally, some uni-directionally. When the laptop comes home, it will do one last sync, the local DB will be wiped, and it will connect to the home DB.

Being that there are some identity key columns and the remote is only a subset of the the home, I am not sure that SQL Server replication or synchronization functions can be utilized.

Should I Create SQL Server Compact DB's on the remote system when it is deployed and do a table by table compare (in code) to another compact DB created on the flash drive when a sync is needed?

View 2 Replies

Application Targetting FW2 Appears To Require FW2SP2 Occasionally?

Mar 13, 2012

I have an application written in VS2010 that targets FW2.0..It has no dependencies other than the framework.The application runs fine on the local drive.But one user tells me that he already had FW2.0 installed but had to install FW2.0 SP2 in order to get the exe to run if it was placed on a network/shared folder? Why would running from a server/shared folder make the application crash if Sp2 wasn't installed? some network/path error that was was fixed in SP2 that doesn't affect the app when running off the local C drive ?

View 1 Replies

Php - Create A System That Is Connected A Website With The Same Database?

Feb 4, 2012

I have a thesis project. it is composed of a webpage created on php and a system using vb.net 2008. As of now , they are both connected to the same database. I am wondering if it is possible that if i packaged the system and live the website, will still be connected with one database?

View 1 Replies

Get What Application Is Connected To The Topmost Window?

Aug 25, 2010

My VB.NET application is suposed to monitor what application currently is running in the topmost window. I have tried the following approach using a timer:

Declare Function GetActiveWindow Lib "user32" () As System.IntPtr
Declare Function GetForegroundWindow Lib "user32" () As System.IntPtr
Public Declare Auto Function GetWindowText Lib "user32" _

[Code]....

By this I can see that for example Outlook or Internet Explorer is the topmost window as the name is in Window's title bar. However, if the user crates a new mail in Outlook the title of the window is "Untitled message" givning no hint of what application is running in the the window.

How do I get what application is connected to the topmost window?

View 1 Replies

Changing ToolStripStatusLabel Text To Connected If Connected To A Network

Apr 4, 2011

On my program I am trying to make a ToolStripStatusLabel's text change to "connected" if connected to a network and if not connected to a network change the text to " Not Connected" then I don't know how to display a image if connected to a network or not connected. So if the computer is connected to a network I have a image that I would like to be displayed next to the ToolStripStatusLabel. And if not connected to a network, can the program display a different image? I tried this:

My.Computer.Network.IsAvailable=True(ToolStripStatusLabel2.Text "Connected")
My.Computer.Network.IsAvailable=False(ToolStripStatusLabel2.Text "Not Connected")

View 6 Replies

Find Out If The Connection Of Sockets (TCPClient) Is Connected Or Not Connected

Nov 10, 2009

I am trying to find out if the connection of my sockets (TCPClient) is connected or not connected. I am using the following code:

[Code]...

View 3 Replies

Create Another Array Connected To Same Button To Genarate 10 Random Numbers

Jun 5, 2011

My project is basically a addition test for 5 to 9 year old children. On my form I have a button which when clicked, it inputs a number from 1 to 10,( which is chosen by the user via an combo box drop down), into ten text boxes. I have built and array and used a, for loop for this and it works fine. [code] My problem is I need to create another array connected to the same button to genarate 10 random numbers. Which will allow the user to add the two numbers together.My problem is that visual basic wont let me add a second array to the same button?

View 6 Replies

Call A Function Connected Through The Implementing Application?

Aug 31, 2010

I've decided to make my own simple scripting language parser. I've created about 50% of it and it works great! I need to implement "functions". What ever program uses my parser needs to be able to connect functions to my parser for customization. I've implemented "Lua", a scripting language, in a vb.net application of mine. To connect functions to the Lua Parser it used reflections.I need to be able to (by only knowing the name of the function and its structure) call a function connected through the implementing application.

View 2 Replies

Develop An Application Using VS 2008 Connected To MySQL Database?

Feb 17, 2011

I am trying to develop an application using VS 2008 connected to MySQL database. Previously in vb6 i was using adodb and now when i googled and got a few sample projects done using VS2008 in which most of the module codes were OLEDB.....To which method should i stick to...?

View 2 Replies

Detect Connected Computers In A LAN Using Visual Basic And Connect It Using A Client Application?

Mar 10, 2009

I would like to ask how to connect our application to connected computers in a LAN.Will I use the winsock control?How can I run queries using a server database?Any answers are welcome.

View 3 Replies

Create A Block Of Code That Detects The Local IP Address Of Connected Adapter And Returns It As String To A TextBox?

Dec 9, 2011

I have to create a block of code that detects the Local IP address of connected adapter and returns it as string to a TextBox.

View 7 Replies

MDI Parent Occasionally Not Minimizing?

Apr 6, 2011

I have a MDI parent that opens another form like this:

Dim frm As New Form1
frm.ShowDialog(Me)

That form has a button that, when clicked, does this:

CreateObject("Shell.Application").ToggleDesktop()

The button operates as expected (showing the desktop) most of the time but occasionally does not minimize the MDI parent. All the other windows, including the form above get minimized every time.

View 1 Replies

Create A Login Verification Routine (Login Form) Connected To MS Access Database In The Server

Dec 9, 2009

How do I create a Login Verification routine (Login Form) in vb.net . i have an windows application with login form contain user name , password , ok button and cancel button .

as this one:

Imports System.Data.OleDb
Public Class LoginForm1
' OK button

[Code].....

but i want to run my application from desktop and will get confirmation if the user name and password correct by checking them in MS Access Database in the server.

so the the application in the desktop and the tabel of user name and password in the server.

View 12 Replies

Form Doesn't Load Occasionally?

May 18, 2012

I have a form which on occasion doesn't load...you can see in the task bar ...but it is blank.The code I'm using is pretty straight forward...

Dim admin As New Administration
admin.Show()

I need the user to be able to try again...

View 7 Replies

Infragistics UltraWinGrid Hidden Occasionally

Mar 18, 2011

I have a Windows Form custom control that displays alerts on a customer record. The control uses an Infragistics 9.1 UltraWinGrid to display these alerts, which is filled from a dataset populated by a business object. Some users are having issues viewing these alerts; the grid will be completely blank, like the fields were hidden for some reason. This sample code shows how the grid is populated:

Private Sub InquiryCallbackAlertList(ByVal sender As Object, ByVal e As FunctionRequestEventArgs)
Try
'Code to populate the dataset mdslist
AlertsGrid.Visible = True
[Code] .....

I have not had any success finding anything out about this problem. I did add some trace logic to check the 'HiddenResolved' property on the grid rows and am waiting to find out the results of that. Is there anything else that could be causing this grid to only be hidden for some users and not for others, and also could anything else be causing this only to happen occasionally?

View 1 Replies

.Net Win Forms App Crashes Occasionally, Seemingly Randomly?

Jun 2, 2011

I am developing Windows Forms Application SRacq10 in VS2010 in VB.Net. It provides a WCF duplex service and obtains real time financial market data using COM object TWS (Trader Work Station) provided by Interactive Brokers, Inc. SRacq10 works well most of the time. Occasionally, it crashes; I have not been able to observe a pattern of circumstances when it crashes. When I try to add debug to a text file, I can never make it crash; that's not an acceptable solution in the long run. Here is the fault information when running the debug version outside of VS2010:

Event Viewer:
Faulting application name: SRacq10.exe, version: 1.0.0.0, time stamp: 0x4de7a42c
Faulting module name: MSVCR80.dll, version: 8.0.50727.4940, time stamp: 0x4ca2b271

[code]....

View 4 Replies

App Occasionally Returns System.IO.FileNotFoundException On Ico File?

Oct 28, 2009

We have a vb application with many forms that contain a "lookup" button that has an icon called find.ico. Once in a while, a user will open one of these forms and get the below error but not every time. Has anyone else run into a similar situation? Since it is not consistent, it's been very difficult to track down.

Exception Source: System.Drawing

Exception Type: System.IO.FileNotFoundException

Exception Message: find.ico

View 4 Replies

VS 2010 - Settings Occasionally Get Reset To Empty

Sep 13, 2010

While writing an app that uses a couple settings, they occasionally get re-set to empty. I haven't seen any pattern to this, but I do have a vague memory that there are certain circumstances that will reset the settings in a project under development. What are the circumstances that cause the settings to be reset?

View 6 Replies

Watch A Folder Occasionally On SambaServer Using FileSystemWatcher

Nov 4, 2011

I have developed a tool to watch a folder using the below thread.

[URL]

Issues i am facing

1. Its not working on Samba Server

2. I need it to watch on predefined times only. (i.e., may be every 5 Hrs)
PBL (Visual Studio 2010 Ultimate)

View 2 Replies

SetOverlayIcon Throw An 'Invalid Cursor Handle' COMException Occasionally?

Jul 18, 2010

In my VB.net Winforms application I'm using the ITaskbarList3::SetOverlayIcon interface to set status overlays on the application's taskbar button (under Windows 7). This all seems to work fine for me, with the icons being shown and removed correctly.From the form load event, one of my functions makes the callSetOverlayIcon(parentForm.Handle, IntPtr.Zero, String.Empty)(where parentForm is the form which the load event has fired for) which very occasionally (on other people's machines) throws the following exception:

System.Runtime.InteropServices.COMException (0x8007057A): Invalid cursor handle. (Exception from HRESULT: 0x8007057A)
at MyNamespace.TaskbarNotify.ITaskbarList3.SetOverlayIcon(IntPtr hwnd, IntPtr hIcon,

[code].....

View 1 Replies

User Validation - .add And .invoke Being Ran asynchronously And Occasionally Causing Errors?

Sep 2, 2011

I have a bit of code that jumps around a few domains and adds a user to each of them. This follow is a piece of code I had to write to get around the issue of the .add and .invoke being ran asynchronously and occasionally causing errors.

It connects to the domain in question, passing a "CN" from the code in as a search filter but receives a COMException which is normally a LDAP sting config issue. The connection string in this is fine so I am not sure why it is having such a hard time.

Function GetUser(ByVal UserId As String) As DirectoryEntry
Dim objRootEntry As New DirectoryEntry
objRootEntry.Path = "LDAP://DC=SERVER,DC=LOCAL"[code]....

View 2 Replies

Why Does SetOverlayIcon Throw An 'Invalid Cursor Handle' COMException Occasionally

Nov 2, 2011

Why does SetOverlayIcon throw an 'Invalid cursor handle' COMException occasionally

View 1 Replies

Create A Windows Form Application Program That Can Create Games Something Like Gamemaker Or Klik?

Aug 4, 2010

Hello I want to create a windows form application program that can create games something like Gamemaker or Klik & Play (butt less advanced) with D&D "Drag and Drop" events and actions.

View 7 Replies

Create A VB Application In VS2008 Without Requiring The Application Be Run On A Computer With A .NET Framework In Place?

Feb 26, 2010

How can I create a VB application in VS2008 without requiring the application be run on a computer with a .NET framework in place?

View 4 Replies

Create Uninstall Command For A Windows-based Application In The Application Folder?

May 27, 2009

how to create a uninstall command for a Windows-based application in the Application Folder when creating a new setup project in visual studio 2008.

View 4 Replies

"An Unexpected Network Error Occurred." Happens Occasionally, Unable To Isolate?

Dec 30, 2011

I have a VB .NET Application which I have written for my company which occasionally throws a message"System.IO.IOException: An unexpected network error occurred.", that I have been unable to figure out the issue.The application is a Backup program which to simplify for this post does the following

View 2 Replies

Create An Application That Captures A Resource From Another Application?

Dec 17, 2009

I understand this is possible but I am not sure where to start. I want to either buy or create an application that captures a resource from another application so that I can fire off another application. In other words, I want to start an application (which I did not write) that is database driven so the form has a number of text boxes. When someone keys something into that field I want to be able to validate the value, outside of the original application. For instance, if the program asks for a zipcode and it doesn't validate the zipcode, I'd like to trap for that and write something that would validate it. At this point I don't think I'd have to send anything back to the textbox/resource.

View 1 Replies

Create An Application That Can Connect To Others Using That Application?

Oct 29, 2009

I am unsure about how to go at this, what I want is to create an application that can connect to others using that application. Things such as if I change something on the forum it will be changed on someone else who is looking at the forum, granted it would be a specific person who i am connecting with,

View 4 Replies







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