Click here to Skip to main content
16,017,137 members
Home / Discussions / C#
   

C#

 
Questionc# procedure Pin
Jassim Rahma26-Aug-05 10:39
Jassim Rahma26-Aug-05 10:39 
AnswerRe: c# procedure Pin
Colin Angus Mackay26-Aug-05 11:24
Colin Angus Mackay26-Aug-05 11:24 
GeneralRe: c# procedure Pin
Jassim Rahma26-Aug-05 12:52
Jassim Rahma26-Aug-05 12:52 
GeneralRe: c# procedure Pin
Dave Kreskowiak26-Aug-05 14:20
mveDave Kreskowiak26-Aug-05 14:20 
GeneralRe: c# procedure Pin
Jassim Rahma26-Aug-05 20:48
Jassim Rahma26-Aug-05 20:48 
GeneralRe: c# procedure Pin
Dave Kreskowiak27-Aug-05 2:59
mveDave Kreskowiak27-Aug-05 2:59 
GeneralRe: c# procedure Pin
Jassim Rahma27-Aug-05 3:38
Jassim Rahma27-Aug-05 3:38 
GeneralRe: c# procedure Pin
Dave Kreskowiak27-Aug-05 8:16
mveDave Kreskowiak27-Aug-05 8:16 
Form_A:
private void mnuNew_Click(object sender, System.EventArgs e)
{
NewEziForm.ShowDialog();
}


Form_B:
frmEziLife EziLifeForm = new frmEziLife();
EziLifeForm.new_record_id = proposalTable.GetInt32("EZI_ID");
EziLifeForm.yahaa();


Just the relevant parts would have been sufficient. Your Form_A creates an instance of Form_B, then shows it using Form_B.ShowDialog(). NOWHERE in your code do you pass the current instance of Form_A to Form_B. This means that Form_B has no way of calling the code on your first (and only) instance of Form_A.

In Form_B, you're creating a NEW instance of Form_A and never showing it. This is the instance that you're calling this Yahaa method on. This is why you can see the changes to the title bar text of the Form_A that you can see.


You have to create a public field on Form_B that takes a Form object. Set that field to Form_A before you call ShowDialog on Form_B. When you call back to the Yahaa method, you have to do it using the instance of the form in your public Form field.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: c# procedure Pin
Jassim Rahma27-Aug-05 8:44
Jassim Rahma27-Aug-05 8:44 
GeneralRe: c# procedure Pin
Dave Kreskowiak28-Aug-05 3:18
mveDave Kreskowiak28-Aug-05 3:18 
GeneralRe: c# procedure Pin
Jassim Rahma28-Aug-05 8:30
Jassim Rahma28-Aug-05 8:30 
GeneralRe: c# procedure Pin
Dave Kreskowiak28-Aug-05 9:36
mveDave Kreskowiak28-Aug-05 9:36 
GeneralRe: c# procedure Pin
Jassim Rahma28-Aug-05 9:48
Jassim Rahma28-Aug-05 9:48 
GeneralRe: c# procedure Pin
Dave Kreskowiak29-Aug-05 1:24
mveDave Kreskowiak29-Aug-05 1:24 
QuestionScrolling TreeView without scrollbars shown. Pin
Blazej Stompel26-Aug-05 9:44
Blazej Stompel26-Aug-05 9:44 
AnswerRe: Scrolling TreeView without scrollbars shown. Pin
Dave Kreskowiak26-Aug-05 14:17
mveDave Kreskowiak26-Aug-05 14:17 
QuestionMSDE 2000 over network Pin
Anonymous26-Aug-05 9:27
Anonymous26-Aug-05 9:27 
AnswerI'm not really anonymous Pin
theStorminMormon26-Aug-05 9:30
theStorminMormon26-Aug-05 9:30 
GeneralRe: I'm not really anonymous Pin
Alomgir Miah26-Aug-05 18:23
Alomgir Miah26-Aug-05 18:23 
QuestionCircle Image Pin
nc3b26-Aug-05 9:18
nc3b26-Aug-05 9:18 
QuestionForce user to submit excel file Pin
t2126-Aug-05 8:00
t2126-Aug-05 8:00 
AnswerRe: Force user to submit excel file Pin
Daniel Turini26-Aug-05 9:04
Daniel Turini26-Aug-05 9:04 
GeneralRe: Force user to submit excel file Pin
t2126-Aug-05 11:15
t2126-Aug-05 11:15 
GeneralRe: Force user to submit excel file Pin
Daniel Turini26-Aug-05 15:27
Daniel Turini26-Aug-05 15:27 
QuestionFilter non-arabic unicode characters from a string Pin
Gulfraz Khan26-Aug-05 7:27
Gulfraz Khan26-Aug-05 7:27 

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.