Thanks for the reply. I have already tried that. It is returning the administrators username when i run the app as "Run as administrator". But i want the system logged on user name.
sireesha_sree
Posts
-
Get default user name when "Run as administrator" -
Get default user name when "Run as administrator"Hi, Am developing a VC++ application where i need to get the username. I have tried using GetUserName() and also USERNAME. But when i run the application on Vista as "Run as administrator", this is returning the admin's username and not the username with which the system is logged in. Any suggestions on how to get the username with which the system is logged in when the application is "Run as administrator"? Thanks
-
Place a dialog in anotherHi all, Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog. Thanks
-
Compare timesHi, I found one function strptime which converts string to time.I have included time.h and string.h header files . Even then i am getting the error 'strptime identifier not found;
-
Compare timesHi, I need to compare times which are strings. There is a structure for time. I don't have idea about that. Can u help out to compare times which are strings. Thanks
-
Tab orderYa, I have given in the same way.Here it has to switch between 2 dialogs. i.e the dialog in the tab control and the main dialog in which the tab control is present. The focus not going onto the tab control..
-
Tab orderHi all, I want some help in setting the tab order for controls in a dialog. The scenario is like in the main dialog i have a tab control and 4 buttons. In the tab control i have added dialogs. When the main dialog is opened the focus should be on the tab control. Next it should go to the other buttons. I have given the tab order normally giving one for the tab control. But the when i open the dialog the focus is not the tab control it is on the next button i.e the one which is set to 2.. Can u please suggest me... Thank U
-
Set Text bold in edit controlThanks for the suggestion..... Here i want to change the font to bold only... other settings remaining the same.to use this i have to set all other parameters for which i donno the previous set values... when i use this size of text .. and all other settings r getting changed... how can i overcome this..
-
Set Text bold in edit controlHiii all, I need to make text bold in a read only edit control .Can u suggest me how to do this Thanks
-
how to create form view in tab controlhi friends, can we use a form view in tab control(in a dialog based application) if so suggest me how to create it Thanks
-
how to create form view in tab controlhi friends, can we use a form view in tab control(in a dialog based application) if so suggest me how to create it Thanks
-
How to use form view in tab controlthank u guys.... i ll try this out
-
How to use form view in tab controlthanks for the suggestion.... I have a doubt ..which dialog will be shown to the user initially --the dialog having the scroll bar or the child dialog having all the controls. If it is the dialog having the vertical scroll bar then the controls will not be shown to the user until the sroll bar is clicked
-
How to use form view in tab controlyes,the dialog size should be increased dynamically.
-
How to use form view in tab controlMy application is like... I need to get a vertical scroll bar when the size of the dialog increases.this should not increase the size of tab control is there any way of doing that
-
How to use form view in tab controlHi can u suggest me how to use a form view in tab control.I have done using dialogs in tab control for each tab item Thanks, Sireesha
-
scroll bar in tab controlFor each tab item i have a dialog.when the size of this dialog is increased it should have vertical scroll bar in it. the size of the tab control should not be changed when the size of the dialog is increased. Thanks, Sireesha
-
scroll bar in tab controlHi all, can u suggest me what are the ways of getting a vertical scroll bar in the tab control. The scroll bar should be dynamic i.e the scroll bar should be visible only when the size of the tab is more.for normal size the scroll bar should not be visible. Thanks Sireesha
-
scroll bar in tab controlHi all, can u suggest me what are the ways of having a vertical scroll bar in tab control. The scroll bar should be dynamic i.e the scroll bar should be visible only when the size of tab is more.for normal size it should not be visible Thanks Sireesha
-
Remove focus on a disabled tab itemHi all, I have created a tab control with 4 tab items.2 tab items are disabled initially.Only the enabled tab items must be focussed when the mouse pointer is placed onto the corresponding enabled tab item. problem i am facing here is even the disabled tab items are focussed when the mouse pointer is moved onto the corresponding disabled tab item pls suggest me how to avoid getting focus on the disabled tab item Thanks, Sireesha