You must Sign In to post a response.
  • Category: Windows

    Datagrid view location at runtime

    How to change datagridview location at runtime in vb.net
  • #618549
    you can try this code


    private void ChangedgvLocation_Click(object sender, EventArgs e)
    {
    try
    {
    int x = Convert.ToInt32(textBox1.Text);
    int y = Convert.ToInt32(textBox2.Text);
    this.dataGridView1.Location = new System.Drawing.Point(x, y);
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.Message.ToString());
    }
    }


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.