Click here to Skip to main content
15,913,027 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:07
kulandaivel_mca200723-Jan-09 0:07 
GeneralRe: stop the flow the project Pin
Wendelius23-Jan-09 0:16
mentorWendelius23-Jan-09 0:16 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:21
kulandaivel_mca200723-Jan-09 0:21 
GeneralRe: stop the flow the project Pin
Wendelius23-Jan-09 0:57
mentorWendelius23-Jan-09 0:57 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:15
kulandaivel_mca200723-Jan-09 0:15 
GeneralRe: stop the flow the project Pin
Wendelius23-Jan-09 0:18
mentorWendelius23-Jan-09 0:18 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:22
kulandaivel_mca200723-Jan-09 0:22 
GeneralRe: stop the flow the project Pin
kulandaivel_mca200723-Jan-09 0:57
kulandaivel_mca200723-Jan-09 0:57 
public bool mthOpenConnection()
{
try
{
objprop.J = 0;

string[] datasource = File.ReadAllLines("d:\\k2.txt");

if (datasource[0] != "")
{
objprop.connection = "Data Source=" + datasource[0] + ";Initial Catalog=Inventory_VS;User ID=sa;Password=sa";

objCon = new SqlConnection(objprop.connection);

if (objCon.State != ConnectionState.Open)
{

objCon.Open();
}
}

}
catch (Exception ex)
{
MessageBox.Show("ENTER CORRECT DATA SOURCE NAME IN UR TEXT FILE");
return false;
}
return true;
}





how i can throw my exceptions....
Questionmessage box Pin
vedharadha22-Jan-09 20:14
vedharadha22-Jan-09 20:14 
AnswerRe: message box Pin
VenkatFor.NET22-Jan-09 20:31
VenkatFor.NET22-Jan-09 20:31 
GeneralRe: message box Pin
vedharadha22-Jan-09 20:34
vedharadha22-Jan-09 20:34 
GeneralRe: message box Pin
VenkatFor.NET22-Jan-09 20:46
VenkatFor.NET22-Jan-09 20:46 
AnswerRe: message box Pin
Wendelius22-Jan-09 20:40
mentorWendelius22-Jan-09 20:40 
GeneralRe: message box Pin
vedharadha22-Jan-09 20:52
vedharadha22-Jan-09 20:52 
GeneralRe: message box Pin
VenkatFor.NET22-Jan-09 20:58
VenkatFor.NET22-Jan-09 20:58 
GeneralRe: message box Pin
Wendelius22-Jan-09 21:00
mentorWendelius22-Jan-09 21:00 
GeneralRe: message box Pin
vedharadha22-Jan-09 22:06
vedharadha22-Jan-09 22:06 
GeneralRe: message box Pin
Wendelius22-Jan-09 22:20
mentorWendelius22-Jan-09 22:20 
GeneralRe: message box Pin
vedharadha22-Jan-09 22:26
vedharadha22-Jan-09 22:26 
GeneralRe: message box Pin
Wendelius22-Jan-09 22:30
mentorWendelius22-Jan-09 22:30 
AnswerRe: message box Pin
houssien2223-Jan-09 4:13
houssien2223-Jan-09 4:13 
AnswerRe: message box Pin
Dave Kreskowiak23-Jan-09 4:18
mveDave Kreskowiak23-Jan-09 4:18 
Questionhow to create shell and worksapce in window form Pin
karthick sampangi22-Jan-09 20:10
karthick sampangi22-Jan-09 20:10 
AnswerRe: how to create shell and worksapce in window form Pin
VenkatFor.NET22-Jan-09 21:21
VenkatFor.NET22-Jan-09 21:21 
QuestionIn C# what is the best method to parse large XML Documents(1GB size)...? Pin
sivasss22-Jan-09 18:46
sivasss22-Jan-09 18:46 

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.