473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Issues in converting a usercontrol project from VB 6.0 to VB 2005

Hi,

I'm converting a VB 6.0 project to VB 2005. There are few issues, where
i got stuck up.

They are

1. 'Ambient' is not a member of 'System.Windows.Forms.UserControl'
This is the code that gives this error.
If (mbHasFocus Or MyBase.Ambient.DisplayAsDefault) And m_Style <> 0
Then

2. AmbientProperties property Ambient.Font was not upgraded.
Ambient.Font is not recognised. How to get his issue resolved?

3. UserControl property UserControl.AccessKeys was not upgraded.
How to set the AccessKey property for a usercontrol??

4. ObjPtr function is not supported.
This is the code that gives the error.
gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - Me refers to object of
objTimer class.
How do i find the address of a object?

5. Picture property picSource.handle was not upgraded.
picsource is System.Drawing.Image.
How can i get the handle of picSource

6.Picture property picSource.Type was not upgraded.
Code is
Select Case picSource.Type
Case vbPicTypeBitmap
'blah blah
Case vbPicTypeIcon
'blah blah
Case Else
'blah blah
End Select

Here i tried piSource.type with picSource.GetType.Name. Now the issues
are what are the equivalents of vbPicTypeBitmap, vbPicTypeIcon. It
seems the case statements expects some "type" in the code.

Pls help in reslving these issues.

Thanks in advance,
Sugan

Jun 16 '06 #1
0 1064

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Pieter | last post by:
Hi, I'm getting a really terrible and anoying bug/problem in VS.NET 2005: 1. Create a new Windows Application. 2. Add a new class Class1. 3. Add a usercontrol UserControl1. 4. Add a public...
0
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
2
by: sonu | last post by:
Hi all, I have a problem regarding use of a usercontrol in .NET. My usercontrol consists of two listviews which I say as source and destination lisviews which contains the files and folders. I...
2
by: tlk | last post by:
Hi, everyone. I'm having a problem that I hope some more experienced developers can help me figure-out. We have a project called Records that has been around for a year or so. We're currently...
1
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by...
1
by: Wayne | last post by:
I am having a tremendous amount of problems converting a current web application over to ASP.NET/VB.NET 2.0. I have managed to fix all the errors except 7 to 10 of them (depending on the...
2
by: Rene Sørensen | last post by:
In VS 2005 I'm trying to create a usercontrol, but I have some problems with it right now I can't figure out how to fix. The size of my usercontrol is "Size 574; 619" I have anchored all controls...
7
by: Coleen | last post by:
Does anyone have any good detailed information on the conversion process? We are in the process of converting 2 projects from 2003 to 2005 and have some conversion errors that I can not find...
5
by: billsahiker | last post by:
I saw one post here that basically said no way, but not sure which vs version was being discussed. Using vs 2005 I develped a user control in a vb project and would like to use that usercontrol in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.