I am currently using FBackup and not bothering with scheduled backups etc, just on demand. The free version does not do incremental or differential but the beauty of this product is that the backup file is a simple zip file and you really don't need special software to recover your files :-D . I use it mainly for data files. I got a big surprise the other day trying to recover a hard drive on a laptop that I had completely messed up (my bad :doh: ). I tried the recovery dvd that it encouraged me to make, but it would not accept disk 2 out of 4 and hence the whole process was scr**ed :(( . Just before depositing the laptop (with broken screen) in the bin, I recalled taking a system image using Win 7 backup. I tried a restore and it worked perfectly and quickly. Cheers Tim
TJO1
Posts
-
Backup/Sync tool suggestions? -
Iced CoffeeIced coffee.... this is iced coffee http://en.wikipedia.org/wiki/Farmers_Union_Iced_Coffee[^] Nectar of the Gods, made in Godzone country. Yes, I freely admit that a slug of alcohol improves everything when you start from a low base. Cheers Tim
-
Where did the disk space go?Not sure if I understand your problem correctly... But I have used Treesize for quite some time and get good results. http://www.jam-software.com/freeware/index.shtml[^] Cheers Tim
-
The Cat/Code PrincipleSo many cats... so few recipes :-D Tim
-
How to run Windows Explorer from an applicationChristian Graus wrote:
Process.Start("c:\") should, I believe, open explorer at the c drive.
Thanks very much Christian. You are spot on. I doubt if I would have found this in a month of Sundays. Cheers Tim
-
How to run Windows Explorer from an applicationI have been struggling to find information on how to achieve the following. My small app creates a folder on the file system. I then want to run an instance of Windows Explorer and show the folder. I want to do this in a way so that Explorer will keep running even after my app is terminated. I assume this is achievable and apologise if it is trivial. Cheers Tim
-
update app.config file at runtimeYou have gone a bit further than I can help, but try this in VB help... ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/wd_adonet/html/1471f580-bcd4-4046-bdaf-d2541ecda2f4.htm Cheers Tim
-
update app.config file at runtimeI think you may have the cnnString setting variable defined as "Application" scope which is read only. If you change it to "User" scope your error should go away. Make the change in the My Project > Settings tab. Cheers Tim
-
Is it possible to add to My.Settings at runtime?Thank you for your response. Unfortunately you misunderstood my question. Your response, however, did get me thinking what are the available data types in My.Settings and I found that there is a StringCollection type and this is exactly what I am after:-D. Thanks for the push in the right direction. Cheers Tim
-
Is it possible to add to My.Settings at runtime?I wish to persist some user settings such as a list of filenames and thought My.Settings would be the best way to go. However, the number of filenames in the list is unknown. For example... Setting... Name Type Scope Value File1 String User "filename_1" File2 String User "filename_2" File3 String User "filename_3" . . . . . . . . . . . . Filei String User "filename_i" Where 'i' is unknown at design time. Each time the app is run 'i' may get bigger or smaller. Is it possible to add and delete user scope settings in My.Settings at runtime? If not is there a better alternative? Cheers Tim
-
What is the VB.NET equivalent of this code?NOW I get it Thanks David
-
What is the VB.NET equivalent of this code?David, On further examination of your response, does the following (second line of original code) assign a value to item?
MenuItem item = (MenuItem)sender;
If so, this assignment is missing from your response. After the = is what I am struggling with. Cheers Tim -
What is the VB.NET equivalent of this code?Thanks for your responses. This now makes sense to me, it was just a syntax issue. Cheers Tim
-
What is the VB.NET equivalent of this code?Not sure if this is best forum but... I am trying to convert some old C# code into a VB.NET version and in the process add some more functionality. Silly me... I don't know any C# at all but having an educated guess. This following bit has me stumped. Can anybody help with the conversion or give an indication of what his code is doing?
protected void onMenuItemClick(Object sender, EventArgs e) { MenuItem item = (MenuItem)sender; if (MyItemClicked != null) { string fileName = (string)_itemMap[item]; MyItemClicked(this, new MyItemClickedEventArgs(fileName)); } }
Cheers Tim -
What is the equivalent VB.net for this C code?Not sure if this is best forum but... I am trying to convert somebody elses old C component into a VB.NET version and in the process add some more functionality. Silly me... I don't know any C at all but having an educated guess. This following bit has me stumped. Can anybody help with the conversion.
protected void onMenuItemClick(Object sender, EventArgs e) { MenuItem item = (MenuItem)sender; if (MRUItemClicked != null) { string fileName = (string)_itemMap[item]; MRUItemClicked(this, new MRUItemClickedEventArgs(fileName)); } }
Cheers Tim -
I counted...POETS day. Can't be bad. (P*ss Off Early, Tomorrows Saturday):laugh:
-
DataBindings do not appear to function properlyDear Collegues, I thought I might try to use databindings to create a dialog that will enable a user to change some default colours. I can get the panel to show the colour stored in my class but I can't seem to get the class colour to update when the colour of the panel is changed. I have a databinding between the BackColor of a Panel control and the LineColour property of a ProjectPreferences Class. The details of each follow. When I show the dlgPrefs dialog, the pnlLineColour.BackColor is correct. After I change the pnlLineColour.BackColor using the ColorDialog, the m_pp.LineColour does not change to suit. Have I done this correctly or am I expecting too much? I am using VB.NET 2003 I have a class ProjectPrefences which holds the data. e.g. ProjectPreferences.LineColour:-
Public Property LineColour() As Color Get Return m_LineColour End Get Set(ByVal Value As Color) m_LineColour = Value End Set End Property
I call the dialog with the following code:-Dim MyPrefs As New ProjectPreferences Private Sub mnuPreferences_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuPreferences.Click Dim dlg As New dlgPrefs dlg.PreferenceData = MyPrefs If dlg.ShowDialog() = DialogResult.OK Then MyPrefs = dlg.PreferenceData End If End Sub
The Dialog code is:-Public Class dlgPrefs Inherits System.Windows.Forms.Form Private m_pp As ProjectPreferences Public Property PreferenceData() As ProjectPreferences Get Return m_pp End Get Set(ByVal Value As ProjectPreferences) unBindData() m_pp = Value If Not m_pp Is Nothing Then BindData() End If End Set End Property ''' this routine handles a click in all of the colour panels Private Sub ColourPanel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pnlLineColour.Click, pnlElementColour.Click Dim cdlg As New ColorDialog cdlg.Color = sender.backcolor If cdlg.ShowDialog = DialogResult.OK Then sender.BackColor = cdlg.Color 'changes the panel.BackColor End If End Sub Private Sub BindData() 'pnlElementColour is a Panel on the dialog Me.pnlElementColour.DataBindings.Add("BackColor", m_pp, "ElementColour") Me.pnlLineColou
-
Can I do an event handler in a collection class to capture an event raised by one of its objectsCould someone please lend some assistance to an issue which I expect is simple but eludes me at the moment. The following description is a simplification of what I am trying to do. I have a collection called PartsCollection which has an Area property which is the sum of the area properties of each object in the collection. Each object is called PartObject and has Width, Height and Area properties. When width or height is changed the area is recalculated. I wish to have the PartsCollection.Area property update when either PartObject.Width or PartObject.Height is changed for any object within the collection. I was thinking of PartObject raising a Changed event and having an event handler for this event in the PartsCollection class. I can't figure out how to wire the handler to all of the objects in the collection. I trust this description is not too cryptic. Cheers, in advance Tim