Injector error when trying to build.

Posts 12 of 2 · Page 1 of 1
Injector error when trying to build.
Please place Help Request as the prefix, I forgot.

Currently I have been working on a personal injector and bumped into what I have brought down to 2 errors that I can't seem to fix. Help would be appreciated .
The first error says Declaration expected and it has this line InjectButton.Enabled = false and radiobutton1.checked = true with InjectButon highlighted.
The second error says Error 2 Value of type 'String' cannot be converted to 'System.Windows.Forms.TextBox'. C:\Users\Owner\Desktop\Furry Inject\Furry Inject\Form1.Designer.vb 312 16 (my injectors name here)
and has the line Path = OpenFileDialog.FileName with OpenFileDialog.FileName highlighted.
I am building this in Visual Studio 2012.
First error..
You'l need to put InjectButton.Enabled = false and radiobutton1.checked = true inside a function or a method.
Not like this
Code:
Public Class Form1
    InjectButton.Enabled = False
End Class
Maybe more like
Code:
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
        InjectButton.Enabled = False
    End Sub
Of just enable/disable it from the properties.

The other error..
My guess is you called your textbox *Path*
Code:
Path.Text = OpenFileDialog.FileName
See if any of this helps.
Posts 12 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?