Click here to Skip to main content
15,920,708 members
Home / Discussions / C#
   

C#

 
AnswerRe: Grouping Radio Buttons Pin
da vinci coder13-Nov-05 12:03
da vinci coder13-Nov-05 12:03 
QuestionReadOnly Radio Button? Pin
rich_wenger12-Nov-05 8:25
rich_wenger12-Nov-05 8:25 
AnswerRe: ReadOnly Radio Button? Pin
Colin Angus Mackay12-Nov-05 8:28
Colin Angus Mackay12-Nov-05 8:28 
GeneralRe: ReadOnly Radio Button? Pin
rich_wenger12-Nov-05 12:03
rich_wenger12-Nov-05 12:03 
GeneralRe: ReadOnly Radio Button? Pin
Kamrul Hasan12-Nov-05 22:42
Kamrul Hasan12-Nov-05 22:42 
GeneralRe: ReadOnly Radio Button? Pin
rich_wenger13-Nov-05 3:13
rich_wenger13-Nov-05 3:13 
GeneralRe: ReadOnly Radio Button? Pin
Dan Neely14-Nov-05 2:10
Dan Neely14-Nov-05 2:10 
GeneralRe: ReadOnly Radio Button? Pin
rich_wenger14-Nov-05 4:50
rich_wenger14-Nov-05 4:50 
GeneralRe: ReadOnly Radio Button? Pin
Kamrul Hasan14-Nov-05 6:24
Kamrul Hasan14-Nov-05 6:24 
GeneralRe: ReadOnly Radio Button? Pin
rich_wenger14-Nov-05 8:44
rich_wenger14-Nov-05 8:44 
GeneralRe: ReadOnly Radio Button? Pin
Kamrul Hasan15-Nov-05 2:12
Kamrul Hasan15-Nov-05 2:12 
QuestionHaving problems with getting current username in Windows... Pin
VampireLord12-Nov-05 7:35
VampireLord12-Nov-05 7:35 
AnswerRe: Having problems with getting current username in Windows... Pin
Colin Angus Mackay12-Nov-05 8:12
Colin Angus Mackay12-Nov-05 8:12 
GeneralRe: Having problems with getting current username in Windows... Pin
VampireLord12-Nov-05 8:20
VampireLord12-Nov-05 8:20 
GeneralRe: Having problems with getting current username in Windows... Pin
Colin Angus Mackay12-Nov-05 8:27
Colin Angus Mackay12-Nov-05 8:27 
GeneralRe: Having problems with getting current username in Windows... Pin
VampireLord12-Nov-05 8:43
VampireLord12-Nov-05 8:43 
GeneralRe: Having problems with getting current username in Windows... Pin
Colin Angus Mackay12-Nov-05 11:35
Colin Angus Mackay12-Nov-05 11:35 
AnswerRe: Having problems with getting current username in Windows... Pin
Michael P Butler12-Nov-05 8:57
Michael P Butler12-Nov-05 8:57 
GeneralRe: Having problems with getting current username in Windows... Pin
VampireLord12-Nov-05 23:44
VampireLord12-Nov-05 23:44 
QuestionRemoving empty attributes in xmldocument Pin
kerberos_prozac12-Nov-05 7:19
kerberos_prozac12-Nov-05 7:19 
AnswerRe: Removing empty attributes in xmldocument Pin
kerberos_prozac15-Nov-05 6:21
kerberos_prozac15-Nov-05 6:21 
Questionactive form name problems.. Pin
da vinci coder12-Nov-05 6:08
da vinci coder12-Nov-05 6:08 
ok my problem is..

when i enter this code inside the load event it returns the name of the form opened before this form..

private void editForm_Load(object sender, System.EventArgs e)
{
MessageBox.Show(ActiveForm.Name.ToString());
}

which returns AdminPanel ( which is the previous form ) but what i want is to see editForm ( which is the form i'm currently opening )

i know its because the form is loading and thats why the currently activeform is AdminPanel but i need to see editForm because:

i have a listbox which gets data from mssql and puts the data to listbox, and someforms of i use are inherited from editForm so while this editForm is loading i want to fetch the data from the unique table so i can see the datas in the listbox after the form is loaded

so my code should be something like this..

private void editForm_Load(object sender, System.EventArgs e)
{
Classes.editClass eC = new HalkDanisv03.Classes.editClass(); // create new object

if(ActiveForm.Name.ToString() == "editEmployee")
{
eC.getStaffUsername(xList,"employeeinfo"); // employeeinfo is the name of the tablename
}
else if(ActiveForm.Name.ToString() == "editManager")
{
eC.getStaffUsername(xList,"managerinfo"); //managerinfo is the name of the tablename
}

}

any help would be great..
thx guys..
good coding
AnswerRe: active form name problems.. Pin
turbochimp12-Nov-05 6:41
turbochimp12-Nov-05 6:41 
GeneralRe: active form name problems.. Pin
da vinci coder12-Nov-05 6:44
da vinci coder12-Nov-05 6:44 
AnswerRe: active form name problems.. Pin
Dave Kreskowiak12-Nov-05 15:33
mveDave Kreskowiak12-Nov-05 15:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.