Visual-WebGui上的Picturebox错误 [英] Picturebox error at Visual-WebGui

查看:93
本文介绍了Visual-WebGui上的Picturebox错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好..

想在visual webgui中使用windows.form.picturebox。

谁能告诉我如何使用它?

它显示我的错误。

当我在webgui表单上添加windows picturebox时它不会在设计时显示

当我使用webgui picturebox它不像windows一样工作picutrebox



Error1

无法从System.Windows.Forms.PictureBox转换为Gizmox.WebGUI.Forms.Control

错误2

''Gizmox.WebGUI.Forms.Control.ControlCollection.Add(Gizmox.WebGUI.Forms.Control)''的最佳重载方法匹配有一些

thanx .. :)

hello..
want to use windows.form.picturebox in visual webgui.
can anybody tell me how to use it?
it is showing me error.
When i m adding windows picturebox on webgui form it is not displaying at design time only
and when i m using webgui picturebox it doesnt work like windows picutrebox

Error1
cannot convert from System.Windows.Forms.PictureBox toGizmox.WebGUI.Forms.Control
Error2
The best overloaded method match for ''Gizmox.WebGUI.Forms.Control.ControlCollection.Add(Gizmox.WebGUI.Forms.Control)'' has some
thanx..:)

推荐答案

导入Gizmox.WebGUI.Forms

导入Gizmox.WebGUI.Common.Resources



Public Class Form1

Sub New()



''Windows需要此通话表单设计器。

InitializeComponent()


''在InitializeComponent()调用后添加任何初始化。



结束子



Private Sub Form1_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)Handles MyBase.Load

Dim rh As ImageResourceHandle = New ImageResourceHandle

rh。 File =AboutVWGLogo.jpg



Dim pb作为PictureBox =新PictureBox

pb.Dock = DockStyle.Fill

pb.Image = rh



Dim uc As UserControl = New UserControl

uc.Dock = DockStyle.Fill

uc.Controls.Add(pb)



Me.Controls.Add(uc)



End Sub

End Class
Imports Gizmox.WebGUI.Forms
Imports Gizmox.WebGUI.Common.Resources

Public Class Form1
Sub New()

'' This call is required by the Windows Form Designer.
InitializeComponent()

'' Add any initialization after the InitializeComponent() call.

End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim rh As ImageResourceHandle = New ImageResourceHandle
rh.File = "AboutVWGLogo.jpg"

Dim pb As PictureBox = New PictureBox
pb.Dock = DockStyle.Fill
pb.Image = rh

Dim uc As UserControl = New UserControl
uc.Dock = DockStyle.Fill
uc.Controls.Add(pb)

Me.Controls.Add(uc)

End Sub
End Class


这篇关于Visual-WebGui上的Picturebox错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆