Click here to Skip to main content
15,888,610 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx15-Jan-16 7:13
professionaljkirkerx15-Jan-16 7:13 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Wombaticus15-Jan-16 7:38
Wombaticus15-Jan-16 7:38 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx15-Jan-16 9:00
professionaljkirkerx15-Jan-16 9:00 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
Wombaticus16-Jan-16 7:22
Wombaticus16-Jan-16 7:22 
GeneralRe: Thread vs Task, seeking advice before I write code, design point of view. Pin
jkirkerx17-Jan-16 6:59
professionaljkirkerx17-Jan-16 6:59 
QuestionHow to alert checked items from checkedlistbox Pin
Daniel Elmnas11-Jan-16 2:46
Daniel Elmnas11-Jan-16 2:46 
AnswerRe: How to alert checked items from checkedlistbox Pin
Richard Deeming11-Jan-16 3:57
mveRichard Deeming11-Jan-16 3:57 
QuestionWindows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx9-Jan-16 13:29
professionaljkirkerx9-Jan-16 13:29 
So I have a Windows Form Program that writes a serializable class to a binary file, to store SMTP server information. The goal is to store data that both program can use. One program writes the data and the other program, the service consumes the data.

I tried registry, but since the Windows Form program runs as a user, and not a service account, I can't really access the correct registry key in HKEY_CURRENT_USERS.

So I thought, OK, I'll write the data to a file, so the service can read it. But after hours of trying to learn how to debug OnStart, and finally able to do it, the service can't read the file that the Windows Form app wrote, a security issue; versions don't match.

So now I tried moving the Serializable class to the 3rd program, the web service, and placing it there. Figuring that the 2 program can just use the class in the Service Reference for the Web Service. Only the serializable class won't publish unless I use it in the Web Service.

I read there was a way to use Version1Type, and Version2Type so that several programs can share the data files, but it doesn't seem to exist in System.Runtime.Serialization.

I guess I could write a XML file, but that's a lot of work. I really like the binary data file. But can't figure out how to match the versions. I'm using 4.5

AnswerRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Dave Kreskowiak9-Jan-16 18:17
mveDave Kreskowiak9-Jan-16 18:17 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 7:33
professionaljkirkerx10-Jan-16 7:33 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Dave Kreskowiak10-Jan-16 7:41
mveDave Kreskowiak10-Jan-16 7:41 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 9:40
professionaljkirkerx10-Jan-16 9:40 
AnswerRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Eddy Vluggen10-Jan-16 4:51
professionalEddy Vluggen10-Jan-16 4:51 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 7:38
professionaljkirkerx10-Jan-16 7:38 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
Eddy Vluggen10-Jan-16 11:11
professionalEddy Vluggen10-Jan-16 11:11 
GeneralRe: Windows service and a Form program, serializing data stored in a file, shared between the 2 programs Pin
jkirkerx10-Jan-16 13:27
professionaljkirkerx10-Jan-16 13:27 
AnswerI merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
jkirkerx10-Jan-16 13:35
professionaljkirkerx10-Jan-16 13:35 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
Eddy Vluggen11-Jan-16 5:50
professionalEddy Vluggen11-Jan-16 5:50 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
jkirkerx11-Jan-16 6:23
professionaljkirkerx11-Jan-16 6:23 
GeneralRe: I merged all my common stuff into a common DLL, and got a Access denied from the folder, and not the file Pin
Eddy Vluggen11-Jan-16 8:46
professionalEddy Vluggen11-Jan-16 8:46 
Answer[Solved] Finally got it to work Pin
jkirkerx12-Jan-16 8:31
professionaljkirkerx12-Jan-16 8:31 
QuestionForm Close Pin
dha NAA8-Jan-16 0:10
dha NAA8-Jan-16 0:10 
AnswerRe: Form Close Pin
Richard MacCutchan8-Jan-16 1:18
mveRichard MacCutchan8-Jan-16 1:18 
Questionvb.net Pin
Basva Hossalli6-Jan-16 3:06
Basva Hossalli6-Jan-16 3:06 
AnswerRe: vb.net Pin
Richard MacCutchan6-Jan-16 3:17
mveRichard MacCutchan6-Jan-16 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.