C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-21-2008, 09:50 AM   #1
Registered User
 
Join Date: Oct 2008
Posts: 85
Windows Form Sizing

HI
I am trying to create a form with a small width ( about 64). i have removed the formcontrols and made the maximize and minimize boxs false. the form has a fixedsingle borderstyle.

my problem is i cannot size the width of the form down below a certain size.

is there anyway to overcome this?

i am trying to use it as a sort of toolbar to display some small thumbnail images, which will later be dragged and dropped onto other forms.

Is this the right approach or should i be using another type of control/form

thanks in advance
deviousdexter is offline   Reply With Quote
Old 10-21-2008, 10:48 AM   #2
Confused
 
Magos's Avatar
 
Join Date: Sep 2001
Location: Sweden
Posts: 3,125
Set the formborderstyle to "none". Of course you'll lose the actual border, but I guess that's your intention anyway.
__________________
MagosX.com

Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Magos is offline   Reply With Quote
Old 10-21-2008, 05:26 PM   #3
Registered User
 
Join Date: Oct 2008
Posts: 85
thanks for the reply

i have tried removing the border, the form still will not size down below what appears to be a default minimum.

i can make it smaller in the IDE but not at run time - it just goes back to the size it was normally, even if i programatically override the height and width and run time.

the smallest size i can resize to on the mdiparent appears to be the exact hight height and width of the control buttons that i have removed.

hopefully someone will come up with a solution or alternative method.
[EDIT]

i found this link but unfortunelty its not C# orientated and appears a little bit above my understanding at present.

http://delphi.about.com/od/adptips20...m_minwidth.htm

anyone can take a look and maybe turn into something i can undertsand ? or is this really going to far now.

Last edited by deviousdexter; 10-22-2008 at 05:23 AM.
deviousdexter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Forms ejohns85 C# Programming 2 05-17-2007 03:22 PM
how to make a windows application crvenkapa C++ Programming 3 03-26-2007 09:59 AM
Script errors - bool unrecognized and struct issues ulillillia Windows Programming 10 12-18-2006 04:44 AM
Accessing main form from functions in other classes pj_martins C++ Programming 1 11-05-2004 09:27 AM
My UserControls dissapear off my form zMan C# Programming 2 09-15-2004 08:55 AM


All times are GMT -6. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22