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


ADVERTISEMENT

Data Migration - Data Migration Two Database In MS SQL 2005

Oct 13, 2010

I am doing data migration two database in MS SQL 2005. The records are more than 200000 nearly 300000. I need to query from source database using joins and insert 2 or 3 tables in destination databse. Which way is the best way to do so? I am trying to write a program with VB.NET. If you have sample,

View 1 Replies

Migration From .NET 4.0 To .NET 3.5

Oct 24, 2011

I have developed an application using .NET 4.0 Framework, now i want to migrate to .NET 3.5 Framework.

When i change the Framework in advance compile option and run the application it gives me the following error. how can i over come this....

View 7 Replies

Migration From Vb6 To .NET?

Jun 22, 2010

I have made the dreaded (but forced) change from vb6 to .NET.

View 1 Replies

Migration Of VB To .net?

Jan 19, 2009

Any program written in Vb 6.0 Is there any free source code available to convert vb code to vb.net?

View 3 Replies

Different Behaviour Between PrintDocument And PageSetupDialog?

Mar 11, 2011

In a program I am using the standard PrintDocument, PageSetupDialog and PrintPreView controls. I am attempting to print a screenful of information which covers three A4 printed sheets. The printed format is OK except that the positioning on the page. Changing the margins in the PageSetupDialog makes it worse.So I wrote the following code in the Form Load event to see what was going on -

While
True
Dim
MsgStr As

[code]....

View 3 Replies

Inconsistent Combobox Behaviour?

Sep 12, 2011

I have an application which was developed in vs2005 with numerous forms which use the combobox for selecting from lists of items. The usual setup is as follows:

Combo.Datsource = BusinessObject

Combo.DropdownStyle = DropDownList

Combo.AutoCompleteMode = SuggestAppend

Combo.AutoCompleteSource = ListItems

However, compiled under vs2005 when tabbing to a combo and typing a number of characters the combo would highlight the first matching item and on pressing tab, would select it and the user would move to next field.

With vs2008 the same item might be highlighted but pressing tab doesn't select the item unless its the only item matching the first character. The only way of selecting the item highlighted from the suggestappend is to press enter prior to the tab key.

I also noticed some users experiencing the same behaviour when the app was compiled with vs2005 on some PC's but not others as if it had something to do with the PC config.

Has anyone any ideas how to get around this as it can lead to errors in data capture.



Kind regards.



View 8 Replies

Put Behaviour Logic When Using POCOs?

Jan 26, 2011

I never used POCOs, so I have the habit of putting a lot of logic in my business object classes. Hence I believe I'm missing some important concepts about class-layouts, and the thought-process that is needed here.

Say if you have two classes; Company and Employee. Could you give some examples of what classes you would build "around" these that take care of various behavior/validation etc.? (Like some class names, and a brief description of their purpose)

View 2 Replies

Strange COM Behaviour Called From .net?

Oct 13, 2010

i am working on an application which calls the COM component of a partner's application.Ours is .Net, theirs isn't. I don't know much about COM; I know that the component we're calling is late-bound i.e.obj As Object = CreateObject("THIRDPARTY.ThirdPartyObject")We then call a method on this COM object (Option Strict Off in the head of the VB file):obj.AMethod(ByVal Arg1 As Integer, ByVal Arg2 As Integer, ByVal Arg3 as Boolean)I am a bit nonplussed that even though this call works, this overload doesn't exist in the COM interop .dll that is created if I instead add a reference to the COM server using Add Reference. The only available call to this method that it says is available is AMethod().

View 3 Replies

VB2010 Class Library: Create A Static Library Instead Of DLL?

Jun 21, 2011

I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?

View 6 Replies

Migration From VB6 To .NET 2008?

Apr 23, 2010

I'm going to convert VB6 code to vb.NET 2008. Please advise me What is the best way to convert the code. My VB6 system used following comp.

View 3 Replies

VB To C#.Net Migration Project?

Oct 22, 2009

I am working on a VB to C#.Net migration project. Has anyone used a tool called CSharpener to convert VB.Net code to C#? What is your experience with this tool? How much code does this tool migrate & how much is the rework?

View 1 Replies

.net - Different Behaviour When Using Response.Redirect And SiteMaps?

Oct 7, 2011

My ASP.NET (VB.NET) application uses SiteMaps to display a navigation menu on the top of each page. In the code behind of some of the pages, I am dynamically amending the URLs of the SiteMaps nodes (to add parameters to the end of the URL) e.g. say I have somePage.aspx.vb and anotherPage.aspx.vb and they both contain the following:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
AddHandler SiteMap.SiteMapResolve, AddressOf Me.ExpandForumPaths
If Not Page.IsPostBack Then
Setup()

[code]....

My problem is this, if I am in the code behind of somePage.aspx and I do a Response.Redirect("~/anotherPage.aspx") - then, when anotherPage.aspx.vb is being loaded, it is the ExpandFormumPaths method of somePage.aspx.vb that is hit, not that of anotherPage.aspx.vb.

My understanding is that a Response.Redirect tells the browser to do a new request to the supplied URL - I don't know why it's hitting the method belonging to the previous page.

I've tried amending the method names (i.e. not having the node processing method called ExpandFormumPaths in all classes) but I still encountered the same issue.

When I go straight to the URL of anotherPage.aspx the correct method is hit, it is only when I am using Response.Redirect that this happens.

View 3 Replies

C# - Using IHTMLElement5/6 (for IE8/9) In IE6/7 - Does It Divert To IHTMLElement Behaviour

Mar 8, 2012

Basically, IHTMLElement5 and IHTMLElement6 are all extended interfaces for the main IHTMLElement as per the versioning rules below:

IHTMLElement IE4
IHTMLElement2 IE5
IHTMLElement3 IE5.5
IHTMLElement4 IE6
IHTMLElement5 IE8
IHTMLElement6 IE9

Of course, each new extended interface has the old members in it + its own new members, properties etc. However, some of the members (for instance, .getAttribute) are the same name but have been updated. So, my question is, if I use (say) IHTMLElement6 to declare my HTML Element and run the code on a client that only has IE6 installed, when will my object just fail and remain as Null/Nothing when I set it, or is mshtml.dll smart enough to realize whats going on and defaults to IHTMLElement4 (actually, IHTMLElement) behaviour?

Just to clarify the last statement in brackets, .getAttribute was added in IHTMLElement and updated in IHTMLElement5 and IHTMLElement6 - so, if someone has IE6 installed only, then I would expect the behaviour to default/revert back to IHTMLElement (not IHTMLElement4) - and if it does not do that, then I expect my code to crash. Basically, my question is, what will happen exactly?

Summary of Question (read if you find necessary, just a reclarification for those who need it):Basically, I want to be able to declare something as IHTMLElement6 so I can make use of the updated methods which have the same name between IHTMLElement and IHTMLElement6 (such as .getAttribute). This way, on IE9 users IHTMLElement6's version of .getAttribute will be taken advantage of, while at the same time IHTMLElement's version of .getAttribute will still work for (say) IE6 users without breaking my code - this is the point where my question comes in, when using a IHTMLElement6 object, even though it is an IE9 interface, will IHTMLElement's (IE4 interface) version of .getAttribute kick in/work or will I get a null reference exception or other runtime error?

View 2 Replies

Class Names And Namespace Behaviour?

Sep 5, 2010

1. create a blank VS2010 web project called "MySite" targeted at 4.0

2. create a new class object, calling it "class1.vb" (cause it's so unique!!)

3. change default code to read as such...

Namespace MySite
Public Class Functions
Public Shared Function WhatIsTodaysDate() As String
Return Date.Now.ToLongDateString

[code]....

Why is VS asking me to call the namespace twice if I use the "Imports" directive?I'm sure this has got something to do with VS2010 and the 4.0 framework.

View 2 Replies

IDE :: Inconsistent Behaviour When Filling Arrays?

May 29, 2010

This works:

Dim zArray(5) As String
zArray = (From zS As String In zArray Select "HelloWorld").ToArray

This doesn't:Dim zArray(5) As String = (From zS As String In zArray Select "HelloWorld").ToArray

It seems inconsistent to me, though I may be missing a subtle difference instead of it being an IDE inconsistency?

View 3 Replies

Irradiate Startup Behaviour In VS2008 And GC?

May 6, 2009

If VB5/6 could read Unicode I would remain in it for ever as it is to me the most efficient way of getting all things done, and I have likely done more in VB classic than most care to try on VS.NET Now, in the midst of trying this system I keep a red light lit in the back of my head, on constant alert due to the GC part of .NET.

No matter what I read, I just get more precarious about the implementation of a Garbage Collector in VB, as this means I cannot absolutely say that a username and password is cleared from memory when I want to.In spite of tallking directly to Mr Bjarne Stostrup (the inventor of C++) and reading two ebooks of a few hundred pages each over the past night, some things still boggles the mind.

Such as...Why in heavens name does the MSDN library opener say "Help is updating to reflect your recent changes. This may take several minutes"Well its not so bad if it happend once, as on the installation of the MSDN disks, but when it happens EVERY TIME that I open MSDN or VS2008, that makes me wonder.Especially when I just closed VS2008 and opened it again five minutes later.

The latest "update" according to the MSDN opener took not only a few minutes but approx. 20 minutes, although I did nothing to change anything since the last time I opened it.Is there any way to disable this constant updating of nothing?

Once more back to the GC issues.Does anyone have a simple to use class, so that at my will I can issue a simple call to a method to clear anything and everything unused from the GC box, short of having to close my application and reopening it?I mean, would it be to much to ask for a simple command that allows us to do this, without having to "imrpove on the MS developers years of efforts" by our own non standardized methods?

What I would like to see implemented in VS.NET would be a simple thing for the boys and girls at Mr. Gates command, to add the following

....GC.ClearAllDead

When called, it guarantees to clean the GC, empty all unused addresses and simply Dispose and Finalize everything at our will, and not leave this sometimes time and security critical part to the will of a users sometimes slow and willful PC.

Everyone knows how easy it is, and common to date that you load a webpage with some flash or adobe files and your computer starts sounding like a spaceship ready for relaunch.Quite obviously, something is running up your CPU and memory usage, and doing things you did not ask it to do when going to read your blog pages for example.Often I have experienced this, and still do on a daily basis, and I sweat every time I think of the possibility any application starts accessing memory addresses to scope up whatever junk is left in memory.Coupled with Garbage Collection potentially leaving items in memory addresses until it wants to free this itself.Now what if someone sneaks a trojan of a new variant onto your system, and this constantly sniffs your RAM for new funny and useful code.

there went your UID/PWD combo to both online banking, blogs, GMAIL, hotmail and all other nice things you use. Consider yourself facebooked in a nasty way, and then tell me GC is all good and poses no risks.So, the addition of the simple GC cleaner above would have been, and should have been, in my oppinion, the first and foremost update to the .NET package before it even was released, thus making it easier and faster for new and old programmers to avoid this cause for (perhaps to be considered as) paranoia.With my background from security and time critical related work, I would still prefer to patch the holes before they become an issue, and I will continue to chose being paranoid and safe rather than leaving this potential hole open.

View 7 Replies

VS 2008 Modify The Form Behaviour?

May 12, 2009

I have a problem with form instantiation. This is what I want to achieve: I want to create forms with a toolstrip attached to them right from the moment these forms are instantiated. I have several ideas:

1. making custom Form Control

2. modifying the new method for forms

I'd like to focus on idea 2. I want to know if there's a way to alter the in-built New() method, so whenever the compiler instantiates a form, somehow when the constructor(New method) of each form is invoked, the compiler adds a toolstrip to the form.

View 5 Replies

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

Migration - Convert The Code?

Apr 26, 2012

I got a chance to work in the migration project(VB to VB.NET).I was confusing in the RecordSet functionality.In our project we are taking the DataReader according to the scenario.But in the Looping cases like dsr.EOF.

Dim recordset As dao.RecordSet
If recordset .EOF Then
' ' msgbox "Please enter some number ", vbOKOnly, "Number Not Found"[code].....

How to convert this into VB.NET?Either we need to write If Not reader.Read or If reader.Read.

View 1 Replies

Asp.net - Data Migration In Sql 2005?

Feb 23, 2009

In my Live sql database ,I have to change the date value from (date, month ,year) to date. Now there is 100 records with the date as date,month ,year(3 Fields).iF I change directly to date Field all the datas in the 3 field of those 100 records will automaticly change to a default date and original dates will disappear.What should i do to migrate all my datas safely

View 2 Replies

Calling All VB6, VBA, SQL Migration Experts Out There?

Jul 21, 2009

I'm working on a project trying to migrate data from MS Access to CRM(Sales force) online web services database. Have you any ideas how this process can be done? Also, if you know of any VBA or SQL code or online sites that can help me with coding this migration?

View 2 Replies

Migration From MS Access To SQL 2008 In Vb6.0 With DAO

Mar 10, 2010

I migrate a vb application from MS Access to SQL Server 2008 using DAO Connectivity.[code]My question is this Is there any way to just change connection from mdb to SQL 2008 without changing in code..

View 9 Replies

VB To .NET Copy File Migration?

Apr 26, 2011

I'm migrating VB code to VB.Net and I can not figure out why my files are not copying to there new folder. Here is the old VB code below:

Public Sub FileTransferDoneImage(ByVal FilePath As String)
OnlyFileName = GetFileName 'Get only filename
OnlyPath = GetPathOnly(FilePath) 'Getting only the path

[code]....

The message box shows the correct path/file, but the files are not copying?

View 2 Replies

Vb6 Migration - Porting A .bas File To Vb?

Feb 21, 2011

I'm working on some legacy VB5/VB6 code and need to convert a ".bas" file to vb.net. i found several options

Compile the .bas file into a com dll and then reference and use it in my project. (For this I guess I would need vb5 or vb6 which I don't have at my disposal) Copy and paste the contents of the file in to a new module in vb.net and then try solving the errors one by one.The contents of the .bas file reference a particular dll. The .bas file has mostly declarations consts, types, sub's and functions.

What would be the most elegant way of redoing this in vb.net. Is it as simple as option 2.EDIT

I used VS2008 express and ran the code through the upgrade wizard it did the necessary conversion. and the .bas file was converted to .vb. I took that file and decided to rewrite other parts of the code, including some redoing of the converted .vb file. Other questions related to this one are here.

View 3 Replies

Vb6 Migration - VB6 Convert To VB Variant?

Dec 2, 2009

I have been tasked to convert out VB6 program to VB.NET. In my research online everyone seems to say I need to go through my code and get rid of any Variants I have. I have had pretty good luck so far, but I am having an issue in replacing this one.

[code]...

I am still pretty new to VB (either 6 or .net) and I am having a hard time finding an alternative for this. Will the convert tool in VB.net handle this just fine? Or do I need to change this? If I do, is there a better alternative for this? Forgive my noobness.

View 2 Replies







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