Sync Scrolling Of 2 Listview?
Apr 29, 2009I have 2 listview with the same number of lines, what I want to do is when a user scroll the fist listview I want to second one to scroll too.
View 3 RepliesI have 2 listview with the same number of lines, what I want to do is when a user scroll the fist listview I want to second one to scroll too.
View 3 RepliesI'm making a program that updates a ListView filled with processes every second. After updating, it scrolls back up to the top. How do I stop it from doing that?
View 5 RepliesI've made an extended listview for my application but do get some strange behaviour when i scroll down and select an item.
This is the
Imports System.Windows.Forms
Public Class iListView
Inherits System.Windows.Forms.ListView
[CODE]...
The strange thing is that after scrolling up and down some items get visible again.
After scouring the articles online I have come up with this design for a winforms based touchscreen app that needs smartphone like scrolling. The app itself will run on a tablet laptop or touchscreen desktop.I put everything I want to scroll on a panel. Set autoscroll to true (which will show scrollbars)Now put this whole panel inside a groupbox.Shrink the groupbox until the scrollbars are hidden (visually hidden, not visible = false)
Now the fun part I am stuck at.I think I have to handle the mousedown, mouseup & mousemove on the panel to set the autoscrollposition so that when someone touches the panel and drags, it does it's scroll magic. Please help fill in the few lines of code in below method stubs. The msdn doc on autoscrollposition is very confusing since it returns negative numbers but needs to be set to positive with abs and what not.
Point mouseDownPoint;
Point mouseUpPoint;
Point mouseDragPoint;[code]......
I currently have a label scrolling text, But for some reason it only displays Certain song titles/text. Does Anyone know why?!
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
OpenFileDialog1.ShowDialog()
AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
[code]....
I have a windows application and a php web application(not connected to internet all times), eventually data add/remove/update can happen at either places. So data has to be synchronized every day or manually.
I have a small sqllite database file (less than 500K) in my end, and the php web app uses Mysql, the structures remain the same. I would like to have a update function in my windows app, which sends my sqllite database file directly to my webserver and then1. Php should read values from the sqllite database files insert some values into mysql from the uploaded file 2. Php should read values from the mysql database files and insert them to sqllite database file
and finally send them back to my windows client pc. I would like to use .net 2.0.Anyone has an idea to get the above done or a suggestion to make the sync easier will help me a lot. Give me light on how the architecture or design should be done to achieve this
I have a class that sends an email which i use sendasyc
SMTPServer.SendAsync(message, _message_id)
The result of the email is captured by the following code
Sub SendCompletedCallback(ByVal sender As Object, ByVal e As AsyncCompletedEventArgs)
Dim message_id As String = CType(e.UserState, String)
[Code]....
This works fine when the code is run within a form but when i move it into a dll calling it from a console app it neither sends emails nor picks up any errors.
Public Class Form1
Public elapsed_time As TimeSpan
Public start_time, stop_time As DateTime
Public txtBreak As String = "180"
[code]....
All the code needs to be controled by seperate timers as the user may need to pause timer3 or timer4 at any one time. The problem I have is that after about 5 minutes the time and elapsed time are about three seconds ahead of the two count down timers.
I'm just looking for an answer or idea.I plan to connect vb.net to mysql (which is done) and also the PHP connected to the mysql.But I'm confuse with something.VB.NET is use for offline things (which people will come to store and buy), but PHP is buying / booking online. (You know the airport things right ? customer can directly go to the airport and buy tickets or they can buy tickets from the internet)
For ex :Customer A come to airport and buy a ticket which is only left 1 tickets. Customer B wanted to buy from the internet. Both of them saw there is only left 1 tickets. So, both of them buying. When Customer A buy, the employee click buy at the same time with Customer B.In here, I'm confuse, how to declare which person should get the ticket because they click buy at the same time (server time because PHP and MySQL located to the server and vb.net applciation located to other PC/Machine) ?.
I have two comboboxes on my form and both are bound to the same datatable. The problem is that each time a value is selected from one combobox, the value in the other combobox changes to the value selected in the former. Is there anyway to disable this behaviour?Only performance counts!
View 2 RepliesOn my form I have a button that says "Sync To USB" When its clicked this is what I want to happen: The files in ListBox3 will be copied onto a USB Mass Storage Device (if it is inserted) otherwise it will play the sound "USB not inserted.WMV".
View 5 Repliesi just want to ask if how can i sync my files (like dropbox) via web service? is that possible in vb.net?
View 2 RepliesHow can I sync 2 binding sources, both binding sources contain the same data(contactsbindingsource)I have 2 forms:1 form is a list of contact information the other is a search form.I have a linq querie in the search form that returns contact names to a datagridview, but I want to be able to double click on selected cell and have the relevant data appear on my first form.Also my first form has FK relationship to another form that contains company information, could this have something to do with it?
View 6 RepliesI am reading a lot in this forum about sync. It must be fantastic. I look a round for any tutorial, but I haven't found one. Let me tell me the story about the new program I want to write.I am working on a campsite in France. When there is a problem like a Mobilehome isn't clean. The person who is working on the reception write a note and the one how is going to fix it will be called. This is not a really good thing.I like to write an program in Visual Basic that allow the person who is working at the reception write the task in an program. This program will use a database to store the task. The person who is working at the campsite will see the task at his mobile phone (Windows mobile 6) He will fix the task and the reception can see in the application that the task is done.So I need a database who is synchronized whit the one in the mobile phone. The mobile phone can work offline and online. By online the database will be synchronized to the one in the reception.
View 1 RepliesI have a small "Clinic Application" that runs on two machines. (Receptionists & Doctors)
Same application is installed at both the computers, and they access the same SQL Server 2008 Data at a 3rd macine.
When the application is started, the local datasets are filled with the data from the 3rd machine (using tableadapter.fill).
Whenever the Receptionist adds a Patient in DataGrid,and saved it, it should show in Doctors DataGrid. and whenever Doctor adds something, the receptionists dataGrid should show it.
to accomplish this I have set a timer that keeps Filling datasets.
the task is successfully accomplished, but....
I have a new requirement to sync a DVR to an NTP server, but not sure how. I have googled and forum searched, but a lot is VB6 stuff and also for sync'ing a local computer's time. This requirement is for sync'ing time for a Digital Video Recorder on the network.
View 10 RepliesI have been using vb.net for a while. I am trying to figure out if there is a way that i can update file in a given folder to ftp and get any file on server back using vb.net?
View 2 Repliesi'm interested in syncing a remote folder and a local one over FTP but I don't want to use 3rd party components since this is not going to be a public build so I see no reason to invest on something like this now any code snippets or so available? PS. remote folder includes folders also that can change so I want to keep an update of the remote folder on my PC.
View 3 RepliesI have an application that has several stopwatches. I would like to be able to 'sync' a stopwatch with another at any given time. I tried setting the Elapsed time of one stopwatch to that of another stopwatch but I get that that property is 'read only'.
View 2 RepliesHow do you guys take control of a listbox in a form from another form? I could have sworn I've done this before but can't remember how or find any of my programs that did this. In form load i populate a listbox with a routine. I wish to call that routine again to refresh it from another form.
View 3 RepliesI'm writing a logging program that should log some values each 10 seconds, but I want these 10 seconds to be in sync with system clock e.g 8:32:00, 8:32:10, 8:32:20 e.t.c. One way to achieve this would be to use a timer with quite small interval like 0.2 seconds and do logging if the right time has come, but maybe there is a better way?
View 2 RepliesUsing VB.Net, I need to read data from a Microsoft Outlook 2007 PST file and an external database, and sync the two sources.Past posts on SO mention Microsoft.Office.Interop.Outlook. I was wondering if VB.Net developers had successfully used this to work with Outlook, or if there were other solutions I should try instead.
View 2 RepliesFirst: I have a numericUpDown and a class that are bound.
Me.percent.DataBindings.Clear()Me.percent.DataBindings.Add("Value", options, "percent")When I change the numericUpDown the underlying class seems not to update. I have to click outside the numericUpDown to force validation and force syncing. This is very counterintuitive and will cause problems. How can I make sure the underlying data object gets the new value on valuechange rather than validate?
Second: After I change the numericUpDown I have an option that serializes the underlying data in an xml file. The underlying XML file does not always get the right data. To figure out what is happening I added a button that outputs the values of the underlying data object and it is always getting updated. In other words...the control and the object values always agree. The serialize
[Code]...
I need to sync the data of a ms-sql 2005 & 2008 server to my development server (mssql 2005 & 2008). The problem is I can't create .bak files, no permissions (to access the network share where the backup is saved). The problem is not that I may not view the data (I have complete read access to the production server). I can also backup data to csv files and read them in on my system, but that's rather painful (encoding, foreign key reference constraints, having to do it for every table, etc...). The problem is that the admin has no time to set me the necessary permissions (he has larger problems...).
How can I still sync the data to my development server ? I need some kind of syncing to a file, then transport anyhow (manual by FTP if necessary), and then update my development database. I've already tried backing up to a back file on a network share, but that doesn't work either. I don't mind if I have to code a bit in my free time, but I really don't want to do all the low level stuff myself, like resolving constraint dependencies.
[Code]...
I'm posting this in the vb.net as I will be using visual studio to perform the task. So here is what I am trying to achieve or at least achieve it more efficiently than what I am doing now.
So I have two identical database setups, both with a table , let call it table tblUsers. The local database is edited through vb.net and is a Access database. The second database is hosted on a remote server and is a MySQL databse.
Currently I have no problem connecting and editing either database through vb.net. I'm using OLE DB to connect and handle the Access database and ODBC 5.1 to connect and handle the MySQL database.
Here is what I would like to do:
User opens the program Presses the "update local" button
The program updates the local database to whatever the remote database is The user uses the program to edit fields in the local database
When done, the user presses the "Update remote" button and the remote database fields that have been edited with the program in the local database will be updated to the remote database.
Currently, the only way for me to do this is to go line by line in a for next and use a command builder to compare each field and update that way.
Its a Program i created to Sync PSP with my PC (like psp manager)you browse through titles (images) add/remove/sync options plus aconnectivity test but when i start the "Sync.exe" VB Studio 2008 saysthat theres a problem with this code:
Dim Bypass
Dim Value As Short
Bypass = FreeFile()
[code].....
I have some richtextboxes which display contents of a jagged array. When the RTB loses focus, contents of the RTB are placed in the array (so new entries in rtb are updated in the array). This works OK with moderate numbers (for example jagged array of type (200)(){}) but in a situation where the array is (1500)(){} the rtb takes approx 3-4 seconds to reload when it loses focus. I was thinking of eliminating some lostfocus of triggering with this logic
On RTB LostFocus
If 'nothing was changed in the RTB' Then
Return
[code]....
Nothing was changed in the RTB means that the user Focused in the RTB, scrolled around, but did not change the content in any way. How would I achieve that codewise? In addition, is there a better way to keep the RTB updated with it's corresponding jagged array from LostFocus?
Is that possible? Syncing all my gmail contacts to outlook with a visual basic software?
View 2 RepliesI'm just wondering how to sync multiple WebRequests in function? I'm using this now, but sometimes the requests dont go through...
For i = 1 to 10
Dim request As Net.HttpWebRequest = Net.WebRequest.Create("http://www.site.com/test.php?w=" & "TEST")
request.Method = "POST"
[code]....
I am developing an desktop application using vb.net. I have an doubt, can update or sync database which are at different place. Means changes done at one place should get updated in other.
View 12 Replies