Migrating Handles From .NET To C#?

Apr 27, 2009

I'm migrating some code from VB.NET to C# (3.5).I find structurs like:

Public Event DataLoaded(ByVal sender As Object, ByVal e As EventArgs)
Protected Sub Mag_Button_Load_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Mag_Button_Load.Click
[..]

[code]....

What is the most streight-forward to translate such behavour in C#?

View 1 Replies


ADVERTISEMENT

Migrating From C# To .net?

Aug 15, 2011

I am going to be taking up a new job as a VB.net developer. I have worked with C# for about 3years. I did mention to the interviewer that I haven't worked with VB.net, but he seemed to think that its easy to migrate from C# to Vb.net.

View 1 Replies

Migrating From C# To VB?

May 1, 2012

I've done a fair bit with the other languages in Visual Studio, and have some C# code I wrote which I am trying to port to Visual Basic.

I will show it here:

public sealed partial class Dice
{
private sealed partial class MT

[Code].....

My question is one of a fairly simple nature, how do you make a thread safe singleton constructor with Visual Basic?

I tried a similar pattern to the one above, only to find that I had a lot of difficulty declaring the static variable instance as a null, this in turn would ruin my public Instance property, as I would have no way of telling if the class had been instantiated or not...

Anyhow, even a simple explanation as to the correct way of doing this would be nice, I'm sure I can fill in a lot of the grey areas, I just need more information than what I'm finding in MSDN, it seems Singletons are only really described in detail for the other languages...

View 4 Replies

Migrating From Vb6 To .Net?

Aug 24, 2010

I want to migrate some code from Vb6 to Vb.Net Here is the code that doesn't work:

UpgradeStubs.MSDataGridLib_DataGrid.getCol(ShowInsur) For UpgradeStubs, I have found an equivalent: Artinsoft.VBUpgrade.Maps, but overall it doesn't work.

View 14 Replies

Migrating To 64 Bit

Sep 30, 2009

I program in vb2008.I am curious about what resources exist:( books, videos, courses) which address how to migrate to 64 bit applications.Right now I have 4 machines with 8 gbyes of memory running XP64.My chief interest is in what I need to do to allow myself to address >4gbytes of ram in a vb application.

View 1 Replies

Migrating To 64 Bit?

Mar 24, 2010

I program in vb2008. I am curious about what resources exist:( books, videos, courses) which address how to migrate to 64 bit applications. Right now I have 4 machines with 8 gbyes of memory running XP64. My chief interest is in what I need to do to allow myself to address >4gbytes of ram in a vb application.

View 10 Replies

Migrating .exe To Another System?

Sep 2, 2009

I have made a windows application (running parfectly on my system). Now i want to run it on another computer.

Here's what i tried: I noticed that an exe file of the application is created inside the Debug folder after the application is deployed. So i thought that copying and pasting the .exe on any other system should work fine but trying to run the exe on that system gave an error and it would not run.

P.S. This application did not have a database. Also, i have made another application which interacts with an access database. How will i be able to run that on another system?

View 3 Replies

Migrating From WinForms To WPF

Jun 25, 2010

We're building an application using VB.net and WPF. Obviously we've found that there are huge differences between the syntax in the two, and we have a few problems trying to do things in Form apps in WPF.If possible, could you pass us some resources on things like switching between WPF windows, we'd use Show() and Close() in WinForms, and referencing variables from other forms, i.e. otherForm.StrVariable references StrVariable from otherForm.

View 2 Replies

Migrating From XP 32 B To Win7 64b?

Jul 1, 2009

I are testing Win7, and I have a ____ trying to just do anything in Win7. Lots of permissions problems. unexpected crashes.

I are no more owner of my code files!

I had no idea that my application was so buggy on Windows 7 :(

View 6 Replies

Start Migrating VBA Code To .NET?

May 17, 2010

First off I am so VB.NET green it's pitiful. I am a AutoCAD Manager and I need to start migrating my VBA code to VB.NET. That being said, I am very familar with VBA,and some asp.net, and trying to use that knowledge to self-train in .net. The trouble I'm having is communicating between the various objects in .net. That being said, here is the first of many issues.

Currently, I am working on a file processing program that checks a user selected folder for .dwg files. I'm attempting to use FolderBrowserDialog activated using a "Browse" button , and can't seem to, first get the dialog to show a folder structure from the FolderBrowserDialog object and second, get the initial dialog code to take the "SelectedPath" method. Error "SelectedPath is not a member of "folderbrowser"

I can post code, but I'm not sure what snippet would be the most informative of my problem.

View 5 Replies

C# - Migrating .Net Remoting From Framework 2 To 4?

Feb 29, 2012

I currently had a .Net Remoting Application running on Framework 2 under IIS. I have to upgrade it to Framework 4 in order to use some new components. I have been able to set everything up and running smootly on Framework 2, but as soon as I change to Framework 4, I get the following exception when I try to call one of the function of my remote object.

The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-52-75-6E-74-69-6D-65-2E-52-65

This bug is not the real bug, it is caused by the fact that the remote object is throwing an exception, and IIS wrap the exception in XML, which throws the BinaryFormatter off.See this for more info on the bug.

This is very unfortunate because I cannot see what is causing the exception, and having never used any Remoting before, I do not have much ideas as to where to start debugging. It seems the Exception is thrown before even stepping in the code because I do a fair amount of logging and none of it seems to be triggering.Basically, I'm looking for some clues or pointer from people that encountered similar problems:

What could be causing the exception when no code has changed besides Compiling from .Net 2 to .Net 4?How can I get the full Exception message that is returned?

[Code]...

View 1 Replies

Migrating .NET Code To A Web-based App?

Oct 29, 2009

I come to programming from a school of functionality rather than theory- writing programs to meet a goal or solve a problem.I haven't had any education in computer science so many aspects of the Visual Studio world are alien to me.Just for fun I wrote a very small program to help with a computer game.It's called the All Lucky Sevens calculator for Final Fantasy 7.If you haven't played the game it won't make much sense to you so I'll eschew the logic of why I wrote it, focusing on what it does.

Basically it performs a series of percentage calculations on a number input by the user, trying to convert the original number into one that ends in 77. So 6104 reduced by 7% is 5677 The question is, how difficult is it to convert VB.NET code to work as a web-based app. I thought .NET was designed to make it easier to do this? Is it relatively simple to convert VB.NET code into something that can be run from a website? If not, the solution is to rewrite it in a different language like Java or Flash.The actual programming of it would not be difficult, but I do not speak those languages and it would require rewriting all the nested loops and ifs.Forcing VB to round down a decimal to an integer was difficult enough, I daren't think how hard it is in a language I've never used before.

View 6 Replies

Migrating 6.0 To Modern Architecture?

Aug 10, 2010

We have a small visual basic 6.0 application with an Access DB that we would like to migrate to modern code and architecture. I am not technical, but I am believe this would be something like a .net framework with a SQL Server DB.What I am wondering about, is there any way to covert this code to a modern language/architecture? If so, what is the easist modern language to migrate to?

View 7 Replies

Migrating Fortan Call From VBA To .NET

Nov 1, 2009

I'm currently trying to interface some Fortran routines into a 3rd party environment by creating a VB.NET DLL. I don't have accessto the Fprtran code because its considered proprietary.

As a starting point, I demonstrated that I could make the call satisfactorily from VBA using the following

Declare Sub INTERFACE_VB Lib "C:FortDirFortFile.dll" _
(ByVal SV As String, ByVal intSV As Long, _
ByRef IV As Long, ByRef RV As Single, ByRef intIERR As Long)

[Code]....

View 4 Replies

Migrating From Access To SSCE?

Jan 4, 2012

I have an application with databases in MS Access. I want to migrate that to SSCE. I have converted all the databases. Problem is with datasets.Do I need to make all new datasets or there is a way to convert the existing ones to SSCE datasets?

View 6 Replies

Migrating VB6 To 2010 Or 2008?

May 20, 2010

I have to migrate a software from VB6 to a most modern technology.

1) Does has Visual Basic 2010 Migration Wizard to migrate VB6? I have downloaded the free trial of VB 2010 and I can't open a VB6 proyect

2) It is a good idea use VB2010 or is better go with VB2008?

I have to say that I will learn the language also, my guts says that I should code again everything using VB2010 ( so I am learning the lastest language) although I am not sure?

View 2 Replies

Migrating Winforms Application To ASP.NET?

Jun 10, 2009

I need to convert my winform VB.NET application to an ASP.NET application.My current application has 4 forms, it reads a remote XML file, and uses a datagrid to collect user input and to create a report.It is a very simple application, and I would like to know where to start to convert it to ASP.NET.

View 3 Replies

.net - Migrating Application From Microsoft Access To VB Or C#.NET?

Sep 5, 2010

I'm currently trying to convince management of the need to port one of our applications to .NET. The application has grown to be a bit of a monster in Access (backend in SQL), with 700 linked tables, 650 forms/subforms, 130 modules and 850 queries.

I pretty much know all the major benefits of doing this, but now need to look at how this can be achieved technically, so I can put a project plan together.So, my plan was to convert the queries into stored procedures and/or views on the backend and re-write the forms in WPF or WinForms.

Now, the code is where I come unstuck. Is it possible to packaged up the code behind and modules into dlls and consume them whilst it is slowly ported to VB/C#?

What we can't be left with is half an application in VB/C# and half in Access, it must 'appear' to all be one application, even half way through the migration.EDIT: Just some more info about what we do and why we're looking at moving away from Access.We are essentially an ISV and the Access application is our main product. This application has been developed over a period of 15 years, by many, many developers on an ad hoc basis. There is no documentation for this application.

We also have problems with getting branching in SCC to work properly, so we've currently got 4 or 5 code bases for the half a dozen clients we have. On top of that, all the testing we do is completely manual, which you can imagine is very labour intensive, and only scratches the surface of what really needs to be tested.We're currently looking to expand, and have a number of sales leads that are in the final stages. I'm worried that with these new sales, we're going to be swamped with support and testing, and that this application is going to become even more entangled an buggy.

I'll also add to this the fact that we're just about to enter the spec phase of a brand new product, which is almost certainly going to be built in .NET. If we were to rewrite the Access application in .NET, then the people we use for that can go straight on to this new development. If we were to stay in Access, then we'd have to get some new Access people in, whom would have to be retrained once we start the new development.

So essentially it has come down to two choices, major refactoring work in Access to try and 'organise' the code a bit better, and those of you who have suggested culling parts are most probably right; I'm sure there are parts that are no longer used. However, I fear that if we stay in Access we still won't be able to build in effective testing and we still won't have proper SCC branching, which will lead to support continuing to be a nightmare, and any future developments on this product makings things worse. Either way there is a lot of work that we're about to embark on, which is either going to be done in Acces, or .NET.

View 5 Replies

DB/Reporting :: Migrating Access Database To MS SQL?

Jul 16, 2009

I need to update a database app written in VB, Visual Studio 2003, using an Access Database.Currently: Customer has 4 users, local network. Access Database is 30MB, about 50 tables.Wanted: Customer is opening new offices, and wants to connect to the database via the internet. There will be 10-15 users.App background: I have all data access via OleDbDataAdapters and one OleDbDataConnection.There are 4 DataSets: Global, Lookup, Reports, FormSpecific.

I have one Private function: FillTable:

Private Function FillTable(ByVal TableToFill As DataTable, _
Optional ByVal OleDbAdpToUse As OleDb.OleDbDataAdapter = Nothing) As Integer
' fills the table by using OleDbDataAdapter.Fill(aTable)

[code]...

All is working well.What I Need to Do:I think I need to migrate the Access Database to MS SQL. What I Have:Visual Studio 2008 Professional. I have started the MS SQL walkthroughs. I did the �Create a Data Connection to the Northwind Database� walkthrough, and connected via MS SQL Server. I cannot find where I can modify the SQL Commands. If I convert my Access Database to a MS SQL Database then can I

1) Just update the OleDbConnection, so it connects to the MS SQL Database (not the Access database).

2) If I cannot do #1, what do I need to start with?

View 6 Replies

Migrating MS-ACCESS 2003 To DotNet

Nov 17, 2011

Would like to migrate MS-ACCESS 2003 legacy applications into modern Dot Net, including migration of the MS-ACCESS Database to Sql Server 2008 (with potentially also migration of the MS-ACCESS Reports to Sql Server Reports). The purpose is to move to DotNet application with Sql Server as its database.

[Code]....

View 5 Replies

Sorting Array Warning When Migrating To .NET 3.5?

Aug 12, 2011

I've just converted my VB.NET application from .NET 1.1 to 3.5, and I'm getting the warning message

Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.in

[Code]...

View 1 Replies

SQL Server - Migrating From Access To SSCE

Jan 4, 2012

I have an application with databases in MS Access. I want to migrate that to SSCE. I have converted all the databases. Problem is with datasets. Do I need to make all new datasets or there is a way to convert the existing ones to SSCE datasets?

View 1 Replies

Vb6 Migration - Library Behaviour While Migrating From VB6 To .NET?

Nov 24, 2010

I have a VB6 application which i need to convert to VB.NET 3.5. The application uses a lot of Business objects libraries and some external libraries.I would like to know if these libraries would behave the same way when i move from VB to VB.net?Are there chances that things would break?

View 1 Replies

Assistance With Migrating Text File To Access

Mar 5, 2009

I created a program that logs incoming data to a serial device to a text file but the output is not what i really want, the data appends to the text file and looks like:

[Code]...

View 9 Replies

Compact Framework Migrating To Windows Application?

Jun 6, 2012

Had any of you tried to migrating the code written in Compact framework (For Windows CE mobile application) into windows application 2010 I did this but getting .resx error i.e resource file error since it is in old version.Has any of you tried a workaroud on this in order to get rid of .resx error.

View 7 Replies

Differences Between Migrating From Vb6 To Vb2005, Vb2008, Vb2010?

May 28, 2010

I own a copy of vb2005 professional. I need to migrate a vb6 project to vb.net Is there any difference in terms of effort to migrating to these editions of vb.net

View 3 Replies

Sql Server - Migrating Stored Procedures Into Application

Jul 22, 2010

All of those disadvantages of stored procedures (database portability etc.) I am now facing. We are going to migrate our VB.Net/ASP/SQL Server application to something like Mono/Postgresql and fully internationalize.

One of the many issues we face is that we have 800-900 stored procedures. What we are thinking of doing is moving the logic in these SP's in to the application code. I have searched around for how people have done this or how it can be done however I have found very little. Most of the info on stored procedures is about what should be in them etc. So I have come to the conclusion that the best way to approach this is to leave the SQL retrieve/update type queries as stored procedures and move the ones with business logic in to the application.

View 2 Replies

Migrating SqlServer (2008) Named Instances To Schemas?

Mar 11, 2011

I currently have a sofware with 80 customers.All share the same database structure, when data are differents.We got 5 database for each customer.Today, we have named instances, so the program is accessing to Bdd with something like :

Connect to 127.0.0.1/CUSTOMER1
select * from base1..table1

Now, we need to change, we got many instances.The idea is to have unique SQLSERVER instance, obviously i want to avoid changing the code (VB.NET).Just tried to play with schemas and users, seems to be an option, but since the schema is under the database, in can't make it works :

Connect to 127.0.0.1/GLOBAL_INSTANCE as specific user (customer1)
select * from base1..table1 -> error @ this point

When THIS works :

Connect to 127.0.0.1/GLOBAL_INSTANCE as specific user (customer1)
Use Base1
select * from base1..table1 / or select * from table1

I can easily script some user or schema creation, and change connection strings for all customers, but i can't really change All requests: huge number.

View 1 Replies

Migrating Visual Studio Controls Onto Third-Party Form

Jun 15, 2009

I have a Form which has a variety of controls on it backed by an abundance of code. I am contemplating replacing some of the controls with third-party controls. What is the easiest way to do this? That is, in a simple example, I may want to just replace the Form itself (i.e. use third-party form and keep using Visual Studio controls). Is it possible to migrate all the existing controls over to the new form. Or do you have to create everything from scratch on the new form (i.e. create all the controls from scratch, name them the same, and use the old code. Note I am assuming the third party controls have all the same properties which may not be the case).

View 5 Replies

XML Database Changing Schema And Migrating Existing Data?

Aug 5, 2010

I have a purely XML database. It's stored as XML, there is no other database file. I did this by first creating a dataset in VB, then adding tables and relationships. I load the database by calling DataSet.ReadXml(FilePath), and save the database by calling DataSet.WriteXml(FilePath).

Now I need to make schema changes, but need to preserve existing data. How might I go about doing this? As soon as I load the database I loose all data if I change the schema in the dataset designer.

I have searched for changing database schema, but everything I find deals with real databases, not XML only ones, and the info doesn't apply because they are using db connections and then running sql against it and AFAIK XML databases have no way to "connect".

View 5 Replies







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