Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - How to pass a structure to a form subroutine

Reply
 
Old 05-05-2009   #1 (permalink)
Young


 
 

How to pass a structure to a form subroutine

I've the following structure:

Structure MyStruct
Dim x As String
Dim y As String
End Structure

In one of my form (Form1), I have this sub:

Sub Test(byref XXX as MyStruct)

.......

end sub

I then try to pass in the structure by doing this:

Dim mmm as MyStruct
Form1.Text(mmm)

The above caused an error when in the Sub declaration:

This is the error: XXX cannot expose type MyStruct outside the project through class Form1

Can someone please help?

TIA
Young

My System SpecsSystem Spec
Old 05-05-2009   #2 (permalink)
Cor Ligthert[MVP]


 
 

Re: How to pass a structure to a form subroutine

Young,

Do you have some documentation about the syntax you use here,

I never saw it, and therefore I am curious how to use this

I know the Text property as the property that shows the name of a form, it
is simple a String, I don't know it as an array, type or collection.

Form1.Text(mmm)

Cor


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
ASP.Net directory structure .NET General
File structure inconsistent Vista file management
folder structure?? Vista file management
Old Disc structure. Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46