|
-
Sep 12th, 2003, 02:38 AM
#1
how can I set the form's clientsize?
if you set the form's size using form.width or .height, it will not set it's clientsize to that size. I'm wondering how I can set the clientsize of a form, which is, the size of the form ignoring the title bar size and other stuff
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 12th, 2003, 08:03 AM
#2
Sleep mode
Try this :
VB Code:
Me.Location = New Point((Me.ClientSize.Width / 2) - (Me.Size.Width / 2), (Me.ClientSize.Height / 2) - (Me.Size.Height / 2))
-
Sep 12th, 2003, 11:52 AM
#3
location?! no no
the form's size
If I say frm.Size = new size (100,100), I think the form will be 100x100 pixels. But what I want is to have the form's client size to be 100x100 (which is the form's size excluding the title bar's size)
unfortunatly you cant assign a value to form.clientsize
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 12th, 2003, 12:32 PM
#4
Sleep mode
Is this what you want ?
VB Code:
Me.ClientSize = New System.Drawing.Size(Me.ClientSize.Width, Me.ClientSize.Height)
'or
Me.ClientSize = New System.Drawing.Size(100, 100)
-
Sep 12th, 2003, 02:05 PM
#5
Originally posted by Pirate
Is this what you want ?
VB Code:
Me.ClientSize = New System.Drawing.Size(Me.ClientSize.Width, Me.ClientSize.Height)
'or
Me.ClientSize = New System.Drawing.Size(100, 100)
YOU CAN DO THAT>?!!! WAA
why did I think ClientSize is readonly? hmm!!!! I gotto get home and try it then you better be right or I'll kill you (if you ARE right, then I should kill myself )
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 12th, 2003, 02:21 PM
#6
Sleep mode
I'm afraid you'll get it right and you still insist to kill Pirate ...................
anways , you could tried something like this :
VB Code:
Dim siz As New Size(100, 100)
Me.ClientSize = siz
-
Sep 13th, 2003, 02:56 PM
#7
-
Sep 13th, 2003, 04:44 PM
#8
Sleep mode
-
Sep 13th, 2003, 08:04 PM
#9
hmm tnx you forced me to make another form and try it in there....
the problem I think was that I was doing that code in the New constructor... when I put it in LOAD it works fine 
edit: ok actually it was something else, now this stupid autoscroll feature of the form is driving me crazy
Last edited by MrPolite; Sep 13th, 2003 at 08:49 PM.
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|