PDA

View Full Version : عدم نمایش فرم



saed2006
جمعه 24 آبان 1387, 20:04 عصر
توی برنامه از یک منو استفاده کردم و با کلیک کردن روی یکی از ایتم ها باید فرمی نمایش داده بشه
حالا مشکل اینه که فرم نمایش داده نمیشهو این خطا رو میده

Error 4 'WindowsFormsApplication3.homepage' does not contain a definition for 'ثبتنامهنرجوToolStripMenuItem_Click' and no extension method 'ثبتنامهنرجوToolStripMenuItem_Click' accepting a first argument of type 'WindowsFormsApplication3.homepage' could be found (are you missing a using directive or an assembly reference?)

خطی که برنامه متوقف میشه:
this.ثبتنامهنرجوToolStripMenuItem.Click += new System.EventHandler(this.ثبتنامهنرجوToo lStripMenuItem_Click);

mohammad272005
جمعه 24 آبان 1387, 23:22 عصر
اسم این آیتم از ToolStrip رو به انگلیسی تبدیل کنید و مجددا اقدام به ساخت event handler برای رویداد کلیک بکنید. مسلما درست میشه.