i saw this article that shows printing of listview using printdocument.. it helps me but then i want to place my list view on the middle of the page.. i want to know how to place it.. can you please help me? thank youu. !
paoi00 0 Junior Poster in Training
Recommended Answers
Jump to PostYou have to calculate 2 things:
1. the dimensions of the form
2. the dimensions of the control (listView in your case)Then calculate to position it in the middle.
So you can do:int formX = this.Width; int formY = this.Heigth; int listX = listView1.Width int …
Jump to Postups, sorry, this is VB`s code:
Dim formX As Integer = Me.Width Dim formY As Integer = Me.Height Dim listX As Integer = listView1.Width Dim listY As Integer = listView1.Height Dim X As Integer = (formX \ 2) - (listX \ 2) Dim Y As Integer = …
All 5 Replies
Mitja Bonca 557 Nearly a Posting Maven
poojavb 29 Junior Poster
paoi00 0 Junior Poster in Training
Mitja Bonca 557 Nearly a Posting Maven
paoi00 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.