Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to find out active form
Soumya Surendran
May 7 2011 5:23 AM
2.3k
Reply
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...............
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Auto Number Generation In C #
printing a pyramid of numbers separated by spaces