Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
Questionwoking with marshal Pin
iman_kh12-Sep-08 21:24
iman_kh12-Sep-08 21:24 
AnswerRe: woking with marshal Pin
User 665812-Sep-08 22:47
User 665812-Sep-08 22:47 
QuestionCpu temperature Pin
methhoo12-Sep-08 14:49
methhoo12-Sep-08 14:49 
AnswerRe: Cpu temperature Pin
Mark Salsbery12-Sep-08 15:25
Mark Salsbery12-Sep-08 15:25 
QuestionConvering treeView.Nodes to contextMenuStrip.Items? Pin
Mohammad Dayyan12-Sep-08 13:13
Mohammad Dayyan12-Sep-08 13:13 
QuestionGetting HTML source of a frame using the WebBrowser windows form object Pin
Jay Gatsby12-Sep-08 12:19
Jay Gatsby12-Sep-08 12:19 
QuestionI need Help passing data back and forth between Windows forms Pin
chobo212-Sep-08 12:08
chobo212-Sep-08 12:08 
AnswerRe: I need Help passing data back and forth between Windows forms Pin
Jay Gatsby12-Sep-08 12:40
Jay Gatsby12-Sep-08 12:40 
I think I know what you're talking about. let me see if I can help.

Anything in public access space on the popup can be accessed by the main form from wherever the instance of the popup is.

For example. on my main form named form1 I have a button that opens a popup named form2. in the button click event on form1's button I'd have something to the effect of

PopupFormTypenameGoesHere form2 = new PopupFormTypenameGoesHere( params to send et all)
form2.ShowDialogue();
Text = form2.someInfo;

and in form2's close event I'd have

someInfo = "hello world"; // or whatever



This would cause form1's title (ie it's Text property) to be set to "hello world" after the popup had closed (or whatever someInfo was set to in that form)

I hope that helps.

One thing you should be careful with is the usage of Show() and ShowDialogue() - they are NOT interchangeable.

-Gatsby

GeneralRe: I need Help passing data back and forth between Windows forms Pin
nelsonpaixao12-Sep-08 15:02
nelsonpaixao12-Sep-08 15:02 
AnswerRe: I need Help passing data back and forth between Windows forms Pin
DaveyM6913-Sep-08 2:30
professionalDaveyM6913-Sep-08 2:30 
QuestionDataGridViewComboBoxColumn is not showing DisplayMember on moving to other column Pin
nishantkainth12-Sep-08 10:51
nishantkainth12-Sep-08 10:51 
QuestionHow can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 10:16
Mohammad Dayyan12-Sep-08 10:16 
AnswerRe: How can we find WindowState changes ? Pin
User 665812-Sep-08 10:30
User 665812-Sep-08 10:30 
GeneralRe: How can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 10:53
Mohammad Dayyan12-Sep-08 10:53 
GeneralRe: How can we find WindowState changes ? Pin
User 665812-Sep-08 11:17
User 665812-Sep-08 11:17 
GeneralRe: How can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 11:20
Mohammad Dayyan12-Sep-08 11:20 
QuestionCancel event Pin
netJP12L12-Sep-08 9:38
netJP12L12-Sep-08 9:38 
AnswerRe: Cancel event Pin
User 665812-Sep-08 10:26
User 665812-Sep-08 10:26 
QuestionBlackjack help needed Pin
Member 395831212-Sep-08 8:51
Member 395831212-Sep-08 8:51 
AnswerRe: Blackjack help needed Pin
Guffa12-Sep-08 9:08
Guffa12-Sep-08 9:08 
GeneralRe: Blackjack help needed Pin
Member 395831212-Sep-08 9:15
Member 395831212-Sep-08 9:15 
AnswerRe: Blackjack help needed Pin
Robert.C.Cartaino12-Sep-08 9:31
Robert.C.Cartaino12-Sep-08 9:31 
GeneralRe: Blackjack help needed Pin
Member 395831212-Sep-08 9:51
Member 395831212-Sep-08 9:51 
QuestionError: 'Table' does not contain a definition for 'BorderStyle' Pin
A.Asif12-Sep-08 7:57
A.Asif12-Sep-08 7:57 
AnswerRe: Error: 'Table' does not contain a definition for 'BorderStyle' Pin
Guffa12-Sep-08 8:56
Guffa12-Sep-08 8:56 

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.