Hi i'm trying to use my.computer.printers.defaultprinter
but i get an error telling me that "printers is not a member of System.My.MyComputer"
Here's my code
of course there should be more inside the with-statement, but i haven't gotten to that yet.
and at the top of the page i have in the declarations
What's wrong?
I'm pretty new to VB2005 so please don't bite my head of if it's a real simple error.
/jonas
but i get an error telling me that "printers is not a member of System.My.MyComputer"
Here's my code
VB.NET:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
With My.Computer.printers.defaultprinter
End With
End Sub
and at the top of the page i have in the declarations
VB.NET:
Imports System.Drawing
Imports System.Drawing.Printing
What's wrong?
I'm pretty new to VB2005 so please don't bite my head of if it's a real simple error.
/jonas