Hi all,
We are using TortoiseHg(Mercurial) as a sub version control in our project currently, we are now planning to migrate the sub version control to TFS 2013.

  1. is this possible without the loss of any revisions that are exisitng.
  2. is this possible without the loss of any logs or any kind of information that is there in the history.
  3. What are the pre-requisites when it comes to hardware / software / personnel for this migration.
  4. is there a tool which does this migration.

while was searching online, i got in touch with SVNBridge, but this actually supports TortoiseSVN, but am looking for TortoiseHg.

Any help appreciated.


When a button is pressed, the focus will be moving on to button,
you can do this,
once the operation on button_click is done, before the event exits, based on your logic call the last line for either textbox1.focus(); or textbox2.focus();
this should be a simple option.


I hope u have placed the main Tab control on the Main form.

For ur Tab control there is an Event 'SelectedPageChanged';
Use this event,
It ll work every time u click the either tabs.

if(Tabcontrol.SelectedTabPage == searchTabPage)
if(objSearch != null)
Add this to your code.

Votes + Comments
nice idea

well, u got the answer with you, it is because you are passing a floating point value to integer u r getting the overflow exception.
check the column in your database, make sure what data type your backend is following, and then also make sure what are you in the text box, also make sure you are converting the same to what data type it is specified in data base.

Thanks, once this is solved, make sure you mark this thread as solved.


am sry, i forgot to add a condition between., find the proper code below...

dtDisp_changed = objBusiness.Display_Inv_dtl(invoiceNoTextEdit.Text.Trim());

if(dtDisp_changed.Rows.Count > 0)
for (int i = 0; i < dtDisp_changed.Rows.Count; i++)
if(i == 0)
sum = Convert.ToDecimal(dtDisp_changed.Rows[0]["AMT"]);

sum = sum + Convert.ToDecimal(dtDisp_changed.Rows[i]["AMT"]);



dtDisp_changed is the DataTable,
["AMT"] is the column that you want the addition to be done....

Please mark the thread as solved once this works.


Votes + Comments
Good examples, shame about the missing [CODE] tags :)