ورود

View Full Version : کنترل فرم



بابک زواری
یک شنبه 25 بهمن 1383, 14:40 عصر
با کمک این کنترل میتونید کارهای جالبی رو با فرم انجام بدید


AppName: Type here the name of your application. This property will be used to store in the registry the information about the last position and state of the form, and is only necessary if you set to True the RecordWindowPos property. The information will be saved under HKCU/Software/AppName/FormName.
BackgroundType: None (0), Gradient (1), [Picture Centered] (2) or [Picture Tiled] (3).
DontShowMaximizedAtStartup: if you set this property to True, the form will not be shown maximized even if last time it was maximized when it was unloaded.
Flash: True or False, set it to True if you want the form to flash.
FlashRate: How many times per second you want the form to flash.
GradientEndColor: If BackgroundType is Gradient, this color will be used as the ending color for the gradient shown in the background of your form.
GradientIniColor: If BackgroundType is Gradient, this color will be used as the initial color for the gradient shown in the background of your form.
GradientOrientation: [Up Down] (0), [Left Right] (1), [Down Up] (2) or [Right Left] (3). If BackgroundType is Gradient, use this property to set the orientation that you want the gradient in the background to have.
GradientTitle: True or False. Setting this to True will make the control display a gradient in the title bar of the form. This could give some problems in Windows NT, like changing the font used in the form.
INIFile: Put here the full path to a file in which information about the size and position of the form will be saved. If you set this property at run-time (like in the Form_Load event), make sure that the RecordWindowPos property is True and that the RecordWindowPosTo is set to [INI File] (1) before hand.
IniPosLeft: Initial left positition of the form if it's the first time it's shown and there is previous information.
IniPostTop: Initial top positition of the form if it's the first time it's shown and there is previous information.
LoadWindowInScreen: If last time the form was unloaded part of the form was not visible because it was out of the limits of the screen, setting this property to True will make sure the form is completely visible next time the form is loaded.
MaxHeight: Maximum height that you want the form to have, given in twips. Set it to 0 if you want this property to be ignored.
MaxWidth: Maximum width that you want the form to have, given in twips. Set it to 0 if you want this property to be ignored.
MinHeight: Minimum height that you want the form to have, given in twips. Set it to 0 if you want this property to be ignored.
MinWidth: Minimum width that you want the form to have, given in twips. Set it to 0 if you want this property to be ignored.
MouseClipped: When set to True, the cursor movement will be restricted to the area of the form. Additionally, the user will not be able to resize or move the form in any case. This property can only be set at run-time.
OnTop: True or False, set it to True if you want the form to stay on top of all the other forms.
Picture: This will be the pictured used in the background if BackgroundType is set to [Picture Centered] or [Picture Tiled].
RecordWindowPos: Set this property to True if you want the form to remember the last position and state of the form in which it is placed. You will also have to set the AppName property. If the form was closed being in minimized state, next time the form loads the control will put it in restored state, using last size and position saved. I assume it is not practical loading a form in minimized state (at least not in my programs), so if you need this because any strange reasons, you will not be able to do it using this control. Note: Please, make sure that the StartUpPosition property of the form is set to Manual or to WindowsDefault.
RecordWindowPosTo: Registry (0) or [INI File] (1). This tells the control where the information about the form size and position should be saved.
ResizeContents: True or False. When set to True, controls contained in the form will be resized the form changes of size. The system used to do this is very simple, and doesn't support fonts.
Methods:

Refresh: This refreshes the background of the form. You will have to use it if you change background options at run-time.
RemoveCloseButton: This method disables the close button of the form.
Events:

Resize (WidthChange As Single, HeightChange As Single): You can use this event to resize other controls contained in the form. The special features of this event are that it will provide you the vertical and horizontal changes (given in twips) since the last time this event was fired, and that it will not be fired when the form is minimized.

Roza_tsc
یک شنبه 25 بهمن 1383, 15:40 عصر
این کنترل کجاست؟؟ از این متن چطوری باید استفاده کرد؟؟

Roza_tsc
یک شنبه 25 بهمن 1383, 15:42 عصر
ممنون پیداش کردم :wink: :D

حامد مصافی
یک شنبه 25 بهمن 1383, 18:23 عصر
سلام
من قبلاٌ از این کنترل استفاده کردم و بهتون توصیه می کنم ازش استفاده نکنین!!!
چون یک سری مشکلات واسه برنامه خصوصاٌ هنگام لود و آنلود ایجاد میکنه حتی گاهی اوقات برنامه به درستی آنلود نمیشه :D

بابک زواری
یک شنبه 25 بهمن 1383, 21:56 عصر
منم استفاده کردم و اگر درست تنظیم بشه هیچ مشکلی پیش نمیاد

حامد مصافی
یک شنبه 25 بهمن 1383, 23:48 عصر
تا حالا پیش نیومده برنامه موقع بسته شدن خطا بده؟؟

Morteza Manafpour
دوشنبه 26 بهمن 1383, 02:48 صبح
:flower: :تشویق:

M-Gheibi
دوشنبه 26 بهمن 1383, 09:14 صبح
:flower:

R_BABAZADEH
چهارشنبه 12 اسفند 1383, 10:39 صبح
:flower: :تشویق: :flower:

Ariyan
شنبه 06 فروردین 1384, 10:14 صبح
ممنون عالی بود .

ehsan.pn2
جمعه 13 خرداد 1384, 11:40 صبح
اگه می شه طریقه به کار بردن active x رو هم در برنامه های مختلف توضیح بدین ؟؟؟ :گیج: :flower:

بابک زواری
شنبه 14 خرداد 1384, 23:39 عصر
دوست عزیز سوالات خودتون رو به طور مجزا مطرح کنید
لطفا قبل از فعالیت در این بخش به قوانین مربوطه مراجعه کنید

kia_programmer
یک شنبه 15 خرداد 1384, 11:41 صبح
مرسی آقای کد نویس
:flower: :flower: :تشویق: :تشویق: :flower: :flower:

بابک زواری
یک شنبه 15 خرداد 1384, 23:05 عصر
http://www.dotnetsource.com/temp1/06.gif