15,905,607 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Majid Yaghoubi (Top 4 by date)
Majid Yaghoubi
25-Oct-13 17:38pm
View
Deleted
please attention :
There is no code same :
<pre lang="c#">this.component.add(this.Main);</pre>
When i add this line , This error occurred :
Object reference not set to an instance of an object.
Look at this picture
this exception occurred when I build App.
If i add this line :
<pre lang="c#">this.controls.add(this.Main);</pre>
I see 2 Errors in list error :
Error 1
: The best overloaded method match for 'System.Windows.Forms.Control.ControlCollection.Add(System.Windows.Forms.Control)' has some invalid arguments
Error 2 :
Argument 1: cannot convert from 'System.Windows.Forms.ToolStripMenuItem' to 'System.Windows.Forms.Control'
This is my Designer code about Menu strip (Main):
<pre lang="cs"> this.Main = new System.Windows.Forms.ToolStripMenuItem(); </pre>
And some code for define sub Menus. I'm surprised that Why don't exist menu strip icon under my form in Form.cs[Design] windows.
href="https://skydrive.live.com/redir?resid=B11CDB47B864DBDF!1033&authkey=!APRviPWj-OLxgWg&v=3">Look at this picture
And this
Majid Yaghoubi
25-Oct-13 16:43pm
View
No , There is no error when I build App and My App is run Properly . But Menu strip is not visible . even menu strip is not under my form in Form.cs[Design] windows.
Majid Yaghoubi
25-Oct-13 10:47am
View
no, unfortunately its not work !
Majid Yaghoubi
25-Oct-13 9:21am
View
thx , but where should i write this ?
I add it in Designer.cs but i get this exception :
Object reference not set to an instance of an object.