Giter Club home page Giter Club logo

metroframework-modern-ui's People

Contributors

12thdoctor avatar birkanatici avatar cnd avatar como89 avatar dennismagno avatar dihoking avatar evo-ksalter avatar fkomaralp avatar kasthack avatar liamkenyon avatar martiuk avatar moutikabdessabour avatar muratkececi avatar peters avatar rakkoc avatar roots84 avatar rqx110 avatar saitdev avatar scardenas avatar shepper avatar sunnynighs avatar swalter88 avatar thecoderok avatar thielj avatar viperneo avatar waylaidwanderer avatar xamgore avatar yasinkuyu avatar ye4241 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metroframework-modern-ui's Issues

MetroTabControl aligment left doesnt show full text

I am trying to setup MetroTabControl aligment to left to create a wizard and show steps in the left as but the tabpage text is cut and not shown full, also the blue line is not aligned under the text. Any workaround for this?

MetroTile Text gets hidden

in winforms, i'm using Tile as Buttons
i place a MetroTile, and set text to center (basically anywhere caused the same issue)

if i resize the Tile, text gets hidden/chopped

for lower resolution screen, when tile becomes tiny(least height) it becomes unusable

Is there a way to make this work fine in all screen resolution ?
any work around to make text not to disappear?

MetroControl text property doesn't update

When changing the text property of a form, it's not updating/refreshing. By overwriting the text property and refresh the form in the MetroForm class it worked for me.

Styling issues with MetroTextBox

Why there is no BorderColor property for the MetroTextBox? Is there any specific reason for the same? I want to highlight the mandatory textboxes with Red Border. How do I do it?

Also, when I set the ShowButton = True. I see the button within the textbox but when I change the backcolor of the custombutton, I see no change in the backcolor.

Unable to show form in full screen mode.

I'm using this for a video game. It looks great in windowed mode, but I need to also be able to use it in full screen (no taskbar visible, no max/min/close buttons, no titlebare, etc.). With native WinForms this works fine, but I don't see how to achieve it with Metro UI.

Thank you!

Mono Support

Hi, is there any support for this UI Framwrok to work with mono under ubuntu. I have run WinForm applications before using mono and they all work but when i run the winform applications based on this framework it returns the following exceptions.
System.EntryPointNotFoundException: ShowScrollBar at (wrapper managed-to-native) MetroFramework.Native.WinApi:ShowScrollBar (intptr,int,int) at MetroFramework.Controls.MetroTabControl.WndProc (System.Windows.Forms.Message& m) <0x40f0ce40 + 0x00043> in <filename unknown>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x40e163d0 + 0x00024> in <filename unknown>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x40e16390 + 0x00036> in <filename unknown>:0 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x40e14cd0 + 0x0031c> in <filename unknown>:0 SendMessage (41943074, 0x30, 0x14db810, 0xffffffffffffffff) SendMessage (41943074, 0x1d, (nil), (nil)) System.EntryPointNotFoundException: GetWindow at (wrapper managed-to-native) MetroFramework.Native.WinApi:GetWindow (intptr,int) at MetroFramework.Controls.MetroTabControl.FindUpDown () <0x40f0c950 + 0x0004b> in <filename unknown>:0
Thanks

Controls not movable in Metro TabControl

When i try to move Controls inside a MetroTabControl the Controls got not moved and stay always on the old Position. When i change the position values manuell i can move the controls but not when using the Mouse.
Because of my Bad English i made a Video which shows the issue: http://sendvid.com/55beb97a

The issue must be inside the MetroTabControl because with the standard TabControl i got no issues.

Anyone can confirm this issue and maybe know how to fix it?

//Edit: Another Video which shows the issue: http://sendvid.com/9ry4vi5k

Cursor property

Using any type of cursor will crash the application if the form has a text box
Using framework 4.5.2 visual studio enterprise 2015 version 14.0.25431.01 update 3

Form size on maximizing

When using a dual monitor (extended display, secondary monitor resolution bigger than the primary) and while maximizing a form on the secondary monitor, the form goes beyond the right side of the screen (maximum width of window).

MetroTextBox AutoComplete Not Work

I just developed an autocomplete metroTextBox and it does not show the suggestion.
Here my code

Dim myString as New AutoCompleteStringCollection
myString.Add("Suggest1")
myString.Add("Suggest2")
metroTextBox.AutoCompleteMode = AutoCompleteMode.Suggest
metroTextBox.AutoCompleteSource = AutoCompleteSource.CustomSource
metroTextBox.AutoCompleteCustomSource = myString

Thanks

Vertical Scroll Bar Flickering

Hi
in winform, i added metroTabControl, in metroTabPage i made AutoScroll : true. in metroTabPage i added a tableLayoutPanel (Dock: Top) i increased the tableLayoutPanel's height way higher than metroTabpage.
now when i run the app, i see vertical scroll bar, as i slowly move this scroll bar it flickers up & down a lot.
how to fix this?

Thanks

is not there add icon property of tab pages?

Hi, I want to add icon to tab pages but I can't see imagelist on tabcontrol's properties. If this feature is removed what is the purpose? do not this feature inherit the metro tabcontrol from the tabcontrol? How can I do this? tab page has image index and image key properties although there is no image list on tab control.

Combobox Colors conflict

Hi Denis,

Today working on an application I saw something that can be usefull to your library.

If we select the DARK THEME and using a BRIGHT COLOR (like BRIGHT YELLOW), the comboboxes show an ugly and unreadable text: white on yellow, in my specific case...

So, I did a little change into COMBOBOX.CS, trying to make it adapt itself to these situations:

protected override void OnDrawItem(DrawItemEventArgs e)
    {
          if (e.Index >= 0)
               {
                Color foreColor = MetroPaint.ForeColor.Link.Normal(Theme);
                Color backColor = BackColor;

                if (!useCustomBackColor)
                {
                    backColor = MetroPaint.BackColor.Form(Theme);
                }

                if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
                {
                    using (SolidBrush b = new SolidBrush(MetroPaint.GetStyleColor(Style)))
                    {
                        e.Graphics.FillRectangle(b, new Rectangle(e.Bounds.Left, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height));
                    }

                    foreColor = MetroPaint.ForeColor.Tile.Normal(Theme);


                   // -------------------------------------------
                   Color FontForeColor = MetroPaint.GetStyleColor(Style);

                    if (FontForeColor.GetBrightness() >= 0.5)
                    {

                        if (FontForeColor == MetroColors.DarkBlue)
                        {
                            FontForeColor = Color.FromArgb(255, 215, 215, 215);

                        }
                        else
                        {
                            FontForeColor = Color.FromArgb(255, 0, 0, 0);
                        }
                    }
                    else
                    {
                        FontForeColor = Color.FromArgb(255, 255, 255, 255);
                    }

                    foreColor = FontForeColor;
                }

                   // -------------------------------------------


                else
                {
                    using (SolidBrush b = new SolidBrush(backColor))
                    {
                        e.Graphics.FillRectangle(b, new Rectangle(e.Bounds.Left, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height));
                    }
                }

                if (this.DropDownStyle != ComboBoxStyle.DropDown)
                {
                    Rectangle textRect = new Rectangle(0, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height);
                    TextRenderer.DrawText(e.Graphics, GetItemText(Items[e.Index]), MetroFonts.ComboBox(metroComboBoxSize, metroComboBoxWeight), textRect, foreColor, TextFormatFlags.Left | TextFormatFlags.VerticalCenter);
                }
                else
                {
                    Rectangle textRect = new Rectangle(0, e.Bounds.Top, this.textBox.Width, e.Bounds.Height);
                    TextRenderer.DrawText(e.Graphics, GetItemText(Items[e.Index]), MetroFonts.ComboBox(metroComboBoxSize, metroComboBoxWeight), textRect, foreColor, TextFormatFlags.Left | TextFormatFlags.VerticalCenter);
                }
            }
            else
            {
                base.OnDrawItem(e);
            }
        }

This way I can get the combo's self-adapting to any user color scheme.
I guess it can be usefull to other.

Best regards.

Transparent/see-through panel with Light theme

I'm able to create a see-through application, but only with the dark theme.

I've set the TransparencyKey on Transparent, the theme on Dark and the panel BackColor on Transparent.

When I set the theme on Light, most of the application goes transparent and I can't click/move it.

Is there an sophisticated solution for using the light theme?

Right now it looks like this
zknnjp

vb.net there is no (Metro)numericupdown

My project needs (Metro)numericupdown, i might be blind but i do not see it along with all the metroframework controls, and sadly it looks like this project isn't maintained anymore?

Visual Studio 2015 Designer Issues when Adding Controls

I have been having a lot of trouble getting my form controls to work, every time I add a few controls I keep receiving a designer error.

I have pasted the designer code at the bottom as zip files cannot be attached.

The error stack:

Instances of this error (1)

  1. Hyperion frm_CompanyInformation.Designer.vb Line:67 Column:1 Hide Call Stack

at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(String xmlStream, CodeStatementCollection statementCollection, String fileName, String methodName)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)
at System.CodeDom.CodeMemberMethod.get_Statements()
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

Designer code:

Partial Class frm_CompanyInformation
    Inherits MetroFramework.Forms.MetroForm

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()>
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()>
    Private Sub InitializeComponent()
        Me.lbl_CompanyName = New MetroFramework.Controls.MetroLabel()
        Me.txt_CompanyName = New MetroFramework.Controls.MetroTextBox()
        Me.txt_PhysicalAddress = New MetroFramework.Controls.MetroTextBox()
        Me.lbl_PhysicalAddress = New MetroFramework.Controls.MetroLabel()
        Me.txt_BillingAddress = New MetroFramework.Controls.MetroTextBox()
        Me.lbl_BillingAddress = New MetroFramework.Controls.MetroLabel()
        Me.txt_PhoneNumber = New MetroFramework.Controls.MetroTextBox()
        Me.lbl_PhoneNumber = New MetroFramework.Controls.MetroLabel()
        Me.txt_FaxNumber = New MetroFramework.Controls.MetroTextBox()
        Me.lbl_FaxNumber = New MetroFramework.Controls.MetroLabel()
        Me.txt_Email = New MetroFramework.Controls.MetroTextBox()
        Me.lbl_Email = New MetroFramework.Controls.MetroLabel()
        Me.txt_Serial = New MetroFramework.Controls.MetroTextBox()
        Me.lbl_Serial = New MetroFramework.Controls.MetroLabel()
        Me.MetroButton1 = New MetroFramework.Controls.MetroButton()
        Me.MetroButton2 = New MetroFramework.Controls.MetroButton()
        Me.SuspendLayout()
        '
        'lbl_CompanyName
        '
        Me.lbl_CompanyName.AutoSize = True
        Me.lbl_CompanyName.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_CompanyName.Location = New System.Drawing.Point(23, 60)
        Me.lbl_CompanyName.Name = "lbl_CompanyName"
        Me.lbl_CompanyName.Size = New System.Drawing.Size(136, 25)
        Me.lbl_CompanyName.TabIndex = 0
        Me.lbl_CompanyName.Text = "Company Name"
        '
        'txt_CompanyName
        '
        '
        '
        '
        Me.txt_CompanyName.CustomButton.Image = Nothing
        Me.txt_CompanyName.CustomButton.Location = New System.Drawing.Point(498, 1)
        Me.txt_CompanyName.CustomButton.Name = ""
        Me.txt_CompanyName.CustomButton.Size = New System.Drawing.Size(21, 21)
        Me.txt_CompanyName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_CompanyName.CustomButton.TabIndex = 1
        Me.txt_CompanyName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_CompanyName.CustomButton.UseSelectable = True
        Me.txt_CompanyName.CustomButton.Visible = False
        Me.txt_CompanyName.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_CompanyName.Lines = New String(-1) {}
        Me.txt_CompanyName.Location = New System.Drawing.Point(23, 88)
        Me.txt_CompanyName.MaxLength = 32767
        Me.txt_CompanyName.Name = "txt_CompanyName"
        Me.txt_CompanyName.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_CompanyName.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_CompanyName.SelectedText = ""
        Me.txt_CompanyName.SelectionLength = 0
        Me.txt_CompanyName.SelectionStart = 0
        Me.txt_CompanyName.ShortcutsEnabled = True
        Me.txt_CompanyName.Size = New System.Drawing.Size(520, 23)
        Me.txt_CompanyName.TabIndex = 1
        Me.txt_CompanyName.UseSelectable = True
        Me.txt_CompanyName.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_CompanyName.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'txt_PhysicalAddress
        '
        '
        '
        '
        Me.txt_PhysicalAddress.CustomButton.Image = Nothing
        Me.txt_PhysicalAddress.CustomButton.Location = New System.Drawing.Point(117, 2)
        Me.txt_PhysicalAddress.CustomButton.Name = ""
        Me.txt_PhysicalAddress.CustomButton.Size = New System.Drawing.Size(137, 137)
        Me.txt_PhysicalAddress.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_PhysicalAddress.CustomButton.TabIndex = 1
        Me.txt_PhysicalAddress.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_PhysicalAddress.CustomButton.UseSelectable = True
        Me.txt_PhysicalAddress.CustomButton.Visible = False
        Me.txt_PhysicalAddress.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_PhysicalAddress.Lines = New String(-1) {}
        Me.txt_PhysicalAddress.Location = New System.Drawing.Point(23, 142)
        Me.txt_PhysicalAddress.MaxLength = 32767
        Me.txt_PhysicalAddress.Multiline = True
        Me.txt_PhysicalAddress.Name = "txt_PhysicalAddress"
        Me.txt_PhysicalAddress.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_PhysicalAddress.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_PhysicalAddress.SelectedText = ""
        Me.txt_PhysicalAddress.SelectionLength = 0
        Me.txt_PhysicalAddress.SelectionStart = 0
        Me.txt_PhysicalAddress.ShortcutsEnabled = True
        Me.txt_PhysicalAddress.Size = New System.Drawing.Size(257, 142)
        Me.txt_PhysicalAddress.TabIndex = 3
        Me.txt_PhysicalAddress.UseSelectable = True
        Me.txt_PhysicalAddress.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_PhysicalAddress.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'lbl_PhysicalAddress
        '
        Me.lbl_PhysicalAddress.AutoSize = True
        Me.lbl_PhysicalAddress.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_PhysicalAddress.Location = New System.Drawing.Point(23, 114)
        Me.lbl_PhysicalAddress.Name = "lbl_PhysicalAddress"
        Me.lbl_PhysicalAddress.Size = New System.Drawing.Size(137, 25)
        Me.lbl_PhysicalAddress.TabIndex = 2
        Me.lbl_PhysicalAddress.Text = "Physical Address"
        '
        'txt_BillingAddress
        '
        '
        '
        '
        Me.txt_BillingAddress.CustomButton.Image = Nothing
        Me.txt_BillingAddress.CustomButton.Location = New System.Drawing.Point(117, 2)
        Me.txt_BillingAddress.CustomButton.Name = ""
        Me.txt_BillingAddress.CustomButton.Size = New System.Drawing.Size(137, 137)
        Me.txt_BillingAddress.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_BillingAddress.CustomButton.TabIndex = 1
        Me.txt_BillingAddress.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_BillingAddress.CustomButton.UseSelectable = True
        Me.txt_BillingAddress.CustomButton.Visible = False
        Me.txt_BillingAddress.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_BillingAddress.Lines = New String(-1) {}
        Me.txt_BillingAddress.Location = New System.Drawing.Point(286, 142)
        Me.txt_BillingAddress.MaxLength = 32767
        Me.txt_BillingAddress.Multiline = True
        Me.txt_BillingAddress.Name = "txt_BillingAddress"
        Me.txt_BillingAddress.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_BillingAddress.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_BillingAddress.SelectedText = ""
        Me.txt_BillingAddress.SelectionLength = 0
        Me.txt_BillingAddress.SelectionStart = 0
        Me.txt_BillingAddress.ShortcutsEnabled = True
        Me.txt_BillingAddress.Size = New System.Drawing.Size(257, 142)
        Me.txt_BillingAddress.TabIndex = 5
        Me.txt_BillingAddress.UseSelectable = True
        Me.txt_BillingAddress.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_BillingAddress.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'lbl_BillingAddress
        '
        Me.lbl_BillingAddress.AutoSize = True
        Me.lbl_BillingAddress.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_BillingAddress.Location = New System.Drawing.Point(286, 114)
        Me.lbl_BillingAddress.Name = "lbl_BillingAddress"
        Me.lbl_BillingAddress.Size = New System.Drawing.Size(123, 25)
        Me.lbl_BillingAddress.TabIndex = 4
        Me.lbl_BillingAddress.Text = "Billing Address"
        '
        'txt_PhoneNumber
        '
        '
        '
        '
        Me.txt_PhoneNumber.CustomButton.Image = Nothing
        Me.txt_PhoneNumber.CustomButton.Location = New System.Drawing.Point(235, 1)
        Me.txt_PhoneNumber.CustomButton.Name = ""
        Me.txt_PhoneNumber.CustomButton.Size = New System.Drawing.Size(21, 21)
        Me.txt_PhoneNumber.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_PhoneNumber.CustomButton.TabIndex = 1
        Me.txt_PhoneNumber.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_PhoneNumber.CustomButton.UseSelectable = True
        Me.txt_PhoneNumber.CustomButton.Visible = False
        Me.txt_PhoneNumber.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_PhoneNumber.Lines = New String(-1) {}
        Me.txt_PhoneNumber.Location = New System.Drawing.Point(286, 315)
        Me.txt_PhoneNumber.MaxLength = 32767
        Me.txt_PhoneNumber.Name = "txt_PhoneNumber"
        Me.txt_PhoneNumber.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_PhoneNumber.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_PhoneNumber.SelectedText = ""
        Me.txt_PhoneNumber.SelectionLength = 0
        Me.txt_PhoneNumber.SelectionStart = 0
        Me.txt_PhoneNumber.ShortcutsEnabled = True
        Me.txt_PhoneNumber.Size = New System.Drawing.Size(257, 23)
        Me.txt_PhoneNumber.TabIndex = 9
        Me.txt_PhoneNumber.UseSelectable = True
        Me.txt_PhoneNumber.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_PhoneNumber.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'lbl_PhoneNumber
        '
        Me.lbl_PhoneNumber.AutoSize = True
        Me.lbl_PhoneNumber.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_PhoneNumber.Location = New System.Drawing.Point(286, 287)
        Me.lbl_PhoneNumber.Name = "lbl_PhoneNumber"
        Me.lbl_PhoneNumber.Size = New System.Drawing.Size(129, 25)
        Me.lbl_PhoneNumber.TabIndex = 8
        Me.lbl_PhoneNumber.Text = "Phone Number"
        '
        'txt_FaxNumber
        '
        '
        '
        '
        Me.txt_FaxNumber.CustomButton.Image = Nothing
        Me.txt_FaxNumber.CustomButton.Location = New System.Drawing.Point(235, 1)
        Me.txt_FaxNumber.CustomButton.Name = ""
        Me.txt_FaxNumber.CustomButton.Size = New System.Drawing.Size(21, 21)
        Me.txt_FaxNumber.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_FaxNumber.CustomButton.TabIndex = 1
        Me.txt_FaxNumber.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_FaxNumber.CustomButton.UseSelectable = True
        Me.txt_FaxNumber.CustomButton.Visible = False
        Me.txt_FaxNumber.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_FaxNumber.Lines = New String(-1) {}
        Me.txt_FaxNumber.Location = New System.Drawing.Point(23, 315)
        Me.txt_FaxNumber.MaxLength = 32767
        Me.txt_FaxNumber.Name = "txt_FaxNumber"
        Me.txt_FaxNumber.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_FaxNumber.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_FaxNumber.SelectedText = ""
        Me.txt_FaxNumber.SelectionLength = 0
        Me.txt_FaxNumber.SelectionStart = 0
        Me.txt_FaxNumber.ShortcutsEnabled = True
        Me.txt_FaxNumber.Size = New System.Drawing.Size(257, 23)
        Me.txt_FaxNumber.TabIndex = 7
        Me.txt_FaxNumber.UseSelectable = True
        Me.txt_FaxNumber.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_FaxNumber.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'lbl_FaxNumber
        '
        Me.lbl_FaxNumber.AutoSize = True
        Me.lbl_FaxNumber.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_FaxNumber.Location = New System.Drawing.Point(23, 287)
        Me.lbl_FaxNumber.Name = "lbl_FaxNumber"
        Me.lbl_FaxNumber.Size = New System.Drawing.Size(105, 25)
        Me.lbl_FaxNumber.TabIndex = 6
        Me.lbl_FaxNumber.Text = "Fax Number"
        '
        'txt_Email
        '
        '
        '
        '
        Me.txt_Email.CustomButton.Image = Nothing
        Me.txt_Email.CustomButton.Location = New System.Drawing.Point(498, 1)
        Me.txt_Email.CustomButton.Name = ""
        Me.txt_Email.CustomButton.Size = New System.Drawing.Size(21, 21)
        Me.txt_Email.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_Email.CustomButton.TabIndex = 1
        Me.txt_Email.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_Email.CustomButton.UseSelectable = True
        Me.txt_Email.CustomButton.Visible = False
        Me.txt_Email.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_Email.Lines = New String(-1) {}
        Me.txt_Email.Location = New System.Drawing.Point(23, 369)
        Me.txt_Email.MaxLength = 32767
        Me.txt_Email.Name = "txt_Email"
        Me.txt_Email.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_Email.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_Email.SelectedText = ""
        Me.txt_Email.SelectionLength = 0
        Me.txt_Email.SelectionStart = 0
        Me.txt_Email.ShortcutsEnabled = True
        Me.txt_Email.Size = New System.Drawing.Size(520, 23)
        Me.txt_Email.TabIndex = 11
        Me.txt_Email.UseSelectable = True
        Me.txt_Email.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_Email.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'lbl_Email
        '
        Me.lbl_Email.AutoSize = True
        Me.lbl_Email.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_Email.Location = New System.Drawing.Point(23, 341)
        Me.lbl_Email.Name = "lbl_Email"
        Me.lbl_Email.Size = New System.Drawing.Size(53, 25)
        Me.lbl_Email.TabIndex = 10
        Me.lbl_Email.Text = "Email"
        '
        'txt_Serial
        '
        '
        '
        '
        Me.txt_Serial.CustomButton.Image = Nothing
        Me.txt_Serial.CustomButton.Location = New System.Drawing.Point(476, 2)
        Me.txt_Serial.CustomButton.Name = ""
        Me.txt_Serial.CustomButton.Size = New System.Drawing.Size(41, 41)
        Me.txt_Serial.CustomButton.Style = MetroFramework.MetroColorStyle.Blue
        Me.txt_Serial.CustomButton.TabIndex = 1
        Me.txt_Serial.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light
        Me.txt_Serial.CustomButton.UseSelectable = True
        Me.txt_Serial.CustomButton.Visible = False
        Me.txt_Serial.FontSize = MetroFramework.MetroTextBoxSize.Medium
        Me.txt_Serial.Lines = New String(-1) {}
        Me.txt_Serial.Location = New System.Drawing.Point(23, 423)
        Me.txt_Serial.MaxLength = 32767
        Me.txt_Serial.Multiline = True
        Me.txt_Serial.Name = "txt_Serial"
        Me.txt_Serial.PasswordChar = Global.Microsoft.VisualBasic.ChrW(0)
        Me.txt_Serial.ScrollBars = System.Windows.Forms.ScrollBars.None
        Me.txt_Serial.SelectedText = ""
        Me.txt_Serial.SelectionLength = 0
        Me.txt_Serial.SelectionStart = 0
        Me.txt_Serial.ShortcutsEnabled = True
        Me.txt_Serial.Size = New System.Drawing.Size(520, 46)
        Me.txt_Serial.TabIndex = 13
        Me.txt_Serial.UseSelectable = True
        Me.txt_Serial.WaterMarkColor = System.Drawing.Color.FromArgb(CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer), CType(CType(109, Byte), Integer))
        Me.txt_Serial.WaterMarkFont = New System.Drawing.Font("Segoe UI", 12.0!, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel)
        '
        'lbl_Serial
        '
        Me.lbl_Serial.AutoSize = True
        Me.lbl_Serial.FontSize = MetroFramework.MetroLabelSize.Tall
        Me.lbl_Serial.Location = New System.Drawing.Point(23, 395)
        Me.lbl_Serial.Name = "lbl_Serial"
        Me.lbl_Serial.Size = New System.Drawing.Size(53, 25)
        Me.lbl_Serial.TabIndex = 12
        Me.lbl_Serial.Text = "Serial"
        '
        'MetroButton1
        '
        Me.MetroButton1.FontSize = MetroFramework.MetroButtonSize.Tall
        Me.MetroButton1.Location = New System.Drawing.Point(23, 475)
        Me.MetroButton1.Name = "MetroButton1"
        Me.MetroButton1.Size = New System.Drawing.Size(126, 51)
        Me.MetroButton1.TabIndex = 14
        Me.MetroButton1.Text = "MetroButton1"
        Me.MetroButton1.UseSelectable = True
        '
        'MetroButton2
        '
        Me.MetroButton2.FontSize = MetroFramework.MetroButtonSize.Tall
        Me.MetroButton2.Location = New System.Drawing.Point(417, 475)
        Me.MetroButton2.Name = "MetroButton2"
        Me.MetroButton2.Size = New System.Drawing.Size(126, 51)
        Me.MetroButton2.TabIndex = 15
        Me.MetroButton2.Text = "MetroButton2"
        Me.MetroButton2.UseSelectable = True
        '
        'frm_CompanyInformation
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle
        Me.ClientSize = New System.Drawing.Size(565, 548)
        Me.ControlBox = False
        Me.Controls.Add(Me.MetroButton2)
        Me.Controls.Add(Me.MetroButton1)
        Me.Controls.Add(Me.txt_Serial)
        Me.Controls.Add(Me.lbl_Serial)
        Me.Controls.Add(Me.txt_Email)
        Me.Controls.Add(Me.lbl_Email)
        Me.Controls.Add(Me.txt_PhoneNumber)
        Me.Controls.Add(Me.lbl_PhoneNumber)
        Me.Controls.Add(Me.txt_FaxNumber)
        Me.Controls.Add(Me.lbl_FaxNumber)
        Me.Controls.Add(Me.txt_BillingAddress)
        Me.Controls.Add(Me.lbl_BillingAddress)
        Me.Controls.Add(Me.txt_PhysicalAddress)
        Me.Controls.Add(Me.lbl_PhysicalAddress)
        Me.Controls.Add(Me.txt_CompanyName)
        Me.Controls.Add(Me.lbl_CompanyName)
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "frm_CompanyInformation"
        Me.Resizable = False
        Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
        Me.Style = MetroFramework.MetroColorStyle.Purple
        Me.Text = "Company Information"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

    Friend WithEvents lbl_CompanyName As MetroFramework.Controls.MetroLabel
    Friend WithEvents txt_CompanyName As MetroFramework.Controls.MetroTextBox
    Friend WithEvents txt_PhysicalAddress As MetroFramework.Controls.MetroTextBox
    Friend WithEvents lbl_PhysicalAddress As MetroFramework.Controls.MetroLabel
    Friend WithEvents txt_BillingAddress As MetroFramework.Controls.MetroTextBox
    Friend WithEvents lbl_BillingAddress As MetroFramework.Controls.MetroLabel
    Friend WithEvents txt_PhoneNumber As MetroFramework.Controls.MetroTextBox
    Friend WithEvents lbl_PhoneNumber As MetroFramework.Controls.MetroLabel
    Friend WithEvents txt_FaxNumber As MetroFramework.Controls.MetroTextBox
    Friend WithEvents lbl_FaxNumber As MetroFramework.Controls.MetroLabel
    Friend WithEvents txt_Email As MetroFramework.Controls.MetroTextBox
    Friend WithEvents lbl_Email As MetroFramework.Controls.MetroLabel
    Friend WithEvents txt_Serial As MetroFramework.Controls.MetroTextBox
    Friend WithEvents lbl_Serial As MetroFramework.Controls.MetroLabel
    Friend WithEvents MetroButton1 As MetroFramework.Controls.MetroButton
    Friend WithEvents MetroButton2 As MetroFramework.Controls.MetroButton
End Class

Textbox can't set focus

When using the the "Form1 : MetroFramework.Forms.MetroForm" I cant have a metroTextBox1 "active" Tab Index is 0. I want to start typing in the textbox. Before I can input I must click on the textbox. When I remove MetroFramework.Forms.MetroForm and use standard winform "Form1 : Form" I can start typing in the textbox.

Is this an Error?
Compleate "Form1.cs code"
public partial class Form1 : Form

{
    public Form1()
    {
        InitializeComponent();
    }

    private void metroUserControl1_Load(object sender, EventArgs e)
    {

    }

    private void Form1_Load(object sender, EventArgs e)
    {
        metroTextBox1.Focus();
    }
}

Improve CD/CD pipeline - Appveyor/Cakebuild?

Hey guys,

In relation to the following tickets:

  • "Update Nuget to latest GitHub Version #25".
  • New release? #26

We are using this project for the internal tooling as well as moving forward with some public tools. Noticed that CI/CD pipeline can be improved to get CI build up and running and NuGet packaging done automatically under CI pipeline.

Can help out with setting up both Appveyor and Cakebuild, so that we'll have CI and automatic NuGet packaging both locally AND under CI.

Let me know if that's fine, will make branch and push later. cc/ @dennismagno @Spegeli

Window State maximised hides the app icon in taskbar

When the window state of a form is set to Maximised and the app is launched, then the app icon disappears in the taskbar. The app can be accessed only by Alt+Tab. On minimising the app and restoring brings back the app to taskbar.

MDI Parent Child Issue

Hello Sir
I am using your dll files in my project.

What is found in MDI Parent child forms using MetroForms, is that, when a MDI child is minimized in its parent, it can not be resized.

Can you help me out of this???

MessageBox Header cutoff

When showing a MetroMessageBox, the header ("title") is cutoff at the bottom. I have attached a screen shot. What can I do to fix this?

snap122

Form ControlBox is not Re-Styled

After the Form is loaded, if the Style changes, the ControlBox button styles aren't updated.

In MetroForm AddWindowsButton(), I found that MetroButtons are created, but their Style and Theme are set to the current ones of the Form and never updated.

newButton.Style = Style;
newButton.Theme = Theme;

Using Default might resolve this issue?

MDI Forms

Hi!
Is there any movement for the development of MetroFramework to be used with MDI forms?

Bests,
Theo.

PromptText and Watermark issue (on Textbox only?)

I dont know if this happens only on the Textbox control but:

when i write something in the Watermark Value Field, the same Input appears in the PromptText Value Field?!
And then we get the Info that PromptText is no longer supported and we should use Watermark instead.
But when i remove the Info from the PromptText Field it also gets removed from the Watermark Field?!

StackOverflowException Exception thrown on CursorChanged

When changing the Cursor and you have few MetroTextBoxes and Labels on the forms
it throws an Exception
private void metroButton1_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; }
An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
and the program Crush.

Panel with Problems!

Hi,

After the last change in PANEL, if we try to scroll it vertical or horizontal we got the error:

NULL REFERENCE at lines:
290 = HorizontalScrolled(this,e) and
298 = VerticalScrolled(this,e)

and the arrows disapeared (due to AutoScroll?).

Thanks.

MetroMessageBox not work MessageBoxDefaultButton

Hello,
I'm trying to change the default button with this method

public static DialogResult Show(IWin32Window owner, string message, string title, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultbutton);

however, it does not change the default button.

dll
metromessagebox

metrotextbox ScrollToCaret missing

How to scroll to the end using the Winform MetroTextbox (MetroFramework).

The metrotextbox does not have the "ScrollToCaret" method. What do I do instead?

不支持设置icon

窗体左上角不显示 icon,标题栏修改的太严重了,不符合现在的使用习惯

MetroFonts.cs

MetroFonts.cs is a referrence file and i cannot edit it, anyway i also dont know how to customize the fonts to my preferred one

Details ListView content display issue

The amount of content that is displayed in the columns of a Details ListView is based solely on the first column.

For example: Column0 has 5 characters in it and Coulumn1 has 10 characters in it. I adjust Column0 to display only 3 characters Column1 only displays 3 characters as well no matter how wide I make it.

New release?

Dear sir,
I saw you are you working to a new release of framework 1.4.0 on github, but I can't find the source where download it.
May you help me?
Thanks in advance,
bye!

GroupBox

Hello. Is it possible to make a metro group box?

Panel - HorizontalBar not appearing

The HorizontalBar of PANEL is not appearing in Runtime mode - just in DesignMode.
I put many other controls within it. In DesignMode both bars are appearing normally, but during runtime only the VerticalBar is acting.

Thank you.

ListView Item BackColor

I am not able to change ListView Item BackColor. Could you please help me?
if (!File.Exists(outputPath)) { item.BackColor = Color.Gray; }
Note: I set UseCustomBackColor property to "true"

Taskbar icon does not support multiple screens

Please help, I have tried to review all the code this Framework adds and cannot get to the bottom of it.

When creating a brand new Windows application, update the Form1 : Form to Form1 : MetroForm, this breaks the taskbar icon and forces it to the main screen only. Move the application window to the 2nd screen, the Taskbar icon does not go with it.

Every other app does it fine, a brand new Windows Forms app works correctly. It is only when I make this a MetroForm.

Powershell + MetroFramework Modern UI

Hello.
Can i use Metro Framework with Powershell?

I use standard Windows Form like:


Add-Type -assembly System.Windows.Forms
    $main_form = New-Object System.Windows.Forms.Form
    $main_form.Text ='Main menu'
    $main_form.Width = 970
    $main_form.Height = 640
    $main_form.AutoSize = $true

How to use your MetroFramework? Is it possible for Powershell?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.