Hello,
please help me.
I want to maximize my form size when i maximize my window.
means when i double click on window to maximize then my form also get maximize with window, i used dock property bt still not getting proper result.
wenbnet 9 Practically a Posting Shark
Recommended Answers
Jump to PostI'm not sure what you mean by 'window' but you maximize forms by setting their WindowState property:
Private Sub Form1_DoubleClick(sender As Object, e As System.EventArgs) Handles Me.DoubleClick Me.WindowState = FormWindowState.Maximized End Sub
Now when you double-click your form called Form1, it changes it's WindowState to Maximized.
…
Jump to PostAdd panel to form and cover the panel to form then add ur controls to panel and set dock property
Jump to Posthere are two tutorial on anchoring and docking which will help you get going:
Jump to PostOk. Trap form's Resize event and reposition and resize controls so that they fill the form. Here's a sort of pseudocode to show properties you need
Private Sub Form1_Resize(sender As Object, e As System.EventArgs) Handles Me.Resize ' Form1.Width get form's current width ' Form1.Height get form's current …
All 16 Replies
Teme64 215 Veteran Poster
wenbnet 9 Practically a Posting Shark
Pgmer 50 Master Poster Featured Poster
vishalrane 0 Junior Poster in Training
sandeepparekh9 109 Posting Whiz
wenbnet 9 Practically a Posting Shark
Teme64 215 Veteran Poster
wenbnet 9 Practically a Posting Shark
jingda commented: Reps for you as promised +9
sonia0511 0 Newbie Poster
poojavb 29 Junior Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
poojavb 29 Junior Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
poojavb 29 Junior Poster
M.Waqas Aslam 67 Posting Pro in Training Featured Poster
poojavb 29 Junior Poster
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.