Click here to Skip to main content
15,898,588 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: creating new shell for windows Pin
Pete O'Hanlon15-Oct-07 1:13
mvePete O'Hanlon15-Oct-07 1:13 
AnswerRe: creating new shell for windows Pin
TyrionTheImp15-Oct-07 21:00
TyrionTheImp15-Oct-07 21:00 
QuestionHow to highlight an item in the ListBox control Pin
Mike Borozdin14-Oct-07 5:19
Mike Borozdin14-Oct-07 5:19 
AnswerRe: How to highlight an item in the ListBox control Pin
Mike Borozdin14-Oct-07 7:20
Mike Borozdin14-Oct-07 7:20 
QuestionHow to get HWND from System::Windows::Forms::Panel^ panel [modified] Pin
Newbie0014-Oct-07 0:05
Newbie0014-Oct-07 0:05 
QuestionText in label is mangled Pin
sudhirkamath9-Oct-07 9:40
sudhirkamath9-Oct-07 9:40 
AnswerRe: Text in label is mangled Pin
Paul Conrad27-Oct-07 13:37
professionalPaul Conrad27-Oct-07 13:37 
QuestionBackup Database Using Threads Pin
jikubhai9-Oct-07 4:25
jikubhai9-Oct-07 4:25 
hello techs,


I have a small project which enables database backups.
I have to to do backup's for multiple database @ a time.
For that i need to use Threading concepts.

the below code is for database backup :
-----------------------------------------------------------------------------------------------------
public void backUpDatabase(string DBname, string setBakUpPath)
{
SqlCommand sCom = new SqlCommand("BACKUP DATABASE " + DBname + " TO DISK = '" + setBakUpPath + "' WITH NOFORMAT, NOINIT, NAME = 'Full Database1 Backup', SKIP, NOREWIND, NOUNLOAD,STATS = 10", sCon);
sCom.CommandType = CommandType.Text;
try
{
sCom.ExecuteNonQuery();
MessageBox.Show("Database " + DBname + " : BackUp Done!", DBname + " BackUp", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (System.Exception ex)
{
MessageBox.Show(ex.ToString(), "Backup ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
sCom.Dispose();
}
-----------------------------------------------------------------------------------------------------

all the databases will be loaded to a list box and i will select a database and clicks on button "Backup Database" and it will starts backup.... I need to do the backup in a thread. Now on the datagrid ... it will show the "db name", "Status : backup going on/backup done" and finally % of percentage of backup in the third colum of grid (u can avoid if this a bit time consuming... )

Please help me to solve it, if any clarifications needed... please ask ... thanks ...





A123-B321

AnswerRe: Backup Database Using Threads Pin
Koltz11-Oct-07 20:57
Koltz11-Oct-07 20:57 
QuestionLock Menus/Toolbars on Window Scroll Pin
Elizma9-Oct-07 0:57
Elizma9-Oct-07 0:57 
AnswerRe: Lock Menus/Toolbars on Window Scroll Pin
Dave Kreskowiak9-Oct-07 6:41
mveDave Kreskowiak9-Oct-07 6:41 
QuestionAppBars & the ShowDesktop command Pin
TyrionTheImp8-Oct-07 19:33
TyrionTheImp8-Oct-07 19:33 
QuestionPass handle to form Pin
mjanssen6-Oct-07 9:02
mjanssen6-Oct-07 9:02 
AnswerRe: Pass handle to form Pin
Kristian Sixhøj6-Oct-07 9:13
Kristian Sixhøj6-Oct-07 9:13 
GeneralRe: Pass handle to form Pin
mjanssen6-Oct-07 9:34
mjanssen6-Oct-07 9:34 
GeneralRe: Pass handle to form Pin
Eduard Keilholz8-Oct-07 2:23
Eduard Keilholz8-Oct-07 2:23 
QuestionHelp needed with Exceptions! Pin
alesh_nitre5-Oct-07 2:35
alesh_nitre5-Oct-07 2:35 
AnswerRe: Help needed with Exceptions! Pin
Scott Dorman5-Oct-07 12:06
professionalScott Dorman5-Oct-07 12:06 
GeneralRe: Help needed with Exceptions! Pin
alesh_nitre7-Oct-07 20:25
alesh_nitre7-Oct-07 20:25 
GeneralRe: Help needed with Exceptions! Pin
Scott Dorman8-Oct-07 3:52
professionalScott Dorman8-Oct-07 3:52 
GeneralRe: Help needed with Exceptions! Pin
alesh_nitre8-Oct-07 5:16
alesh_nitre8-Oct-07 5:16 
GeneralRe: Help needed with Exceptions! Pin
Scott Dorman8-Oct-07 5:34
professionalScott Dorman8-Oct-07 5:34 
GeneralRe: Help needed with Exceptions! Pin
alesh_nitre9-Oct-07 20:36
alesh_nitre9-Oct-07 20:36 
GeneralRe: Help needed with Exceptions! Pin
Scott Dorman10-Oct-07 3:31
professionalScott Dorman10-Oct-07 3:31 
QuestionError:Concurrency violation: the UpdateCommand affected 0 of the expected 1 records Pin
somagunasekaran4-Oct-07 0:31
somagunasekaran4-Oct-07 0:31 

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.