By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,916 Members | 1,319 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,916 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.