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
S

Sean89

@Sean89
About
Posts
148
Topics
30
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • System Shutdown
    S Sean89

    Try this article[^]. ;)


    C# question csharp

  • Opening a File
    S Sean89

    System.Diagnostics.Process.Start(@"filepath");


    C# question

  • validate string for special characters
    S Sean89

    string input = textBox.Text;

    if(!input.Contains("@"))
    {
    // do stuff
    }

    Does that help?


    C# question

  • Search Results (Win Forms 2.0)
    S Sean89

    Look up textbox databinding.


    C# database help tutorial

  • Full screen
    S Sean89

    Set the FormBorderStyle property of your form to "None". That should do it :laugh:

    C# csharp com question

  • Full screen
    S Sean89

    This works for full screen mode for me:

    private void Form1_Load(object sender, System.Windows.Forms.KeyEventArgs e)
    {
    this.Bounds = Screen.AllScreens[0].Bounds;
    this.TopMost = true;
    }

    Does that help?

    C# csharp com question

  • How can i find the current users 'My Documents' (XP)
    S Sean89

    Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); Hope that helps ;P


    C# tutorial question

  • Sending an HTML page by email
    S Sean89

    What parts of doing this are you having trouble with?


    C# database csharp html sql-server sysadmin

  • Accessing datatable without interface. [modified]
    S Sean89

    Adding a row to the table is really quite simple. You are looking for datatable.NewRow(); To add a new row you would do something like this:

    DataRow newrow = datatable.NewRow(); // Create a new row

    row[0] = "blah blah blah";
    row[2] = ...
    // add some more data to the row
    ...

    dataTable.Rows.Add(newrow); //add the row to the table

    Basically it creates a new row based on the columns that you have in the already constructed table. You can also set values for different columns in the row like:

    row["SomeColumn"] = "blah blah blah";

    Thats really all there is to it :laugh: Hope that helps.


    C# tutorial question

  • beginner in C# needs help
    S Sean89

    Search "Reading a text file in C#" in google. Once you have a line of text from the file you can use string.Spilt(','); to seperate the info. Something like: string currentText; // text obtained from file string [] seperated = currentText.Split(',');


    C# tutorial csharp help question lounge

  • Another problem with two forms [modified]
    S Sean89

    What dont you understand?


    C# help tutorial question

  • Another problem with two forms [modified]
    S Sean89

    Ok so what you would do is hand these variables to the constructor of your second form: Ex.

    public partial class Form2 : Form
    {

    public int d, e, f;
    public Form2(int a, int b, int c)
    {
    d = a;
    e = b;
    f = c;
    InitializeComponent();
    }

    ...

    public partial class Form1 : Form
    {

    public int a, b, c;
    public Form1()
    {
    InitializeComponent();
    }

    something_OnClick()
    {
    Form2 frm2 = new Form2(a, b, c);
    frm2.ShowDialog();
    }


    C# help tutorial question

  • How can I close one form
    S Sean89

    this.Close();


    C# question

  • update with datagridview
    S Sean89

    maryamf told you the problem.


    C# help announcement

  • Retrieve User Logged On
    S Sean89

    No Problem ;P


    ASP.NET database visual-studio help question

  • Retrieve User Logged On
    S Sean89

    To get the name of the user that is logged on you use: User.Identity.Name.ToString();


    ASP.NET database visual-studio help question

  • Confusion over Web Site Administration Tool
    S Sean89

    Using your own database and authenticating the user yourself via the database is quite simple. There are many articles on doing the User administration yourself. It is not really that difficult, most of the work is done for you. Try the following articles: Forms Authentication in ASP.net Forms Authentication With Roles These are just some examples, there are many others. Just search: "Forms Authentication in ASP.net" in google ;)


    ASP.NET database csharp asp-net sql-server sysadmin

  • Grid Controls Committing Changes [modified]
    S Sean89

    Ohh sorry I would have told you to put a select command in when initializing the data adapter but I thought you had just left it out so you wouldnt take up to much room in your post ;) Good to see you got it workin' ;)


    C# css database sql-server sysadmin question

  • Grid Controls Committing Changes [modified]
    S Sean89

    You need to include the SqlCommandBuilder to make your update command for you:

    SqlDataAdapter dAdapter = new SqlDataAdapter();

    SqlCommandBuilder cmdBuild = new SqlCommandBuilder(dAdapter); // add this

    dAdapter.Update(markingDBDataSet3, "Species");

    Without this, the update will not work.


    C# css database sql-server sysadmin question

  • Upload Speed
    S Sean89

    How would I get the speed(kbps) of a file upload? Thanks, Sean


    C# performance question
  • Login

  • Don't have an account? Register

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