Display: Cloud | List
Most Popular Tags
Results (88 total) All > vb (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:25:46 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:37:35 PM
VB Code Example Missing Program Class (WebServiceHost Class (System.ServiceModel.Web))
Why is the VB code missing the program class that the c# class has?
Last modified by YerbaMateMakesGreatTerere on 10/8/2010 11:21:51 PM
Tags:  bias  c#  vb
Visual Basic Sample - Sending SMTP Authenticated E-mail (SmtpClient.Credentials Property (System.Net.Mail))
' ' Visual Basic Sample - Sending SMTP Authenticated E-mail ' Private Sub SendEmail() Try ' Create a new MailMessage object and specify the "From" and "To" addresses Dim message As New MailMessage("From email", "To Email", "Subject", "Body message") Dim emailClient As New SmtpClient("smtp server") ' Authentication Dim basicAuthenticationInfo As New System.Net.Networ
Last modified by Thomas Lee on 9/2/2010 4:16:24 PM
Pointers in VB.NET? (StringBuilder.CopyTo Method (System.Text))
This is just because I am curious about everything.I was looking at a VB disassembly of the StringBuilder.CopyTo method using .NET Reflector 6, and a portion of it (its last part, actually) showed this:If (count <> 0) Then DimchRefAsChar* FixedchRef=AddressOf destination(destinationIndex) Dimstr2AsChar* Fixedstr2=DirectCast(threadSafeString, Char*)
Last modified by DavidRossG on 7/18/2010 3:13:36 PM
NonSerialized in VB (Walkthrough: Persisting an Object in Visual Basic)
Hi!In the example you show above for VB, the application of the NonSerialized attribute is not possible, because VB only lets you apply this attribute to a field. However if you would like to implement a NonSerialized event you can still do it by declaring a custom event as can be seen in my blog article on http://mokom.com.au/kyryll/?p=122#more-122.Happy coding,Kyryllkyryll.com
Last modified by Kyryll on 6/24/2010 12:32:17 AM
Tags:  event  nonserialized  vb
NonSerilized in VB (Walkthrough: Persisting an Object (C# and Visual Basic))
Hi!In the example you show above for VB, the application of the NonSerialized attribute is not possible, because VB only lets you apply this attribute to a field. However if you would like to implement a NonSerialized event you can still do it by declaring a custom event as can be seen in my blog article on http://mokom.com.au/kyryll/?p=122#more-122.Happy coding,Kyryllkyryll.com
Last modified by Kyryll on 6/24/2010 12:30:58 AM
Tags:  nonserialized  vb
About [field:NonSerialized] (NonSerializedAttribute Class (System))
In the above comment Greg D touches on the subject of serializing of the object that exposes an event ommiting the serialization of the event subscribers. While he does provide a solution for doing this in C# (even though he thinks its "hackish" :)) there is also a solution for VB available in my blog at http://mokom.com.au/kyryll/?p=122#more-122.Happy coding,Kyryll
Last modified by Kyryll on 6/24/2010 12:17:42 AM
Tags:  nonserialized  vb
Page view tracker