This content has been marked as final. Show 2 replies
See example in the package:
I think the problem is that size() and location() are functions in one of JPanel's interfaces (although they have been deprecated). I managed to work around the problem:
1. Double-click the error message to bring up the form designer.
2. Remove or comment out the two lines that caused the errors:
Me.AxExpressionEditorPanel1.size = New System.Drawing.Point(256, 128)
Me.AxExpressionEditorPanel1.location = New System.Drawing.Point(12, 98)
3. Insert the following code to set the size and location:
Me.AxExpressionEditorPanel1.Width = 256
Me.AxExpressionEditorPanel1.Height = 128
Me.AxExpressionEditorPanel1.Top = 98
Me.AxExpressionEditorPanel1.Left = 12
These code modifications will stay (and can be compiled and run) as long as no changes are made to the form's GUI, which triggers VB to auto-generate the default code, which has to be manually replaced again.
Also, this can be done only in the form designer in Visual Basic 2005. Editing the file itself outside the IDE will make the file invalid.
This was tested on JDK1.6.0_03 and Visual Basic 2005 Express.