473,789 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.UserCont rol'
This is the code that gives this error.
If (mbHasFocus Or MyBase.Ambient. DisplayAsDefaul t) And m_Style <> 0
Then

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

3. UserControl property UserControl.Acc essKeys 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.handl e 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.GetTy pe.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 1090

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

Similar topics

5
1520
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 instance of Class1 to UserControl1 (with WithEvents): "Public WithEvents ThisClass As New Class1". 5. Build the Solution, and put an instance of UserControl1 on Form1.
0
1708
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 solution uses the following technologies - Windows Server 2003 Windows Mobile 2003 Windows XP Professional SP2 Windows 2000 Professional SP4 SQL Server 2000
2
1392
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 select files from source view and transfer it to the destination view.The problem arises while displaying the dialog for overwriting the file or folder if it is present on the other side.
2
1622
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 coding an add-on to this project called Lessons. In creating Lessons we're obviously trying to re-use existing code from Records. And, of course, for political reasons I'm not free to make any changes to Records. The project Records contains a...
1
3875
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 step guide outlined in here: http://msdn.microsoft.com/asp.net/reference/migration/upgrade/default.aspx?pull=/library/en-us/dnaspp/html/webprojectsvs05.asp. I was able to convert the project without any problem. Compiling and building them is...
1
993
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 mood of VS.NET 2005 when it builds).
2
8934
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 added to the form, so I can resize it up and down, and not left and rigth. My usercontrol is a usercontrol project. In my main program I just drag and drop the control from the Toolbox, her the problems starts, the size of all subcontrols changes...
7
2501
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 answers to. First, we have a lot of UserControls. I am getting the error "Type uc_mc_btn_footer is not defined." where uc_mc_btn_footer is the name of the UserControl. Also, on almost all of our UserControls the conversion has remmed out all my code...
5
1453
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 a web app, also developed with vs2005. I tried using @Reference and put the dll in the bin folder, and when that failed I created a Contols folder and put it there and still no luck. Intuitively it makes sense that this does not work, since vb...
0
10400
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10134
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9011
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7523
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5413
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4084
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2903
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.