Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Namespace 1

Status
Not open for further replies.

Akart

IS-IT--Management
Nov 14, 2002
71
0
0
AU
Hiya,

I am lost. I am trying to get an example from the vb.net help text to work. part of it is as follows:

Protected Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Dim myStream As Stream
Dim openFileDialog1 As New OpenFileDialog()
End Sub

However Stream is not defined.
The example says i will need the system.io namespace.
How do i reference the namespace in my form class code? =)

Regards,

Akart
 
Hi
I think you can do "Dim myStream As System.IO.Stream" and that should work.
Alternatively, if i'm not wrong, you can put "Imports System.IO" at the top of the module, outside the Sub declarations

hope this helps
LFCfan
 
Thanks for that.
I am still trying to get a handle on inherits, imports etc.
This helps alot.

Regards,

Akart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top