Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
SuggestionRe: how to add mp3 to my projects and played it with visual c# Pin
Richard MacCutchan17-Oct-11 0:25
mveRichard MacCutchan17-Oct-11 0:25 
GeneralRe: how to add mp3 to my projects and played it with visual c# Pin
X9X18-Oct-11 21:15
X9X18-Oct-11 21:15 
GeneralRe: how to add mp3 to my projects and played it with visual c# Pin
Richard MacCutchan18-Oct-11 22:32
mveRichard MacCutchan18-Oct-11 22:32 
AnswerRe: how to add mp3 to my projects and played it with visual c# Pin
JP_Rocks20-Oct-11 3:24
JP_Rocks20-Oct-11 3:24 
GeneralRe: how to add mp3 to my projects and played it with visual c# Pin
X9X20-Oct-11 9:33
X9X20-Oct-11 9:33 
Questionc#.net login pages Pin
sudheesh kumar s16-Oct-11 20:15
sudheesh kumar s16-Oct-11 20:15 
AnswerRe: c#.net login pages Pin
Anuj Banka16-Oct-11 21:12
Anuj Banka16-Oct-11 21:12 
AnswerRe: c#.net login pages Pin
OriginalGriff16-Oct-11 21:30
mveOriginalGriff16-Oct-11 21:30 
I assume you mean that as your program loads, you need to detect if there is a user id stored on the machine, and if so, treat them as logged in to your program. If not, then load the login screen before they get to see the main form.

Look at program.cs - the Main method is the one which starts your application. In there, check the user id, and if present, continue as normal. If not, bring up your login screen in the same way that the existing code shows the main form.

You can use the app.Config file to store the log-in info: open your projects "Properties" tree node in the Solution Explorer pane, and double click on "settings.settings". You can add a new item there (call it UserId) and retrieve it in your code with "Properties.Settings.Default.mySettingName"
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: c#.net login pages Pin
sudheesh kumar s17-Oct-11 0:04
sudheesh kumar s17-Oct-11 0:04 
QuestionBlack screens appears while pausing video of MediaElement Pin
anandvtra16-Oct-11 19:58
anandvtra16-Oct-11 19:58 
QuestionCreating Guid Pin
Member 827944516-Oct-11 18:09
Member 827944516-Oct-11 18:09 
AnswerRe: Creating Guid Pin
Mycroft Holmes16-Oct-11 18:43
professionalMycroft Holmes16-Oct-11 18:43 
GeneralRe: Creating Guid Pin
Member 827944516-Oct-11 19:32
Member 827944516-Oct-11 19:32 
GeneralRe: Creating Guid Pin
Mycroft Holmes16-Oct-11 20:16
professionalMycroft Holmes16-Oct-11 20:16 
GeneralRe: Creating Guid Pin
Member 827944516-Oct-11 20:18
Member 827944516-Oct-11 20:18 
GeneralRe: Creating Guid Pin
Mycroft Holmes16-Oct-11 20:26
professionalMycroft Holmes16-Oct-11 20:26 
GeneralRe: Creating Guid Pin
Member 827944516-Oct-11 20:35
Member 827944516-Oct-11 20:35 
GeneralRe: Creating Guid Pin
BobJanova16-Oct-11 22:37
BobJanova16-Oct-11 22:37 
GeneralRe: Creating Guid Pin
Member 827944516-Oct-11 22:42
Member 827944516-Oct-11 22:42 
GeneralRe: Creating Guid Pin
BobJanova17-Oct-11 5:23
BobJanova17-Oct-11 5:23 
GeneralRe: Creating Guid Pin
Mycroft Holmes16-Oct-11 20:45
professionalMycroft Holmes16-Oct-11 20:45 
GeneralRe: Creating Guid Pin
Member 827944516-Oct-11 20:51
Member 827944516-Oct-11 20:51 
QuestionConverting strings to datetime Pin
CCodeNewbie16-Oct-11 1:29
CCodeNewbie16-Oct-11 1:29 
AnswerRe: Converting strings to datetime Pin
Dan Mos16-Oct-11 1:36
Dan Mos16-Oct-11 1:36 
GeneralRe: Converting strings to datetime Pin
CCodeNewbie16-Oct-11 1:42
CCodeNewbie16-Oct-11 1:42 

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.