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

.NET (Core and Framework)

 
GeneralRe: Config file for dll. Is it possible? Pin
ekacho1-Aug-05 19:14
ekacho1-Aug-05 19:14 
GeneralPocketPC-Open Bitmap file issue Pin
Sevugan31-Jul-05 22:34
Sevugan31-Jul-05 22:34 
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 
Rabbit17 wrote:
public void printDecision()
{
mainform.MainForm_UpdateText();
}


But where has mainform been assigned to an instance of MainForm? That's where your problem is, you need to somehow pass an instance of MainForm to MainApp, if you want to call methods/properties on MainForm. I'd suggest adding a property to MainApp, something like
class MainApp
{
  public static Form MainForm
  {
     set { mainForm = value; }
  }

}

class MainForm
{
  ...
  public MainForm()
  {
    ...
    MainApp.MainForm = this;
  }
}


Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
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 
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 

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.