Display: Cloud | List
Most Popular Tags
Results (8 total) All > .net (x) > visual (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
Easy way using TableAdaptors (Retrieving Identity or Autonumber Values)
I found a great way for Retrieving Identity or Autonumber Values from Access when using VB .NET 2008 TableAdaptors.Adding a row using a TableAdaptor typically looks like this:Dim myDataRow As DataRow = Me.tablenameDataRowMe.myDataSet.tablename.Rows.Add(myDataRow)Me.tablenameTableAdapter.Update(myDataRow)An easy way to retrieve the Identity value is to open the TableAdaptor connection prior to the
Last modified by Art_B on 2/26/2010 5:44:33 PM
Cannot add a new Server Connection (How to: Add New Data Connections in Server Explorer/Database Explorer)
hi!i was trying to add a new database connection but a got this error message: cannot find de data source. The name file does not exists(or something like that)anyway, i removed my server, and then a tried to add a new one, but the error log is as follows: "Server name PC-3\SQLEXPRESS could not be found" i dont know why is happening this.im usin SQL Managment Studio Express Editon and Visual Studi
Last modified by ElizabethLuna on 12/3/2009 7:56:08 PM
Tags:  .net  express  server  sql  studio  visual
Using the WscGetSecurityProviderHealth Function in Visual Basic .Net (WscGetSecurityProviderHealth function (Windows))
Some people are looking for this funtion implementation is social msdn forum, so I thought I will put a simple example Declare Function WscGetSecurityProviderHealth Lib "Wscapi" (ByVal InValue As Integer, ByRef outValue As Integer) As IntegerPublic Enum _WSC_SECURITY_PROVIDERWSC_SECURITY_PROVIDER_FIREWALL = 1WSC_SECURITY_PROVIDER_AUTOUPDATE_SETTINGS = 2WSC_SECURITY_PROVIDER_ANTIVIRUS = 4WSC_SECUR
Last modified by Arjun Paudel on 4/5/2009 2:30:41 PM
Page view tracker