Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

ambarishtv

@ambarishtv
About
Posts
16
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Export C# Windows Datagridview to excel
    A ambarishtv

    try this :) http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/27a9002e-9d53-440d-9750-e6c64406fdd6[^]

    -ambarish changanacherry-

    C# csharp wpf com

  • Need concept regarding website visit tracking software c#
    A ambarishtv

    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-

    C# csharp sysadmin tutorial

  • license for the installation
    A ambarishtv

    thank you :) :thumbsup:

    -ambarish-

    C# sysadmin tutorial workspace

  • license for the installation
    A ambarishtv

    :) try this Application Trial Maker[^]

    -ambarish-

    C# sysadmin tutorial workspace

  • license for the installation
    A ambarishtv

    this link will help you Create custom dialogs for use in your Visual Studio Setup projects[^]

    -ambarish-

    C# sysadmin tutorial workspace

  • default value in combobox
    A ambarishtv

    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-

    C# question csharp

  • Listing information of backgroud process
    A ambarishtv

    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-

    C# csharp question

  • c#
    A ambarishtv

    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-

    C# csharp database

  • Array
    A ambarishtv

    A jagged array is an array whose elements are arrays http://msdn.microsoft.com/en-us/library/2s05feca.aspx[^]

    -ambarish-

    C# data-structures question

  • How Can i Create A Class Library For MSACCESS database Connection
    A ambarishtv

    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-

    C# csharp database com help tutorial

  • How to open image without show picturebox style
    A ambarishtv

    Pls clarify

    -ambarish-

    C# tutorial

  • Attributes in C#
    A ambarishtv

    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-

    C# csharp tutorial question

  • Rename a file from his String Path [Resolved]
    A ambarishtv

    file raname using Regex like this newfilename = Regex.Replace(fDialog.FileName, "F.NCF", "H.NCF");

    -ambarish-

    C# question help

  • How to list network connections
    A ambarishtv

    http://masonr.wordpress.com/2008/07/23/25/[^]

    -ambarish-

    C# question csharp sysadmin tutorial

  • Crystal Report Paper Size
    A ambarishtv

    http://www.vbforums.com/showthread.php?t=545777[^]

    C# design help question

  • Conflicting permissions
    A ambarishtv

    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);
    }

    C# csharp question tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups