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
Soumya Surendran
NA
170
0
How to find out active form
May 7 2011 5:23 AM
hai expert..................
i have opened more than 2 forms. and i wnt the name of active form among them.. i used the following code, bt its not working...plz help me...
for
(
int
iCnt = (
Application
.OpenForms.Count - 1); iCnt >= 0; iCnt--)
{
if
(
Application
.OpenForms[iCnt].Focused ==
true
)
{
sForm_name = Application
.OpenForms[iCnt].Name;
break;
}
}
thanks in advance...............
Reply
Answers (
4
)
Auto Number Generation In C #
printing a pyramid of numbers separated by spaces