本文整理汇总了C#中FormBorderStyle类的典型用法代码示例。如果您正苦于以下问题:C# FormBorderStyle类的具体用法?C# FormBorderStyle怎么用?C# FormBorderStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FormBorderStyle类属于命名空间,在下文中一共展示了FormBorderStyle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BeginScreenDeviceChange
public override void BeginScreenDeviceChange(bool willBeFullScreen)
{
if (willBeFullScreen && !isFullScreenMaximized && form != null)
{
savedFormBorderStyle = form.FormBorderStyle;
}
if (willBeFullScreen != isFullScreenMaximized)
{
deviceChangeChangedVisible = true;
oldVisible = Visible;
Visible = false;
if (form != null)
form.SendToBack();
}
else
{
deviceChangeChangedVisible = false;
}
if (!willBeFullScreen && isFullScreenMaximized && form != null)
{
form.TopMost = false;
form.FormBorderStyle = savedFormBorderStyle;
}
deviceChangeWillBeFullScreen = willBeFullScreen;
}
示例2: Save
public void Save(Form targetForm)
{
winState = targetForm.WindowState;
brdStyle = targetForm.FormBorderStyle;
topMost = targetForm.TopMost;
bounds = targetForm.Bounds;
}
示例3: c000081
public c000081(Game p0, GraphicsDeviceManager p1)
{
this.f0000b5 = TextureFilter.Point;
this.f00000a = false;
this.f000051 = Color.Black;
this.f0000b6 = FormBorderStyle.Fixed3D;
this.f0000a1 = false;
this.f0000b5 = TextureFilter.Linear;
this.f00000b = 800;
this.f00000f = 600;
this.f000057 = false;
this.f0000b7 = MultiSampleType.TwoSamples;
if (p1 != null)
{
this.f000056 = p1.IsFullScreen;
}
this.m000001();
if (p0 != null)
{
this.m000004(p0.Window.ClientBounds.Width);
this.m00004b(p0.Window.ClientBounds.Height);
}
if ((p1 != null) && !p1.GraphicsDevice.CreationParameters.Adapter.CheckDeviceMultiSampleType(DeviceType.Hardware, SurfaceFormat.Color, this.m000008(), this.m0000ed()))
{
this.m0000ee(MultiSampleType.None);
}
this.m000003();
}
示例4: FormFURSCommunication
/****** End For DEBUG & TEST PURPOSES ***/
public FormFURSCommunication(usrc_FVI_SLO Parent, Thread_FVI_Message msg)
{
InitializeComponent();
if (Parent.FursTESTEnvironment)
{
lbl_TEST_Environment.Visible = true;
}
else
{
lbl_TEST_Environment.Visible = false;
}
m_usrc_FVI_SLO = Parent;
m_msg = msg;
iForm_Default_Height = this.Height;
iForm_Default_Width = this.Width;
/****** For DEBUG & TEST PURPOSES ***/
if (m_usrc_FVI_SLO.DEBUG)
{
default_FormBorderStyle = this.FormBorderStyle;
Show_usrc_DEBUG_MessagePreview();
}
/****** End For DEBUG & TEST PURPOSES ***/
// this.Location = m_parent.ParentForm.Location;
// Point p = new Point(m_parent.ParentForm.Width / 2 - this.Width / 2, m_parent.ParentForm.Height / 2 - this.Height / 2);
// this.Location = p;
}
示例5: Launcher_Load
private void Launcher_Load(object sender, EventArgs e)
{
this.Icon = DnDCS.Win.Libs.Assets.AssetsLoader.LauncherIcon;
initialFormTopMost = this.TopMost;
initialFormBorderStyle = this.FormBorderStyle;
initialFormWindowState = this.WindowState;
if (this.runMode.HasValue)
{
switch (this.runMode.Value)
{
case Constants.RunMode.Client:
this.btnClient.PerformClick();
break;
case Constants.RunMode.Server:
this.btnServer.PerformClick();
break;
default:
break;
}
}
}
示例6: WidgetModeManager
public WidgetModeManager(Form form)
{
this._form = form;
_defBackColor = form.BackColor;
_defTransparencyKey = form.TransparencyKey;
_defBorderStyle = form.FormBorderStyle;
//set middle-mouse form-wide for toggling modes
SetMouseEvents(form);
}
示例7: OpenShowForm
public static Form OpenShowForm(Control pControl, FormBorderStyle pFormBorderStyle, FormStartPosition pFormStartPosition)
{
var frm = new Form();
frm.Width = pControl.Width;
frm.Height = pControl.Height;
frm.FormBorderStyle = pFormBorderStyle;
frm.StartPosition = pFormStartPosition;
frm.Controls.Add(pControl);
frm.ShowDialog();
return frm;
}
示例8: ThemeColorPickerWindow
/// <summary>
/// Create a new window for ThemeColorPicker.
/// </summary>
/// <param name="startLocation">The starting position on screen. Note: This is not location in Form.</param>
/// <param name="borderStyle">How the border should displayed.</param>
/// <param name="actionAfterColorSelected">The form action of 0o-.</param>
/// <param name="actionAfterLostFocus"></param>
public ThemeColorPickerWindow(Point startLocation, FormBorderStyle borderStyle, Action actionAfterColorSelected, Action actionAfterLostFocus)
{
InitializeComponent();
this.StartPosition = FormStartPosition.Manual;
this.Location = startLocation;
this.FormBorderStyle = borderStyle;
this.ActionAfterColorSelected = actionAfterColorSelected;
this.ActionAfterLostFocus = actionAfterLostFocus;
this.LostFocus += new EventHandler(ThemeColorPickerWindow_LostFocus);
this.Deactivate += new EventHandler(ThemeColorPickerWindow_Deactivate);
themeColorPicker1.ShowCustomMoreColorWindow += new ThemeColorPicker.moreColorWindowShow(themeColorPicker1_ShowCustomMoreColorWindow);
}
示例9: SetUpFixture
public void SetUpFixture()
{
doc = new WixDocument();
doc.LoadXml(GetWixXml());
WixDialog wixDialog = doc.CreateWixDialog("WelcomeDialog", new MockTextFileReader());
using (Form simpleDialog = wixDialog.CreateDialog()) {
dialogName = simpleDialog.Name;
borderStyle = simpleDialog.FormBorderStyle;
clientSize = simpleDialog.ClientSize;
minimizeBox = simpleDialog.MinimizeBox;
maximizeBox = simpleDialog.MaximizeBox;
}
}
示例10: createContainingForm
/// <summary>
/// Creates the form that contains the invoking user control as its only child component.
/// </summary>
public static Form createContainingForm(this UserControl ctrl, FormBorderStyle borderStyle = FormBorderStyle.Sizable)
{
Form obj = new Form();
Panel pane = new Panel();
pane.Parent = obj;
pane.Dock = DockStyle.Fill;
pane.MinimumSize = ctrl.MinimumSize;
pane.MaximumSize = ctrl.MaximumSize;
// determine minimum size for the form
if (!pane.MinimumSize.IsEmpty)
{
pane.Size = pane.MinimumSize;
obj.ClientSize = pane.Size;
obj.MinimumSize = obj.Size;
}
// determine maximum size for the form
if (!pane.MaximumSize.IsEmpty)
{
pane.Size = pane.MaximumSize;
obj.ClientSize = pane.Size;
obj.MaximumSize = obj.Size;
}
// set normal
pane.Size = ctrl.Size;
obj.ClientSize = pane.Size;
// make it.
ctrl.Parent = pane;
ctrl.Dock = DockStyle.Fill;
obj.FormBorderStyle = borderStyle;
obj.Text = ctrl.Text;
// keyboard events should be passed to the form now.
obj.KeyPreview = true;
return obj;
}
示例11: Read
public void Read(Form form)
{
windowState = form.WindowState;
form.WindowState = FormWindowState.Normal;
clientSize = form.ClientSize;
left = form.Left;
top = form.Top;
topMost = form.TopMost;
borderStyle = form.FormBorderStyle;
form.WindowState = windowState;
}
示例12: FormRtlLayout
public FormRtlLayout(FormBorderStyle borderStyle, Size minSize,
Icon icon, Color bgColor, string text)
{
InitializeComponent();
FormBorderStyle = borderStyle;
_minSize = minSize;
//_maxSize = maxSize;
Icon = icon;
_bgColor = bgColor;
_text = text;
//RightToLeft = RightToLeft.Yes;
//RightToLeftLayout = true;
}
示例13: Form
// Constructor.
public Form()
{
visible = false;
autoScale = true;
topLevel = true;
loaded=false;
borderStyle = FormBorderStyle.Sizable;
mdiChildren = new Form [0];
ownedForms = new Form [0];
opacity = 1.0;
windowFlags = ToolkitWindowFlags.Default;
formStartPosition = FormStartPosition.WindowsDefaultLocation;
windowState = FormWindowState.Normal;
}
示例14: Show
public static ShowForm Show(Control c_,FormBorderStyle borderStyle_,Icon icon_, string title_)
{
ShowForm sf = new ShowForm();
sf.FormBorderStyle = borderStyle_;
sf.Text = title_;
sf.Create(c_);
sf.Icon = icon_;
if (icon_ == null && c_ is IFormIconProvider)
sf.Icon = ((IFormIconProvider)c_).FormIcon;
else
sf.Icon = DefaultIcon;
sf.Show();
sf.BringToFront();
return sf;
}
示例15: SwitchFullscreen
public void SwitchFullscreen(FullscreenMode mode)
{
if (IsFullscreen) {
MoveToFullscreenMode(mode);
return;
}
if (!_mainForm.ThumbnailPanel.IsShowingThumbnail)
return;
//On switch, always hide side panels
_mainForm.CloseSidePanel();
//Store state
_preFullscreenLocation = _mainForm.Location;
_preFullscreenSize = _mainForm.ClientSize;
_preFullscreenBorderStyle = _mainForm.FormBorderStyle;
//Change state to fullscreen
_mainForm.FormBorderStyle = FormBorderStyle.None;
MoveToFullscreenMode(mode);
CommonCompleteSwitch(true);
}