try this :) http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/27a9002e-9d53-440d-9750-e6c64406fdd6[^]
-ambarish changanacherry-
try this :) http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/27a9002e-9d53-440d-9750-e6c64406fdd6[^]
-ambarish changanacherry-
this link may help you :thumbsup: Custom Web Visitor Tracking using C#[^] Simple Windows Service Sample[^] Build Windows Event Log Watcher Service Process to Export Event Log Entries as RSS Feed[^]
-ambarish-
thank you :) :thumbsup:
-ambarish-
:) try this Application Trial Maker[^]
-ambarish-
this link will help you Create custom dialogs for use in your Visual Studio Setup projects[^]
-ambarish-
this code may help you.. ;)
private void loadComboBox()
{
if (this.cmb.DataSource == null)
{
this.cmb.Items.Add("Please Wait");
this.cmb.Text = "Please Wait";
this.cmb.Refresh();
}
DataTable tbl = comboData() as DataTable;
tbl.Rows.Add(0, "");
cmb.DataSource = tbl;
cmb.DisplayMember = "Name";
cmb.ValueMember = "Id";
cmb.SelectedValue = 0;
}
-ambarish-
Hi.. try this code.. :)
using System;
using System.Diagnostics;
class MainClass
{
public static void Main()
{
Process[] allProcs = Process.GetProcesses();
foreach(Process proc in allProcs)
{
ProcessThreadCollection myThreads = proc.Threads;
Console.WriteLine("process: {0}, id: {1}", proc.ProcessName, proc.Id);
foreach(ProcessThread pt in myThreads)
{
Console.WriteLine(" thread: {0}", pt.Id);
Console.WriteLine(" started: {0}", pt.StartTime.ToString());
Console.WriteLine(" CPU time: {0}", pt.TotalProcessorTime);
Console.WriteLine(" priority: {0}", pt.BasePriority);
Console.WriteLine(" thread state: {0}", pt.ThreadState.ToString());
}
}
}
}
-ambarish-
do it like this.. :)
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
namespace Access
{
public class Connection
{
private string getConnectionString()
{
return "connetionString";
}
public static void ExecuteCommand(string command)
{
OleDbConnection con;
OleDbCommand com;
try
{
con = new OleDbConnection(getConnectionString());
con.Open();
com = new OleDbCommand(command);
com.ExecuteNonQuery();
}
catch (Exception ex)
{
//ex shows exception
}
finally
{
con.Close();
}
}
}
//Call Connection Method public void MyMethord() { Connection.ExecuteCommand("command write here"); }
-ambarish-
A jagged array is an array whose elements are arrays
http://msdn.microsoft.com/en-us/library/2s05feca.aspx[^]
-ambarish-
Hi Arun Try this
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
namespace Access
{
public class Connection
{
private string getConnectionString()
{
return "connetionString";
}
public static void ExecuteCommand(string command)
{
OleDbConnection con;
OleDbCommand com;
try
{
con = new OleDbConnection(getConnectionString());
con.Open();
com = new OleDbCommand(command);
com.ExecuteNonQuery();
}
catch (Exception ex)
{
//ex shows exception
}
finally
{
con.Close();
}
}
}
//Call Connection Method public void MyMethord() { Connection.ExecuteCommand("command write here"); }
-ambarish-
Pls clarify
-ambarish-
Attribute Developers can add metadata to their code through attributes. There are two types of attributes, custom and pseudo custom attributes, and to the developer these have the same syntax. Attributes in code are messages to the compiler to generate metadata. In CIL, metadata such as inheritance modifiers, scope modifiers, and almost anything that isn't either opcodes or streams, are also referred to as attributes. A custom attribute is a regular class that inherits from the Attribute class. Custom attributes are used by the .NET Framework extensively. Windows Communication Framework uses attributes to define service contracts, ASP.NET uses these to expose methods as web services, LINQ to SQL uses them to define the mapping of classes to the underlying relational schema, Visual Studio uses them to group together properties of an object, the class developer indicates the category for the object's class by applying the [Category] custom attribute. Custom attributes are interpreted by application code and not the CLR.When the compiler sees a custom attribute it will generate custom metadata that is not recognised by the CLR. The developer has to provide code to read the metadata and act on it.
:thumbsup:
-ambarish-
file raname using Regex
like this newfilename = Regex.Replace(fDialog.FileName, "F.NCF", "H.NCF");
-ambarish-
http://masonr.wordpress.com/2008/07/23/25/[^]
-ambarish-
try this shell command
using System.Diagnostics;
using Microsoft.VisualBasic;
private void button1_Click(object sender, System.EventArgs e)
{
Interaction.Shell("C:\\Documents and Settings\\Jerry\\My Documents\\Calck.exe", (AppWinStyle) 2, false, -1);
}