Updating Very Old Code?

Jan 19, 2011

I need to bring an old program back to the land of the living. This is a GUI software package that interfaces to a hardware device. The program was written in VB, but I don't know which version. It was written around 1994. I need to update it to VB.NET 2008. I would normally just observe how it works and rewrite it, but in this case, there are special codes that are passed to and from the device it is communicating with, along with specific formats of data. All of this would be very difficult to decode using a scope or by capturing bytes. I believe I'd have much better luck looking at the source code. I have the source code, or so it is labeled. I have a number of files ending in .frm, .bas, .vbw and .mak. I've tried opening these in VB.NET, but all I get are numbers. MS Word just shows a few symbols. Are these source code extensions from early VB?

View 9 Replies


ADVERTISEMENT

VS 2008 - Updating Code Using Sql?

Mar 23, 2011

Having a problem with my update code for a button to update the password :

[code]...

View 3 Replies

Code For Updating A Access Database?

Apr 21, 2012

i am trying to update the info in my access database and i keep getting a syntax error. This is my first database program and i found a site online that showed my how to do it but when i get to the update it keeps giving me the syntax error.

Private Sub CreateBT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateBT.Click
Dim con As New OleDb.OleDbConnection
Dim dbProvider As String

[code]....

View 1 Replies

Updating Screen While Running Code

Sep 16, 2008

I have notice that when a module is running the screen does not update properly.For example if I change a label to read "Please Wait..." The second half of the label does not display until the program is idle.Can I get the screen to update while its running.

View 2 Replies

IDE :: 2005 Application/Form Code Not Updating

Oct 15, 2007

I have a VS 2005 VB.NET Windows forms application that is exhibiting very strange behavior. I can add controls to any of my forms and see them at design time, however when I run the application, it resorts to "old" copies of the forms without the new modifications. Also, the application does not seem to be firiing the correct events - when I put a break on the Form_Load event of my main form - it never fires the event when the application runs. If I change the project settings to start with a new form - it does not recognize the change. Something strange is going on and I am quite frsutrated trying to figure it out.

View 2 Replies

Wazy To Disable Auto-Updating Code

Feb 26, 2012

I wonder if it's possible to prevent Visual Studio (2010) from automatically updating code when I change control names? [code]...

View 8 Replies

Best Connection Code For Retrieving / Updating And Deleting Data From Database

Mar 15, 2012

I start my project in vb.net backend is sql server i have completed my design now i start my coding but i am confused for connectivity code whether i used dataset or datable which is good? please give me best connection code for retriving,updating and deleting data from database..

View 1 Replies

Dataset Not Updating When Bound Text Fields Are Changed In Code?

Sep 1, 2009

I am having issues understanding why it is that a text box that has been bound to a dataset correctly updates that dataset when the text in the box is manually changed i.e. by changing it using the keyboard but the dataset does not recognise the change when I change it in code.Am I missing something obvious? The text is changed in code when the user clicks on a command button that copies the text from another textbox on the form to this textbox.

[Code]...

As i mentioned, manually it works fine but when I use the comman button to change the text it does not recognise that any changes have occured.

View 4 Replies

Loop, Timer - Code That Checks That The Network Is Connected But Need It To Keep Checking And Updating

Feb 4, 2010

I am a new member that has just start coding. Im currently working on a small application for a desktop that will give me information from my system. I have code that works but might not be great. I have code that checks that the network is connected but need it to keep checking and updating. I Have tryed loops, goto and timers but not having any luck. Can anyone help point me in right direction. Here is my code so far.

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = TimeOfDay
Label8.Text = "Time :"

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

View 2 Replies

Updating Child Collection Of POCO (adding/updating/deleting) In Entity Framework 4.1?

Jan 25, 2012

I have a webpage with a form that is used to edit some object. This object contains a Collection of other objects defined like this: Public Overridable Property Employees As List(Of Employee)

On a form I can delete an employee, add a new one or modify existing one. When I click save new values are sent to the server. On a server I check if the user exists. If exists then I modify its values, if it does not exist then I add it. All employees that exist on the server and were not sent are marked as deleted (State changed to EntityState.Deleted). I try to use the following code (dbCollection = database entities, newCollection = collection sent from the form):

[Code]...

This code does not work, because changing to EntityState.Deleted removes the object from collection, and for each loop breaks, since the collection is modified...I know that I can overcome this problem by using a for loop or adding objects to delete to some other list first, but I hope maybe there is a pattern that would make my code nicer.

View 1 Replies

Writing File/Folder Sync Prog, Result Text Boxes Not Updating Untill After All File Action Is Done Even Though Update Code Comes Before Copy?

Apr 12, 2011

I am working on a program using VB.Net 2010 which will enable me to setup groups of files & folders for back up with syncing capabilities etc. I have a concept program which is based on some sample code I found out in one of the VB.Net forums. I have modified it from a command line based program to a form based program. At the moment I consider this code to be a "concept" program which once I have the various copy/sync routines developed and debugged will be integrated in to another program I wrote for
creating "Back Up" groups to automate the process. There are some 3rd party programs that do similar things that I want to do such as Microsofts Sync Toy, but none of them offer the grouping and exclusions options that I am going to program in to this backup/sync program.

So here is my problem, I have the included code taking two folders, a source and a destination, and copying everything from the source to the destination. It will skip over any unchanged files/folders and will delete anything found in the destination folder that is not found in the source folder and it will update all files in the destination folder that have a newer version in the source folder. In other words it will mirror image the source to the destination but will be smart enough not to copy unchanged items from the source to the destination thereby saving a lot of time. The sync part of the program is working fine, the displaying of the progress and results is not.

[Code]...

View 2 Replies

Code To Load The Already Compiled Yahoo Files To Execute The Code Again, Without Having To Recompile The Code?

Dec 8, 2011

I have some code to execute code at runtime...

Here is the main

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If TextBox1.Text.Trim <> "" Then
If TextBox2.Text.Trim <> "" Then

[code]....

When the button is pressed, it all works and the following files are created: yahoo.dll and yahoo.pdb My question is this: What is the code to load the already compiled yahoo files to execute the code again, without having to recompile the code?

View 1 Replies

VS 2010 Convert VB6 Code To VB2010 Code From "The Most Amazing VB6 Code Ever" Thread?

Jul 19, 2011

This code was posted in Chit Chat and everyone is saying how great it is. I just have Visual Studio 2010 and no familiarity with VB6 so I thought it would be good to convert the code to Visual Basic 2010.

[Code]...

View 39 Replies

.net - WP7 - Updating A Listbox?

May 15, 2012

I've finally got around to starting windows phone dev. I'm not very good at it yet, but anyway, I hope you guys understand what I want to do here.From what I've learnt from other programmers, an ObservableCollection can be updated in live time whilst it is databound to an object, such as a listbox. All changes to the ObservableCollection will cause the UI of the object it's databound to update it's items.

So what I'm trying to do, is download a file from my server, parse it with json, then update the ObservableCollection with the new data. However, the webclient doesn't seem to be downloading the new data until the app is re opened!

[Code]...

View 1 Replies

.NET Progressbar Not Updating?

Apr 19, 2011

I am using a progressbar control in a splash screen.

In my code I am updating the progress bar value with each step -

In Form_Load of the main (hidden) form:

frmProg.UpdateProgress(10, "Checking Connection String")
CheckConnectionString()
frmProg.UpdateProgress(20, "Checking Crystal Reports OCX Files")
CheckOCXVersions()

[Code]....

Is there some event I can use to find out when the progress bar has finished redrawing?

View 4 Replies

Database Is Not Updating?

Feb 14, 2012

There is something wrong with my codes. I don't know why it isn't updating the records.If I activated the line dt.Rows.Add(newrow) it will just create an error on da.update(dt) line QuoteThe changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.But if I deactivate that line, no errors will be occurred but the record won't update.

Here is my code

Dim dt As New DataTable
Dim ds As New DataSet
ds.Tables.Add(dt)
Dim da As New OleDbDataAdapter

[code]....

View 14 Replies

DataGridView Not Updating SQL

Jan 31, 2011

I have a data grid view bound to a sql server table. What I am trying to do is have changes made in the dgv update in the sql table. I tried to use the Update method of the table adapter but get the following error.[code]....

View 4 Replies

DataGridView Not Updating?

Jul 26, 2011

I have a datagridview with a datatable as datasource. If I add a row to the datatable, then the datagridview is not showing the contents.

grdChannel1.DataSource = CreateTable(colChannel)
Private Function CreateTable(ByVal colChannel As MyCollection(Of Channel)) As DataTable
'Create table and add collection into

[code]....

I have 2 row counts if I check the the row counts of the datagridview in the debugging mode.

View 1 Replies

Dictionary Keeps Updating Even When I Don't Want It To?

Mar 15, 2010

I have a dictionary of key=string and value=datatable. I use a key to retrieve a datatable and assign that datatable to a new variable. Then I make some updates to the variable. However, I find that the dictionary itself is being updated even though I'm only updating the variable. This causes significant issues when I try to reference the dictionary later. How can I set up my dictionary so that it won't update when I use a value?

dim dt1 as datatable

dt1=dictionary(key)

For row=0 to dt1.rows.count
dt1.Rows(row)(4)=dt1.rows(row)(4)/2
Next row

'at this point, when I look up dictionary(key), the value I get shows all of the original values divided by 2.

View 2 Replies

DSN Checking / Updating?

Apr 24, 2009

I just want to add a DSN if it does not already exist. I am looking at the registry and I know the DSN exists but this code returns False consistently.If(not isnothing(My.Computer.Registry.CurrentUser.OpenSubKey("SOFTWAREODBCODBC.INISQL_Finance", True)),True, False) Once I get past this the next step is to add the DSN if needed.

View 4 Replies

IDE :: Possible To Updating Datagridview?

Jul 18, 2009

I have a datagridview which i filled with this code:

Dim daProd As New SqlDataAdapter
m dsProd As New DataSet
cmd = New SqlCommand

[code].....

View 13 Replies

IDE :: Progress Bar Isn't Updating

Oct 4, 2011

I'm using VS2010 (VB), Framework 4.0 and although I'm incrementing my progress bar value between steps, the progress bar only shows the initial value. I've set the minimum and maximum properties and the initial value, but no luck. Here's a brief summary:

[Code]...

View 5 Replies

LINQ To SQL Not Updating Db?

Aug 31, 2011

I've read through the posts here and can't find any eureka answers so here's what I have.Linq to SQl not propagating a change back to the db.Here's my code. Does anything stand out?The call to dc.GetChangeSet shows 0 changes. What am I missing? I can see the new values from "setting" being set to the cs object properties. SettingID is a primary key in my table and shows as PK in the dbml so that's not an issue.

[Code]...

View 2 Replies

My BindingSource Not Updating

Jun 6, 2010

I'm trying to display a DataTable using a DataGridView and a BindingSource as such: (assuming the DataGridView1 and BindingSource1 has been added using the IDE)[code]...

View 3 Replies

My Database Not Updating

Jul 27, 2011

Whenever I try to update a row in my database, it works, but as soon as I restart the application, the changed information resets.[code]....

View 10 Replies

My DataTable Not Updating

Jul 22, 2009

I have a dataset which I load three tables into from the database. Each of these three tables are related by the AccountNo. On two of the tables I specify this field as a foreign key constraint with the appropriate cascading flags. However when I scroll through the list of companies with my combo box. Only the one table is having its values change on the form whereas the other tables remain static/unchanged.[code]...

View 5 Replies

Reading/Updating From/to XML?

Jul 15, 2010

working with data in VB.NET, and the easiest method seems to be XML, since ini isn't supported. So I tried but couldn't find a way to read XML attributes and then replace/update them if needed. So for example I have this XML File:

<?xml version="1.0" encoding="utf-8"?>
<Entries>
<Entry1 font="Arial.ttf" R="255" G="255" B="255" effect="Stroke"></Entry1>
<Entry2></Entry2> - In the same format
</Entries>

How do I load those as strings, for example I want to write them to a file later, and I use the code:

sw.WriteLine("Font")

But instead I want to load the attribute from Entry1, instead of loading it from pre-defined variables. one more thing I want, when the user clicks a button to update an attribute (Font for example) to the current textbox text.

View 1 Replies

SQL CE - Data Not Updating?

Mar 5, 2011

I'm using the following code to update a SQL CE database:

VB.NET
Public Sub SaveOldEntry(ByVal duration As String, ByVal checkinDate As String, ByVal receivedBy As String, ByVal platformName As String, ByVal serviceTag As String, ByVal

[code].....

View 10 Replies

SQL Not Updating Database?

Nov 10, 2011

I have the following sql query that on debugging contains what looks like the right thing however the database is not being updated, but the code runs fine:

con.Open()
For i = 8 To ds.Tables("AddressBook").Columns.Count - 1 'Counts the amount of columns in the database

[Code]....

View 9 Replies

TextBox Not Updating?

Nov 23, 2010

I'm trying to update a text field... in this manner:The main form (where I have the design)

View 11 Replies







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