Monday 15 July 2013

c# - Cannot implicitly convert type 'object' to 'Flashloader.Controller' -


Can anyone help me with it, I do not know what I should do.
This error is:

Error 1 can not change type 'object' to convert to 'flashloader.controller' transformed form a clear conversion (do not you leave an artist ?)

This is my source:

  public partial class new application: form {private toepassinginifile _toepsinginifile; Private ControllerNeifeline_CotrolInfil; // Private Control Indirect _controlIniFile; Public toepassing toepassing = new toepassing (); Public nuance (toepassinginifile iniFile) {_toepassinginifile = iniFile; _Constroliren = new controller (); ControllerCabobox Data source = _controllerinifile.controllers; InitializeComponent (); } Private Zero Button 4_Click (Object Sender, EventArgs e) {this.Close (); } Private Zero Button 1_Click (Object Sender, EventGurge E) {openFileDialog1.filter = "Srec Files (. A20; A21; A26; .44). *. A20; * .a21; * .a26; * .a44 | All Files (*. *) | *. * "; OpenFileDialog1.Title = ("Choose a file"); OpenFileDialog1.InitialDirectory = Path.Combine (Directory.GetCurrentDirectory ()); OpenFileDialog1.RestoreDirectory = True; If (openfileDialog1.ShowDialog () == DialogResult.OK) {fileBox.Text = (System.IO.Path.GetFileName (openFileDialog1.FileName)); }} Private Zero Button 3_Click (Object Sender, EventArgs e) {toepassing.Name = nameBox.Text; ---- & gt; # Toepassing.Controller = ControlCystemBox Selected ITem; # Toepassing.TabTip = descBox.Text; Toepassing.Lastfile = openFileDialog1.FileName; FileBox.Text = openFileDialog1.FileName; If (nameBox.Text == "") MessageBox.Show ("You have not appointed a name"); Else if (Controller Cambodobox text == "") MessageBox.Show ("You have not assigned a controller"); Else if (descBox.Text == "") MessageBox.Show ("You have not assigned a Desciption"); Else if (fileBox.Text == "") MessageBox.Show ("You have not assigned an applicationfile"); _toepassinginifile.ToePassingen.Add (toepassing); _toepassinginifile.Save (); MessageBox.Show ("Save Safe"); This.Close (); }}   

How can I fix this, this problem could not be found because I want to add my Compassbox to my INI file and for that function I have all but Somehow I'm getting this error.

As an error message, write a clear conversion:

  Toepassing.Controller = (Flashloader.Controller) ControlSubabox Selected item;    

No comments:

Post a Comment