Please support our VB.NET advertiser: Programming Forums
Views: 6930 | Replies: 15
![]() |
•
•
Join Date: Apr 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
hi im quite new to vb.net and was wondering whether you know how i could print pictures stored in a file with vb.net?
thanks
thanks
•
•
•
•
Originally Posted by Tekmaven
The varient datatype equivlent in VB.NET is Object.
Here's a sample:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyVar as Object
MyVar = "Hello"
MyVar = 10 + 10
MyVar += 50
MyVar = New FileStream("c:\test.txt", FileMode.Open)
MyVar = Nothing
End Sub
You can set basically anything to it :-). I don't reccomend using this type often, it takes lots of memory.
Also, you may want to set your variable equal to nothing when your finished with it, just in case the GC dosen't get to it fast enough.
VC++.NET compiles to MSIL or standard machine code. You can set it in the project properties. (The /clr switch)
-Ryan Hoffman
ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Don't embed your password into your app; it's very bad practice. What if the password changes? You'd need to recompile every time..
-Ryan Hoffman
ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode