Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: mouse position from Non client area [EDITED] Pin
Stefan Troschuetz23-Sep-04 1:30
Stefan Troschuetz23-Sep-04 1:30 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 1:36
Ajmoda23-Sep-04 1:36 
GeneralRe: mouse position from Non client area Pin
Stefan Troschuetz23-Sep-04 1:44
Stefan Troschuetz23-Sep-04 1:44 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 1:51
Ajmoda23-Sep-04 1:51 
GeneralRe: mouse position from Non client area Pin
Stefan Troschuetz23-Sep-04 1:57
Stefan Troschuetz23-Sep-04 1:57 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 2:03
Ajmoda23-Sep-04 2:03 
Questionwhat is this error Pin
ydderf223-Sep-04 0:18
ydderf223-Sep-04 0:18 
AnswerRe: what is this error Pin
exhaulted23-Sep-04 0:30
exhaulted23-Sep-04 0:30 
The following is from the help files in visual studio

public void ShowOracleException() 
{
   OracleConnection myConnection =
      new OracleConnection("Data Source=Oracle8i;Integrated Security=yes");

   try 
   {
      myConnection.Open();
   }
   catch (OracleException e) 
   {
     string errorMessage = "Code: " + e.Code + "\n" +
                           "Message: " + e.Message;

     System.Diagnostics.EventLog log = new System.Diagnostics.EventLog();
     log.Source = "My Application";
     log.WriteEntry(errorMessage);
     Console.WriteLine("An exception occurred. Please contact your system administrator.");
   }
}


If you catch the exception then you can get more information out of it to hopefully explain what went wrong.

Kev
AnswerRe: what is this error Pin
sreejith ss nair23-Sep-04 0:43
sreejith ss nair23-Sep-04 0:43 
GeneralRe: what is this error Pin
Heath Stewart23-Sep-04 5:58
protectorHeath Stewart23-Sep-04 5:58 
GeneralRe: what is this error Pin
sreejith ss nair23-Sep-04 17:51
sreejith ss nair23-Sep-04 17:51 
AnswerRe: what is this error Pin
Dave Kreskowiak23-Sep-04 0:43
mveDave Kreskowiak23-Sep-04 0:43 
AnswerRe: what is this error Pin
Michael P Butler23-Sep-04 0:57
Michael P Butler23-Sep-04 0:57 
GeneralRuntime.getRuntime().addShutdownHook(new Hook()) Pin
devvvy22-Sep-04 23:45
devvvy22-Sep-04 23:45 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
exhaulted23-Sep-04 0:27
exhaulted23-Sep-04 0:27 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
devvvy23-Sep-04 3:48
devvvy23-Sep-04 3:48 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
LongRange.Shooter23-Sep-04 8:24
LongRange.Shooter23-Sep-04 8:24 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
devvvy24-Sep-04 5:59
devvvy24-Sep-04 5:59 
Generaltextbox in a webpage problem Pin
Sakkijha22-Sep-04 23:28
Sakkijha22-Sep-04 23:28 
GeneralRe: textbox in a webpage problem Pin
Dave Kreskowiak23-Sep-04 0:32
mveDave Kreskowiak23-Sep-04 0:32 
GeneralRe: textbox in a webpage problem Pin
sreejith ss nair23-Sep-04 0:38
sreejith ss nair23-Sep-04 0:38 
GeneralRe: textbox in a webpage problem Pin
shambho23-Sep-04 4:21
shambho23-Sep-04 4:21 
GeneralMinimizing a form Pin
exhaulted22-Sep-04 23:25
exhaulted22-Sep-04 23:25 
GeneralRe: Minimizing a form Pin
sreejith ss nair23-Sep-04 1:15
sreejith ss nair23-Sep-04 1:15 
GeneralRe: Minimizing a form Pin
eggie523-Sep-04 2:16
eggie523-Sep-04 2:16 

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.