well, im not a real big VB coder, well not VB6 and earlier, but i have worked with VB 2005 and VB 2008, one simple way is to do a streamwriter and streamreader to the temp directory of the user, or just anywhere, since youre working with two different programmign languages. so like
(to write in VB 2008)
- Dim mystreamwriter As New IO.StreamWriter("mystreamtowritevariable")
-
mystreamwriter.Write("variable(s)/value(s)")
-
mystreamwriter.Flush()
-
mystreamwriter.Close()
and to read it in c sharp,(newer c sharp)
- FileStream MyFileStream = new FileStream(@"c:\Projects\Testing.txt", FileMode.Open, FileAccess.Read, FileShare.None);
-
StreamReader MyStreamReader2 = new StreamReader(MyFileStream);
-
//write any code to read the data into a variable for that form
-
MyFileStream.Close();
-
MyStreamReader2.Close();
*now using this might use lots of resources and require file io permissions, if not in a 'permitted' directory, and not tested. but should work