TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
naveen
NA
54
77.6k
Why stack overflow exception occurs when i change file name of a .cs file before debugging?
Sep 1 2010 4:25 AM
Hi all ,
I had a .cs file like comboboxControl.cs and wrote code and it debugged correctly.
But after i changed the name from combobox.cs,when i debugged it gave an error before initialize component and said some Stackoverflow error occured .what should i do to rectify these errors.
Below is my code,where it gave error
namespace DynamicButtonControl
{
public partial class ComboBox : Form
{
public ComboBox()
-->
Here i got Stackoverflow exception ERROR while debugging ,after changing file name alone
.
{
InitializeComponent();
createDynamicComboBox();
}
private void createDynamicComboBox()
{
ComboBox combo1 = new ComboBox();
combo1.Location = new System.Drawing.Point(30, 70);
combo1.Name = "comboBOX1";
combo1.Size = new System.Drawing.Size(200, 30);
combo1.BackColor = System.Drawing.Color.Orange;
combo1.ForeColor = System.Drawing.Color.Black;
Controls.Add(combo1);
}
}
}
thanks in advance
Reply
Answers (
9
)
Does C# corner has excellent BEGINNERS articles for C# - SQL 2005 like it has C# Beginners page ?
Progress bar