c# - Constructor not found? -
somehow constructor in 1 of classes isnt being found parameters... has experienced this?
here code , how calling it:
movefiles class:
class movefiles { #region variables //variables public string strsrcpath, strdstpath, strfdrname, strnewdestfldrpath = ""; main frm = new main(); #endregion #region constructor //constructor - accepts path , store value private void movefiles(string strsourcepath, string strdestpath, string strfldrname) { strsrcpath = strsourcepath; strdstpath = strdestpath; strfdrname = strfldrname; } #endregion etc....
then here calling it:
//move files based on source path, destination path, , folder name movefiles movefile = new movefiles(strsrcpath, strdestpath, strfoldrname); movefile.startmove();
the place of calling gives me error constructor doesn't take 3 arguments....
anyone have issue , how did fix it? or blind , there sometihng going on there?
replace private void movefiles
public movefiles
Comments
Post a Comment