| | |
Anyone a VB.NET Guru?
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2004
Posts: 3
Reputation:
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
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.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
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
![]() |
Similar Threads
- .NET Guru Team is available soon. (Project Partners Wanted)
- Looking for a .NET guru! (Software Development Job Offers)
Other Threads in the VB.NET Forum
- Previous Thread: Saving Images In Database
- Next Thread: Changeing Font Based on Reg Settings
| Thread Tools | Search this Thread |
.net .net2008 2008 access add advanced application array basic beginner browser button buttons center click code combo cpu cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic employees excel exists fade filter forms generatetags html images input intel internet listview map mobile module monitor msaccess mysql net number objects open pan panel pdf picturebox picturebox2 port position print printing printpreview regex remove reuse right-to-left save search searchvb.net serial settings shutdown socket sqldatbase sqlserver storedprocedure survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winforms wpf wrapingcode xml year





