Convert .MOD file to .MPG

This item was filled under [ Tips and Tricks ]

 

Today i came across a typical problem of converting .MOD file to .MPG file.

and my friend gave a very good suggestion…

Convert .MOD file to .MPG is very simple…

Change Extension/Rename the file  and you are done …

e.g. video1.mod rename to video.mpg and it will work…

ProCoder will import .MOD file after that.

Premier will also accept .MOD file after converting it to .MPG.

Hurray .. So Simple :-)

Create Shortcut on Desktop From Setup Wizard VS2008

This item was filled under [ Windows.Net ]

Iin Visual Studio you view the “File System” window when you right click the setup project from the solution explorer and select View -> File System.

The opened window has 2 panes.

The one on the left lists the folders that you can use for installation: Application folder, User’s Desktop, User’s Programs Menu (You might already know all that but its covered in case you or anyone else doesn’t know). The primary output of the project (usually an exe and required files) should be in the Application Folder. When you open the Application Folder in this window you right click the item in the right pane that says “Primary Output” and select Create Shortcut.

This creates a shortcut in the Application Folder along side Primary Output. You can right click that newly created item and select Cut, then open the User’s Desktop by selecting that item in the left pane, then paste the shortcut in the right pane. After you have pasted the shortcut you can rename it and set the icon.

Fetch SP Data From SQL Server to Excel in Excel

This item was filled under [ SQL Server, Tips and Tricks ]

If you are planning to get data from SQL Server to excel by using Excel External Data feature. Please follow the follwing steps :

1.  Set all steps by choosing any table.

2. Go To Refresh button > Connection Properties > Definition Tab

3.  Change the Command Type to SQL  and put the command “EXEC databasename.ownername.StoredProcedurename”

You are done.

Also if your Stored procedure is using temporary table remember to “SET NOCount ON” in the beginning of the stored procedure.

Close Login Form and Open Another/Main Form

This item was filled under [ Windows.Net ]
In Program.cs keep Login as starting form
Application.Run(new LoginForm());
In Login Form Put the following code ….
Step 1:  using System.Threading;
Step 2: Put the Code in Valid Login Section
private void btnLogin_Click(object sender, System.EventArgs e)
{
// On Valid Login
this.Close();
Thread th = new Thread(new ThreadStart(myForm));
th.Start();
}
Step 3: Create the Function to open the next form
//
private void myForm()
{
Form2 f  = new Form2();
f.ShowDialog();
}
Reference : http://www.dotnetspider.com/forum/16780-closing-form.aspx

In Program.cs keep Login as starting form

Application.Run(new LoginForm());

In Login Form Put the following code ….

Step 1:  using System.Threading;

Step 2: Put the Code in Valid Login Section

private void btnLogin_Click(object sender, System.EventArgs e)

{

// On Valid Login

this.Close();

Thread th = new Thread(new ThreadStart(myForm));

th.Start();

}

Step 3: Create the Function to open the next form

private void myForm()

{Form2 f  = new Form2();

f.ShowDialog();

}

Reference : http://www.dotnetspider.com/forum/16780-closing-form.aspx

Infinite Knowledge

This item was filled under [ Technology ]

Lets start sharing.