Private Sub PreviewImage()
Dim symbologyStyleClass As ESRI.ArcGIS.Controls.ISymbologyStyleClass()
symbologyStyleClass = AxSymbologyControl1.GetStyleClass(AxSymbologyControl1.StyleClass)
Dim picture As ESRI.ArcGIS.Controls.ISymbologyStyleClass()
picture = symbologyStyleClass.PreviewItem(m_styleGalleryItem, PictureBox1.Width, PictureBox1.Height)
Dim image As System.Drawing.Image
image = System.Drawing.Image.FromHbitmap(New System.IntPtr(picture.Handle))
PictureBox1.Image = image
End Sub
这段代码中红色部分提示说previewItem和Handle不是system.array的成员。
请问下这是怎么解决呢?
没有添加stdole项目
添加stdole这个引用试试~~