Click here to Skip to main content
15,895,011 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: .Net and touch screens Pin
JoeSox30-May-08 12:44
JoeSox30-May-08 12:44 
AnswerRe: .Net and touch screens Pin
Christian Graus31-May-08 1:22
protectorChristian Graus31-May-08 1:22 
QuestionAdd buttons at runtime Pin
Cory Kimble30-May-08 5:33
Cory Kimble30-May-08 5:33 
AnswerRe: Add buttons at runtime Pin
Steven J Jowett30-May-08 5:53
Steven J Jowett30-May-08 5:53 
AnswerRe: Add buttons at runtime Pin
Rob Smiley30-May-08 12:05
Rob Smiley30-May-08 12:05 
QuestionFinding the length of the second dimension of an array in Visual Basic 6.0 Pin
Eric Burns30-May-08 4:54
Eric Burns30-May-08 4:54 
AnswerRe: Finding the length of the second dimension of an array in Visual Basic 6.0 Pin
Dave Kreskowiak31-May-08 2:48
mveDave Kreskowiak31-May-08 2:48 
QuestionActivex Web Control Pin
Member 426163330-May-08 4:00
Member 426163330-May-08 4:00 
Hello all I am putting together a active x web control following this guide.. http://www.vbdotnetheaven.com/UploadFile/dsandor/ActiveXControlInVBdotNET04112005081747AM/ActiveXControlInVBdotNET.aspx below is a snippet of my code

<code>
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports sharpPDF

Namespace ActiveXDotNet

Public Interface AxMyControl
'Property orderids() As String
End Interface 'AxMyControl

Public Class myControl
Inherits System.Windows.Forms.UserControl
'Private mStr_orderid As String
'Public Property orderids() As String
' Get
' Return mStr_orderid
' End Get
' Set(ByVal Value As String)
' mStr_orderid = Value
' 'Update the text box control value also.
' orderid.Text = Value
' End Set
'End Property
'UserControl overrides dispose to clean up the component list.
&lt;System.Diagnostics.DebuggerNonUserCode()&gt; _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
#Region "systemcode"
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
&lt;System.Diagnostics.DebuggerStepThrough()&gt; _
Private Sub InitializeComponent()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(myControl))
Me.tabcontrol = New System.Windows.Forms.TabControl
Me.TabPage1 = New System.Windows.Forms.TabPage
Me.Button2 = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.TabPage2 = New System.Windows.Forms.TabPage
Me.Button3 = New System.Windows.Forms.Button
Me.Button4 = New System.Windows.Forms.Button
Me.TextBox2 = New System.Windows.Forms.TextBox
Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
Me.MovablePictureBox1 = New movablepicturebox.MovablePictureBox
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.bMovablePictureBox2 = New movablepicturebox.MovablePictureBox
Me.PictureBox2 = New System.Windows.Forms.PictureBox
Me.PrintDocument1 = New System.Drawing.Printing.PrintDocument
Me.PrintPreviewDialog1 = New System.Windows.Forms.PrintPreviewDialog
Me.tabcontrol.SuspendLayout()
Me.TabPage1.SuspendLayout()
Me.TabPage2.SuspendLayout()
CType(Me.MovablePictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.bMovablePictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'tabcontrol
'
Me.tabcontrol.Alignment = System.Windows.Forms.TabAlignment.Right
Me.tabcontrol.Controls.Add(Me.TabPage1)
Me.tabcontrol.Controls.Add(Me.TabPage2)
Me.tabcontrol.Location = New System.Drawing.Point(461, 3)
Me.tabcontrol.Multiline = True
Me.tabcontrol.Name = "tabcontrol"
Me.tabcontrol.SelectedIndex = 0
Me.tabcontrol.Size = New System.Drawing.Size(278, 152)
Me.tabcontrol.TabIndex = 1
'
'TabPage1
'
Me.TabPage1.BackColor = System.Drawing.Color.White
Me.TabPage1.Controls.Add(Me.Button2)
Me.TabPage1.Controls.Add(Me.Button1)
Me.TabPage1.Controls.Add(Me.TextBox1)
Me.TabPage1.Location = New System.Drawing.Point(4, 4)
Me.TabPage1.Name = "TabPage1"
Me.TabPage1.Padding = New System.Windows.Forms.Padding(3)
Me.TabPage1.Size = New System.Drawing.Size(251, 144)
Me.TabPage1.TabIndex = 0
Me.TabPage1.Text = "Front"
'
'Button2
'
Me.Button2.Location = New System.Drawing.Point(6, 77)
Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(75, 23)
Me.Button2.TabIndex = 2
Me.Button2.Text = "Button2"
Me.Button2.UseVisualStyleBackColor = True
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(115, 38)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(75, 23)
Me.Button1.TabIndex = 1
Me.Button1.Text = "Button1"
Me.Button1.UseVisualStyleBackColor = True
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(6, 38)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(100, 20)
Me.TextBox1.TabIndex = 0
'
'TabPage2
'
Me.TabPage2.BackColor = System.Drawing.Color.White
Me.TabPage2.Controls.Add(Me.Button3)
Me.TabPage2.Controls.Add(Me.Button4)
Me.TabPage2.Controls.Add(Me.TextBox2)
Me.TabPage2.Location = New System.Drawing.Point(4, 4)
Me.TabPage2.Name = "TabPage2"
Me.TabPage2.Padding = New System.Windows.Forms.Padding(3)
Me.TabPage2.Size = New System.Drawing.Size(251, 144)
Me.TabPage2.TabIndex = 1
Me.TabPage2.Text = "Back"
'
'Button3
'
Me.Button3.Location = New System.Drawing.Point(6, 77)
Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(75, 23)
Me.Button3.TabIndex = 5
Me.Button3.Text = "Button3"
Me.Button3.UseVisualStyleBackColor = True
'
'Button4
'
Me.Button4.Location = New System.Drawing.Point(115, 38)
Me.Button4.Name = "Button4"
Me.Button4.Size = New System.Drawing.Size(75, 23)
Me.Button4.TabIndex = 4
Me.Button4.Text = "Button4"
Me.Button4.UseVisualStyleBackColor = True
'
'TextBox2
'
Me.TextBox2.Location = New System.Drawing.Point(6, 38)
Me.TextBox2.Name = "TextBox2"
Me.TextBox2.Size = New System.Drawing.Size(100, 20)
Me.TextBox2.TabIndex = 3
'
'OpenFileDialog1
'
Me.OpenFileDialog1.FileName = "OpenFileDialog1"
'
'MovablePictureBox1
'
Me.MovablePictureBox1.BackColor = System.Drawing.SystemColors.ActiveCaptionText
Me.MovablePictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.MovablePictureBox1.Location = New System.Drawing.Point(103, 86)
Me.MovablePictureBox1.Name = "MovablePictureBox1"
Me.MovablePictureBox1.Size = New System.Drawing.Size(253, 387)
Me.MovablePictureBox1.StayWithinParentBounds = False
Me.MovablePictureBox1.TabIndex = 2
Me.MovablePictureBox1.TabStop = False
Me.MovablePictureBox1.Visible = False
'
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(0, 0)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(458, 519)
Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.PictureBox1.TabIndex = 3
Me.PictureBox1.TabStop = False
'
'bMovablePictureBox2
'
Me.bMovablePictureBox2.BackColor = System.Drawing.SystemColors.ActiveCaptionText
Me.bMovablePictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.bMovablePictureBox2.Image = CType(resources.GetObject("bMovablePictureBox2.Image"), System.Drawing.Image)
Me.bMovablePictureBox2.Location = New System.Drawing.Point(103, 86)
Me.bMovablePictureBox2.Name = "bMovablePictureBox2"
Me.bMovablePictureBox2.Size = New System.Drawing.Size(185, 48)
Me.bMovablePictureBox2.StayWithinParentBounds = False
Me.bMovablePictureBox2.TabIndex = 4
Me.bMovablePictureBox2.TabStop = False
Me.bMovablePictureBox2.Visible = False
'
'PictureBox2
'
Me.PictureBox2.Image = CType(resources.GetObject("PictureBox2.Image"), System.Drawing.Image)
Me.PictureBox2.Location = New System.Drawing.Point(0, 2)
Me.PictureBox2.Name = "PictureBox2"
Me.PictureBox2.Size = New System.Drawing.Size(458, 519)
Me.PictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.PictureBox2.TabIndex = 5
Me.PictureBox2.TabStop = False
'
'PrintPreviewDialog1
'
Me.PrintPreviewDialog1.AutoScrollMargin = New System.Drawing.Size(0, 0)
Me.PrintPreviewDialog1.AutoScrollMinSize = New System.Drawing.Size(0, 0)
Me.PrintPreviewDialog1.ClientSize = New System.Drawing.Size(400, 300)
Me.PrintPreviewDialog1.Enabled = True
Me.PrintPreviewDialog1.Icon = CType(resources.GetObject("PrintPreviewDialog1.Icon"), System.Drawing.Icon)
Me.PrintPreviewDialog1.Name = "PrintPreviewDialog1"
Me.PrintPreviewDialog1.Visible = False
'
'myControl
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BackColor = System.Drawing.Color.White
Me.Controls.Add(Me.bMovablePictureBox2)
Me.Controls.Add(Me.MovablePictureBox1)
Me.Controls.Add(Me.PictureBox1)
Me.Controls.Add(Me.tabcontrol)
Me.Controls.Add(Me.PictureBox2)
Me.Name = "myControl"
Me.Size = New System.Drawing.Size(739, 520)
Me.tabcontrol.ResumeLayout(False)
Me.TabPage1.ResumeLayout(False)
Me.TabPage1.PerformLayout()
Me.TabPage2.ResumeLayout(False)
Me.TabPage2.PerformLayout()
CType(Me.MovablePictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.bMovablePictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)

End Sub
Friend WithEvents tabcontrol As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents Button2 As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents Button3 As System.Windows.Forms.Button
Friend WithEvents Button4 As System.Windows.Forms.Button
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
Friend WithEvents MovablePictureBox1 As movablepicturebox.MovablePictureBox
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents bMovablePictureBox2 As movablepicturebox.MovablePictureBox
Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox
Friend WithEvents PrintDocument1 As System.Drawing.Printing.PrintDocument
Friend WithEvents PrintPreviewDialog1 As System.Windows.Forms.PrintPreviewDialog
#End Region
Private Sub UserControl1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
InitializeComponent()
End Sub
</code>

However when I try to run this control in a web browser all I get is the missing image icon.. here is my html
<code>&lt;html&gt;
&lt;body color=white&gt;
&lt;hr&gt;
&lt;font face=arial size=1&gt;
&lt;OBJECT id="myControl1" name="myControl1" classid="T-ShirtDesignerControl.dll#ActiveXDotNet.mycontrol" width=739 height=520 VIEWASTEXT&gt;
&lt;/OBJECT&gt;
&lt;/font&gt;
&lt;hr&gt;
&lt;/body&gt;
&lt;/html&gt;</code>

Any help would be much apprechiated I just dont know what I am doing wrong this is the first web activex control I have written..
AnswerRe: Activex Web Control Pin
Christian Graus31-May-08 1:24
protectorChristian Graus31-May-08 1:24 
Questiondatagridview combobox column default value PinPopular
Mr Oizo30-May-08 3:50
Mr Oizo30-May-08 3:50 
AnswerRe: datagridview combobox column default value Pin
Mohammad Al Hoss30-May-08 4:30
Mohammad Al Hoss30-May-08 4:30 
QuestionHow could we open customize ribbon in Access 2007 development mode Pin
ayazhoda30-May-08 3:25
ayazhoda30-May-08 3:25 
QuestionProperties with parameters and databinding Pin
Kevin Brydon30-May-08 3:02
Kevin Brydon30-May-08 3:02 
AnswerRe: Properties with parameters and databinding Pin
Steven J Jowett30-May-08 4:15
Steven J Jowett30-May-08 4:15 
GeneralRe: Properties with parameters and databinding Pin
Kevin Brydon30-May-08 5:21
Kevin Brydon30-May-08 5:21 
QuestionUpgrade to VS 2005 problems Pin
Mohammad Al Hoss30-May-08 3:02
Mohammad Al Hoss30-May-08 3:02 
AnswerRe: Upgrade to VS 2005 problems Pin
Christian Graus31-May-08 1:25
protectorChristian Graus31-May-08 1:25 
QuestionRetrieve audio track informations Pin
Gaddonis30-May-08 1:45
professionalGaddonis30-May-08 1:45 
AnswerRe: Retrieve audio track informations Pin
jzonthemtn30-May-08 3:33
jzonthemtn30-May-08 3:33 
AnswerRe: Retrieve audio track informations Pin
Gaddonis3-Sep-08 1:55
professionalGaddonis3-Sep-08 1:55 
GeneralRe: Retrieve audio track informations Pin
jzonthemtn3-Sep-08 3:25
jzonthemtn3-Sep-08 3:25 
QuestionAccess Database Information Pin
KBou30-May-08 1:33
KBou30-May-08 1:33 
AnswerRe: Access Database Information Pin
jzonthemtn30-May-08 3:22
jzonthemtn30-May-08 3:22 
QuestionDisable Security Setting in outlook 2003 Add in using vb.net 2005 Pin
~Khatri Mitesh~30-May-08 1:28
~Khatri Mitesh~30-May-08 1:28 
AnswerRe: Disable Security Setting in outlook 2003 Add in using vb.net 2005 Pin
Dave Kreskowiak31-May-08 2:38
mveDave Kreskowiak31-May-08 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.