Click here to Skip to main content
15,926,281 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralC# .Net print/write form question Pin
Rabbit1729-Jul-05 11:42
Rabbit1729-Jul-05 11:42 
GeneralRe: C# .Net print/write form question Pin
S. Senthil Kumar29-Jul-05 23:15
S. Senthil Kumar29-Jul-05 23:15 
GeneralRe: C# .Net print/write form question Pin
Rabbit1730-Jul-05 8:12
Rabbit1730-Jul-05 8:12 
GeneralRe: C# .Net print/write form question Pin
S. Senthil Kumar31-Jul-05 4:04
S. Senthil Kumar31-Jul-05 4:04 
GeneralRe: C# .Net print/write form question Pin
Rabbit1731-Jul-05 7:19
Rabbit1731-Jul-05 7:19 
GeneralRe: C# .Net print/write form question Pin
S. Senthil Kumar31-Jul-05 8:41
S. Senthil Kumar31-Jul-05 8:41 
GeneralRe: C# .Net print/write form question Pin
Rabbit171-Aug-05 11:13
Rabbit171-Aug-05 11:13 
GeneralRe: C# .Net print/write form question Pin
S. Senthil Kumar1-Aug-05 18:31
S. Senthil Kumar1-Aug-05 18:31 
Rabbit17 wrote:
public void printDecision()
{
MainForm dummy;
dummy = new MainForm();
dummy.MainForm_UpdateText();
}


This is not going to work. You're creating a new instance of MainForm, so changing the textbox value in that form is not going to reflect in the original form. You need to have some property exposed by MyApp, that is set in the MainForm's constructor (see my previous post). You'll then call MainForm_UpdateText() on that instance, which will do what you want.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
General"Simple" Form Output question Pin
Rabbit1729-Jul-05 5:41
Rabbit1729-Jul-05 5:41 
GeneralRe: "Simple" Form Output question Pin
Not Active29-Jul-05 11:45
mentorNot Active29-Jul-05 11:45 
GeneralRe: "Simple" Form Output question Pin
Rabbit1730-Jul-05 8:02
Rabbit1730-Jul-05 8:02 
GeneralRe: "Simple" Form Output question Pin
Dave Kreskowiak1-Aug-05 15:23
mveDave Kreskowiak1-Aug-05 15:23 
GeneralAutomatically Create Dial Up During Setup Pin
Guyver197828-Jul-05 23:18
Guyver197828-Jul-05 23:18 
General.net remoting in vb.net Pin
dap_qk28-Jul-05 16:43
dap_qk28-Jul-05 16:43 
QuestionStrange ArrayList behavior? Pin
Jon Rista28-Jul-05 8:18
Jon Rista28-Jul-05 8:18 
AnswerRe: Strange ArrayList behavior? Pin
Dan Neely28-Jul-05 9:08
Dan Neely28-Jul-05 9:08 
AnswerRe: Strange ArrayList behavior? Pin
S. Senthil Kumar28-Jul-05 9:24
S. Senthil Kumar28-Jul-05 9:24 
GeneralRe: Strange ArrayList behavior? Pin
Jon Rista28-Jul-05 10:47
Jon Rista28-Jul-05 10:47 
GeneralRe: Strange ArrayList behavior? Pin
S. Senthil Kumar29-Jul-05 0:14
S. Senthil Kumar29-Jul-05 0:14 
GeneralRe: Strange ArrayList behavior? Pin
Scott Serl29-Jul-05 14:10
Scott Serl29-Jul-05 14:10 
GeneralRe: Strange ArrayList behavior? Pin
Robert Rohde29-Jul-05 20:49
Robert Rohde29-Jul-05 20:49 
GeneralRe: Strange ArrayList behavior? Pin
Scott Serl29-Jul-05 22:32
Scott Serl29-Jul-05 22:32 
GeneralRe: Strange ArrayList behavior? Pin
Robert Rohde29-Jul-05 20:50
Robert Rohde29-Jul-05 20:50 
GeneralRe: Strange ArrayList behavior? Pin
S. Senthil Kumar29-Jul-05 23:12
S. Senthil Kumar29-Jul-05 23:12 
GeneralRe: Strange ArrayList behavior? Pin
Robert Rohde30-Jul-05 3:42
Robert Rohde30-Jul-05 3:42 

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.