my application generates forms via writing to a text file and then compiles via vbc, im having trouble adding the button onclick event, im getting errors saying the the method for onclick is incorrect, which it probably is
my app outputs the below code, im not sure what i need in there to make a button method work
thanks
im baffled anyone help?
my app outputs the below code, im not sure what i need in there to make a button method work
thanks
VB.NET:
Imports system.Drawing.color
Imports AxWMPLib.AxWindowsMediaPlayer
Public Class grrrrrr
Shared Sub Main()
Dim temp1 As New System.Drawing.Size
Dim temp As New System.Drawing.point
Dim grrrrrr As New form
grrrrrr.Text = "grrrrrr"
grrrrrr.BackColor =White
grrrrrr.width = 800
grrrrrr.height = 600
Dim image1 As New PictureBox
temp.X =137
temp.Y =42
image1.Location = temp
temp1.width = 490
temp1.height = 262
image1.Size = temp1
image1.Parent = grrrrrr
image1.ImageLocation ="C:\Documents and Settings\halo9\My Documents\Visual Studio 2005\Projects\Multimedia Authoring
System\bin\media\Image\glory1.jpg"
image1.SizeMode = PictureBoxSizeMode.StretchImage
Dim button1 As New Button
temp.X =135
temp.Y =310
Button1.Location = temp
temp1.width = 491
temp1.height = 85
Button1.Size = temp1
Button1.Parent = grrrrrr
Button1.backColor = red
Dim hs1 As New Button
temp.X =482
temp.Y =410
hs1.Location = temp
temp1.width = 143
temp1.height = 65
hs1.Size = temp1
hs1.Parent = grrrrrr
hs1.backColor = Transparent
hs1.foreColor = Transparent
hs1.flatstyle = FlatStyle.Flat
grrrrrr.Showdialog()
end sub
Shared Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("2.exe")
me.close
End Sub
end Class
im baffled anyone help?