c# - Hide/show Button at runtime -


I need your help with c # and some graphical problems: I am developing a very simple application. There is a unique form called DeltaPregView, a controller for a form called DelTePCCentroller and the core of the project that contains a class:

main orbit:

  using the system; Using System.Linq; Using System.Collections.Generic; Using System.Windows.Forms; Namespace Deltaprag {Fixed class program {{MTAThread} Fixed Zero Main () {// Make scene DeltaPregView = New DelftPreviewView); // link to see APP application. Play (see); // Start the controller of the App DeltaPregController Controller = New DeltaPregController (see); }}}  

Look for the class:

  using the system; Using System.Linq; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Text; Using System.Windows.Forms; Namespace DestText {Public Partial Segment DeltaPregView: Form {Public DeltaPregView () {InitializeComponent (); } Public Zero init () {prova.Visible = false; }}}  

and for controller view:

  using the system; Using System.Linq; Using System.Collections.Generic; Using System.Text; Namespace DeltapĆ¼rg {Class DeltaPregController {#region variables Private DelftreviewView; #thrionic public deltagenttranslator (deltapeviewview) {this.view = view; // start the reading process (start); } Private Zero Start () {view.init (); }}}  

I would like to hide the button called "prova", but there was no change in my program. I am a newbie in Vanform management, thanks in advance

The problem is that you init < Print the form before calling the / code> function DeltaPregView .

One way to solve them is by changing the rows:

  // Link to view the APP application. opinion); // Start the controller of the App DeltaPregController Controller = New DeltaPregController (see);  

To:

  // APP controller controller DeltaPregController = New DeltaPregController (see); // link to see APP application. Play (see);  

Comments