Solved

VB.net DataGridView resizing

Posted on 2013-05-11
5
453 Views
Last Modified: 2013-05-14
Hi

I have a DataGridView on a TaskPane in my VB.net Excel add-in.
I need the user to be able to resize the DataGridView, which is placed
in a very specific part of the TaskPane so as to be visible.
I tried using the dock property as suggested in an article I found,
but it moved the DataGridView away from its visible location
0
Comment
Question by:murbro
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Ioannis Paraskevopoulos
ID: 39159187
Hi,

Have a look at this article.

Giannis
0
 

Author Comment

by:murbro
ID: 39159820
Hi
Which article?
0
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 250 total points
ID: 39159868
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
ID: 39165142
You want datagridview to resize itself as the task pane gets resized right? Try setting its Anchor property to all four sides.
0
 

Author Closing Comment

by:murbro
ID: 39165174
Thanks very much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now