Jump to content

sending data form2 to form1, set, get, little project, some problems

- - - - -

  • Please log in to reply
1 reply to this topic

#1
mokszyk

mokszyk

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
Hello. I am working on my project few days. Everything was going well except one thing. I don't know what am i doing wrong.

summary: my project idea was to create program which could copy all data from system clipboard, take to txt and save it. And it works! :P However I wanted to make window with settings. And here I have problem. I can't send from Form2 to Form1 a data and assign to another variable. When I open a settings window and click save with another source, the variable isnt sending to form1 and the saving data is to default source :cursing:

--
edit: ok, it works. I also added to form2 while clicking saving button, steamwritter. Unfortunatelly i got access denied to us stream writter. Why?
---
edit: all works :)

Edited by mokszyk, 14 July 2010 - 10:17 AM.

THink positive :)

#2
analysis_junky

analysis_junky

    Newbie

  • Members
  • Pip
  • 9 posts
I'm not sure why you need to use a stream for this.
What I have done in the past is:
Add a public object variable to Form2.
Form2 sets data in the variable, and Form1 can access it with no problems.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users