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

C#

 
Questionc# coding a progress bar with barkground worker Pin
PClarkeirl8-Nov-13 3:35
PClarkeirl8-Nov-13 3:35 
AnswerRe: c# coding a progress bar with barkground worker Pin
Richard Andrew x648-Nov-13 3:45
professionalRichard Andrew x648-Nov-13 3:45 
AnswerRe: c# coding a progress bar with barkground worker Pin
BillWoodruff8-Nov-13 3:55
professionalBillWoodruff8-Nov-13 3:55 
AnswerRe: c# coding a progress bar with barkground worker Pin
OriginalGriff8-Nov-13 5:14
mveOriginalGriff8-Nov-13 5:14 
Questionhow to store radiobutton status in app.config Pin
Member 102635197-Nov-13 23:11
Member 102635197-Nov-13 23:11 
AnswerRe: how to store radiobutton status in app.config Pin
Marco Bertschi8-Nov-13 0:19
protectorMarco Bertschi8-Nov-13 0:19 
GeneralMessage Closed Pin
8-Nov-13 1:06
Member 102635198-Nov-13 1:06 
GeneralRe: how to store radiobutton status in app.config Pin
Nicholas Marty8-Nov-13 3:02
professionalNicholas Marty8-Nov-13 3:02 
GeneralRe: how to store radiobutton status in app.config Pin
Member 1026351910-Nov-13 19:45
Member 1026351910-Nov-13 19:45 
QuestionGetting the value of TreeList in DevExpress Pin
nhanlaptrinh7-Nov-13 23:02
nhanlaptrinh7-Nov-13 23:02 
AnswerRe: Getting the value of TreeList in DevExpress Pin
Eddy Vluggen8-Nov-13 5:01
professionalEddy Vluggen8-Nov-13 5:01 
Questionforeach (TerminalGroup tg in vps) return tg; Pin
Marc W7-Nov-13 22:52
Marc W7-Nov-13 22:52 
AnswerRe: foreach (TerminalGroup tg in vps) return tg; Pin
Pete O'Hanlon7-Nov-13 23:47
mvePete O'Hanlon7-Nov-13 23:47 
GeneralRe: foreach (TerminalGroup tg in vps) return tg; Pin
harold aptroot7-Nov-13 23:54
harold aptroot7-Nov-13 23:54 
GeneralRe: foreach (TerminalGroup tg in vps) return tg; Pin
Marc W8-Nov-13 0:11
Marc W8-Nov-13 0:11 
GeneralRe: foreach (TerminalGroup tg in vps) return tg; Pin
harold aptroot8-Nov-13 0:35
harold aptroot8-Nov-13 0:35 
QuestionHow to Create a Deleted Database using LINQ-to-SQL-Classes? Pin
salehne7-Nov-13 18:50
salehne7-Nov-13 18:50 
Hello,
In my program I need to be checked if the database was deleted, the program creates it again. So, I made a database and connected it to my program with 'LINQ-To-SQL-Classes', when I delete the database manually ("Database1.mdf" and "Database1_log.ldf"), it cannot create the database and show me this error:
" Database 'C:\Users\Saleh\documents\visual studio 2010\Projects\St\St\bin\Debug\Database1.mdf' already exists. Choose a different database name. "

Here is my code:

C#
private void button1_Click(object sender, EventArgs e)
        {
            string strDBPath = Application.StartupPath + ("\\Database1.mdf");
            DataClasses1DataContext objDB = new DataClasses1DataContext(strDBPath);
            if (!objDB.DatabaseExists())
            {
                objDB.CreateDatabase();
                MessageBox.Show("Database created!");
            }
        }


How can I handle it?

Thanks in advance!
Questioncombobox in c# Pin
Member 102635197-Nov-13 18:44
Member 102635197-Nov-13 18:44 
AnswerRe: combobox in c# Pin
CodeBlack7-Nov-13 19:58
professionalCodeBlack7-Nov-13 19:58 
Generalinserting radiobutton status dynamically in app.config Pin
Member 102635197-Nov-13 20:33
Member 102635197-Nov-13 20:33 
GeneralRe: combobox in c# Pin
CodeBlack7-Nov-13 21:13
professionalCodeBlack7-Nov-13 21:13 
GeneralRe: combobox in c# Pin
Member 102635197-Nov-13 22:03
Member 102635197-Nov-13 22:03 
GeneralRe: combobox in c# Pin
CodeBlack7-Nov-13 22:07
professionalCodeBlack7-Nov-13 22:07 
GeneralRe: combobox in c# Pin
Member 102635197-Nov-13 22:28
Member 102635197-Nov-13 22:28 
GeneralRe: combobox in c# Pin
CodeBlack7-Nov-13 21:38
professionalCodeBlack7-Nov-13 21:38 

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.