Click here to Skip to main content
15,917,456 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
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..:)
Posted
Updated 9-Jul-12 5:33am
v2
Comments
[no name] 9-Jul-12 7:35am    
Do you always SCREAM at people when asking a question?
MAU787 9-Jul-12 7:53am    
who told u i m screaming?
i m asking a questions becoz i have error..
writing in caps lock doesnt mean i m screaming and shouting
sry if anybody feels like that...:(
Sergey Alexandrovich Kryukov 9-Jul-12 9:39am    
It's a matter of Web culture, where ALL-CALS is considered screaming, not very polite thing. And, indeed, read what you have written: don't you feel like that?
--SA
MAU787 9-Jul-12 11:31am    
ok..sry then i will make it all small...:)

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900