Click here to Skip to main content
15,885,839 members
Home / Discussions / C#
   

C#

 
GeneralRe: Assign Value in DropDownList type Combo Box Pin
Pankaj - Joshi15-Jun-07 23:47
Pankaj - Joshi15-Jun-07 23:47 
QuestionHow we get User active status in Activ directory Pin
ASysSolvers15-Jun-07 22:18
ASysSolvers15-Jun-07 22:18 
QuestionHow to bring whole word to next line Pin
Hum Dum15-Jun-07 22:07
Hum Dum15-Jun-07 22:07 
AnswerRe: How to bring whole word to next line Pin
Vasudevan Deepak Kumar16-Jun-07 1:57
Vasudevan Deepak Kumar16-Jun-07 1:57 
AnswerRe: How to bring whole word to next line Pin
Hesham Yassin20-Jun-07 0:26
Hesham Yassin20-Jun-07 0:26 
QuestionGetting unhandled exception in runtime Pin
beatles169215-Jun-07 21:24
beatles169215-Jun-07 21:24 
AnswerRe: Getting unhandled exception in runtime Pin
Christian Graus15-Jun-07 22:01
protectorChristian Graus15-Jun-07 22:01 
GeneralRe: Getting unhandled exception in runtime Pin
beatles169215-Jun-07 22:22
beatles169215-Jun-07 22:22 
Here it is :
In my login form:
<br />
private void OnOKButtonClicked()<br />
{ <br />
  try<br />
  {<br />
    this.Cursor=Cursors.WaitCursor;<br />
    progressForm.Login(this.txtUsername.Text,this.txtPassword.Text) ;<br />
    this.Cursor=Cursors.Default;<br />
    this.Close();<br />
  }<br />
  catch(LoginFailedException)<br />
  {	<br />
    this.Cursor=Cursors.Default;<br />
    MessageBox.Show("Invalid username and/or password.");<br />
  }<br />
  catch(Exception exp)<br />
  {<br />
    new ExceptionViewForm(exp).ShowDialog();<br />
  }<br />
}

In my progress from:
<br />
internal static void Login(string username,string password)<br />
{<br />
  progressForm frm=new progressForm() ;<br />
  frm.username=username;<br />
  frm.password=password;<br />
  frm.ShowDialog();			<br />
}<br />
<br />
protected override void OnActivated(EventArgs e)<br />
{<br />
  if(! activated)<br />
  {					   <br />
   LoginForm.engine=<br />
   LoginProcess.Instance.Login(this.username,this.password); <br />
  }<br />
}			<br />

GeneralRe: Getting unhandled exception in runtime Pin
Colin Angus Mackay16-Jun-07 0:41
Colin Angus Mackay16-Jun-07 0:41 
GeneralRe: Getting unhandled exception in runtime Pin
beatles169216-Jun-07 0:59
beatles169216-Jun-07 0:59 
QuestionImagebutton click+datalist+c# Pin
razanabanu15-Jun-07 20:53
razanabanu15-Jun-07 20:53 
AnswerRe: Imagebutton click+datalist+c# Pin
Christian Graus15-Jun-07 21:14
protectorChristian Graus15-Jun-07 21:14 
QuestionProblem with quicktime component (System.AccessViolationException) Pin
combo_ci15-Jun-07 20:48
combo_ci15-Jun-07 20:48 
AnswerRe: Problem with quicktime component (System.AccessViolationException) Pin
combo_ci15-Jun-07 23:25
combo_ci15-Jun-07 23:25 
QuestionTimeSpan Pin
Ian Uy15-Jun-07 19:13
Ian Uy15-Jun-07 19:13 
AnswerRe: TimeSpan Pin
Ravi Bhavnani15-Jun-07 19:26
professionalRavi Bhavnani15-Jun-07 19:26 
AnswerRe: TimeSpan Pin
PIEBALDconsult15-Jun-07 19:36
mvePIEBALDconsult15-Jun-07 19:36 
GeneralRe: TimeSpan Pin
Ian Uy15-Jun-07 19:42
Ian Uy15-Jun-07 19:42 
GeneralRe: TimeSpan Pin
Luc Pattyn15-Jun-07 21:02
sitebuilderLuc Pattyn15-Jun-07 21:02 
QuestionA question about Add-in Pin
imagic15-Jun-07 18:57
imagic15-Jun-07 18:57 
QuestionStreamReader problem Pin
gvanto15-Jun-07 17:26
gvanto15-Jun-07 17:26 
AnswerRe: StreamReader problem Pin
Guffa16-Jun-07 0:00
Guffa16-Jun-07 0:00 
QuestionListView Focus Pin
Ian Uy15-Jun-07 16:49
Ian Uy15-Jun-07 16:49 
AnswerRe: ListView Focus Pin
Ravi Bhavnani15-Jun-07 18:10
professionalRavi Bhavnani15-Jun-07 18:10 
GeneralRe: ListView Focus Pin
Ian Uy15-Jun-07 18:19
Ian Uy15-Jun-07 18:19 

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.