I aggree with John. Clonezilla as free and Acronis True Image as paid image solutions working well. Both can be booted from live cds. So if your os is broken, this is important. Advantage True Image: can build live images, can create incremental backups, merge backups Disadvantage True Image: Linux partitions (I'm using a dual boot pc) can only be stored as raw images Clonezilla is part of Parted Magic LiveCD. There you've also a partition manager called GParted included in one box.
dj_jeff
Posts
-
Disk Imaging Software; Recommendations? -
Control forms of an appNot so easy because the call of the form is in my action class. Tried the following.
//created a property in action class private Form parentForm; public Form ParentForm { get { return parentForm; } set { parentForm = value; } } //in frmMain in clicked event added _clsUsage.ParentForm = this; //in the action class in the action method _frmStatus.Parent = ParentForm;
But this creates an ArgumentException. -
Control forms of an appHow can I do that? That's how I currently control my forms. frmMain- Form: - Clicked event on a button creates object of an action class
clsUsage _clsUsage = new clsUsage(); _clsUsage.CalcUsage();
CalcUsage calls and closes the status formfrmStatus _frmStatus = new frmStatus(); _frmStatus.Show(); //doing some operations and modifying attributes to controls of frmStatus form _frmStatus.Close();
-
Control forms of an appI have a main form for entry purposes shown in the taskbar. After I click on the OK button it starts a class method routine opening a status form. This should not be shown in taskbar. After doing some operation this window should automatically close. Question: If I switch back to my application in taskbar, I would like to get shown the status form and not the main form. What I've tried: 1. Opening status form with ShowDialog method. + Switching to the application shows the status form - All following operations are halted until status form is closed 2. Set TopMost attribute + switching to the application shows the status form - Status form's always on top 3. Opening status form with Show method + All following operations are running afterwards - Switching to the application shows the main window
-
VS 2008 - Setup project: Change Link Icon in Program MenuI've created a new setup project with Visual Studio 2008 inside my solution and added my .EXE files to the setup. Then I've created to each .EXE a shortcut and moved it to the user's Program Menu. There I'm able to set the Icons property to an external icon. Problem: The file and path have always to exist. If I move my solution to another computer, I'm always getting an error of missing icon file. The Icons itself are stored in the Resources of each project inside this solution and connected to the Application Icon property. Is it possible to use these resource icons or include them into the setup project ? If yes, let me know how ? If no, let me also know ;)
-
Inserting row in DataGridView doesn't update Primary KeySeems to work with the InsertCommand attributes on UserAddedRow event. I'm getting back an autoincrement value in my grid and it seems to be stored always on the SQL table. :) Why has this to be so complicated ? Microsoft's always dealing with it's features but can't make this handling easier.
-
Inserting row in DataGridView doesn't update Primary Keyled mike wrote:
Microsoft cleverly hides that information in the documentation[^]
I don't really know where I should handle this. Everything is controlled by the BindingNavigator and BindingSource. The document samples refer to a manual insert and console display. Here's my current code of that Test form. I guess Insert handling in RowsAdded- Event wouldn't be good because of running this event on building the datagridview.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;namespace DummyProject
{
public partial class frmTest : Form
{
SqlDataAdapter dataAdapter;
DataTable table;
SqlCommandBuilder commandBuilder;public frmTest() { InitializeComponent(); } private void updateGridView() { this.Validate(); tblLangBindingSource.EndEdit(); dataAdapter.Update(table); } private void frmTest\_Load(object sender, EventArgs e) { string strCon = "Data Source=MyServer;Initial Catalog=MyDB;User ID=MyUser;Password=MyPass;"; string strSQL = "select LangId AS ID, LangName AS Name FROM tbl\_Lang"; dataAdapter = new SqlDataAdapter(strSQL, strCon); commandBuilder = new SqlCommandBuilder(dataAdapter); // Populate a new data table and bind it to the BindingSource. table = new DataTable(); table.Locale = System.Globalization.CultureInfo.InvariantCulture; dataAdapter.Fill(table); tblLangBindingSource.DataSource = table; // Resize the DataGridView columns to fit the newly loaded content. dataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader); // you can make it grid readonly. //dataGridView1.ReadOnly = true; // finally bind the data to the grid dataGridView1.DataSource = tblLangBindingSource; bindingNavigator1.BindingSource = tblLangBindingSource; } private void dataGridView1\_CellEndEdit(object sender, DataGridViewCellEventArgs e) { this.updateGridView(); } private void dataGridView1\_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { this.updateGridView(); } private void dataGridView1\_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) { this.updateGridView(); } private void bindingNavigatorDeleteItem\_Click(object sender, EventArgs e) { foreach(DataGridViewRow dgvr in d
-
Inserting row in DataGridView doesn't update Primary KeyI'm only using Visual C# 2008 Express Edition for a .NET Framework 2.0 project. So, I'm not able to use an assistent creating a connection to a MS SQL 2005 database on another server, it has to be done in code. The table itself has a field which is automatically a primary key with autoincrement functionality. Selecting all fields in the table are no problem with SqlConnection-, SqlDataAdapter etc. I'm also able to update an existing entry. My problem is inserting a new row. The new set is added to the table, but I'm not automatically getting back the new Primary Key value in the ID field (it's also not in the DataTable during debugging) :mad:. Next time, I'm editing this field, I'm getting an error, of course for updating it needs the new ID, the DataGridView-/ DataTable- Object doesn't know. Probably it's very easy, but how can this ID can be updated in the DataGridView and let the dataset navigator of the grid stay at the current position (no reload with moving the navigator to the first set).
-
Showing and manipulating a window formTried Refresh() and worked :), Invalidate didn't do it :(. Form won't only be displayed correctly in debugging mode. But that's ok. The best way of practise would be if I can do a periodical refresh on the form. But use of form object in Timer section and TimerElapsedEventHandler at the same time produces an error saying refresh can't be done when form is in both sections. If the user switches away and back to the program it seems as if the app has hung up. Because it's waiting for finishing the current process.
-
Showing and manipulating a window formThere shouldn't be a button window close handling. This should be a status window running while actions (calling C# methods and functions) are running. That's why it should be opened when actions start and closed when finished.
-
Showing and manipulating a window formThere is no ShowWindow method in C# in .NET Framework 2.0.
-
Showing and manipulating a window formI want to open a window form by a method like that:
frmForm frm_Form = new frmForm();
frm_Form.Show();
//here should be sth. manipulated
frm_Form.Close();I've marked some window objects (text boxes) public, so I can call them outside.
frm_Form.lblTest.Text = "Hello World";
But I can't see any manipulation on the window, neither in real time nor in debugging mode. How can I show my Window, do some actions on it and dispose it afterwards ?
-
What FTP Client?I've also used SmartFTP (http://www.smartftp.com) als ftp client for a long time. But since it has went to shareware, I've searched for an alternative. So, I'm using the NC like freeCommander (http://www.freecommander.com) now. An FTP functionality has been released since the last major update. It has still only less abilities, but enough for down- and uploading files.