Display: Cloud | List
Most Popular Tags
Results (8 total) All > .net (x) > code (x)
VB.Net code sample. (ButtonBase.FlatAppearance Property (System.Windows.Forms))
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.BackColor = Color.Black Button1.ForeColor = Color.White Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red Button1.FlatAppearance.BorderSize = 1 Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat End Sub End Class
Last modified by John Anthony Oliver on 1/31/2011 4:58:45 PM
VB.Net code sample. (ButtonBase.FlatAppearance Property (System.Windows.Forms))
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.BackColor = Color.Black Button1.ForeColor = Color.White Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red Button1.FlatAppearance.BorderSize = 1 Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat End Sub End Class
Last modified by John Anthony Oliver on 1/31/2011 4:37:35 PM
"setting" the FlatAppearance property (ButtonBase.FlatAppearance Property (System.Windows.Forms))
.NET 2.0 allows FlatAppearance properties to be set, but the help text says it is read only.   The FlatAppearance property is of type FlatButtonAppearance.  You can't set the property value itself, but you can access the property and set the FlatButtonAppearance property values.  (See http://msdn2.microsoft.com/en-us/library/system.windows.forms.flatbuttonappearance_members.aspx for a list of ava
Last modified by MollyBos - MSFT on 3/29/2007 7:58:57 PM
VB.Net code sample. (ButtonBase.FlatAppearance Property (System.Windows.Forms))
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.BackColor = Color.Black Button1.ForeColor = Color.White Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red Button1.FlatAppearance.BorderSize = 1 Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat End Sub End Class
Last modified by John Anthony Oliver on 1/31/2011 4:25:00 PM
VB.Net code sample. (ButtonBase.FlatAppearance Property (System.Windows.Forms))
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.BackColor = Color.Black Button1.ForeColor = Color.White Button1.FlatAppearance.BorderColor = System.Drawing.Color.Red Button1.FlatAppearance.BorderSize = 1 Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat End Sub End Class
Last modified by John Anthony Oliver on 1/31/2011 4:25:46 PM
Please Use the following C# code snippet to reade the values from App.Config in .Net 3.5 environment.AppSettingsReader reader = new AppSettingsReader(); NameValueCollection appStgs = System.Configuration.ConfigurationSettings.AppSettings; string[] names = System.Configuration.ConfigurationSettings.AppSettings.AllKeys; String value = String.Empty; for (int i = 0; i < appStgs.Count; i++){
Last modified by Thomas Lee on 9/8/2009 6:39:48 PM
Tags:  .net  c#  code  contentbug
Windows PowerShell processing Mailitem from Inbox (PIA Version) (MailItem Object [Outlook 2007 Developer Reference])
Windows PowerShell Sampleusing the PIA (significantly faster at least in my tests on Vista) #using PIA - you probably want to check this first:# http://msdn2.microsoft.com/en-us/library/bb646840.aspx $outlook = New-Object Microsoft.Office.Interop:Outlook# 6 equals to Inbox according to# http://msdn2.microsoft.com/en-us/library/bb208072.aspx$olInbox = $outlook.Session.GetDefaultFolder(6)
Last modified by Thomas Lee on 4/28/2008 3:50:30 PM
TryParse sample using PowerShell (IPAddress.TryParse Method (System.Net))
# Try-Parse.ps1# Sample showing use of TryParse() method# Thomas Lee - tfl@psp.co.uk # Create an IP address variable# Note: the address used here seems irrelevant to what's sent to TryParse$ip1= [system.net.ipaddress] "127.0.0.1" # Try parsing an IP address$IpAddrString = "10.1.1.1"$ipok = [System.Net.Ipaddress]::TryParse($IpAddrString, [ref] $ip) # display resultsif ($ipok) {"The IP a
Last modified by Thomas Lee on 4/21/2008 5:36:28 PM
Tags:  .net  code  powershell
Page view tracker