Display: Cloud | List
Most Popular Tags
Results (269 total) All > vb.net (x)
The example given on this page has an extra closing bracket on line 34. Remove it and then you can convert this example to VB.NET, as I have done below:Imports System.IOImports System.NetImports System.TextNamespace Examples.System.Net Public Class WebRequestGetExample Public Shared Sub Main() ' Get the object used to communicate with the server. Dim request As Ftp
Last modified by NCGordon on 1/26/2012 6:58:18 PM
Tags:  2010  ftp  upload  vb.net
VB.NET Signature (DestroyCursor function (Windows))
<System.Runtime.InteropServices.DllImport("user32.dll")> _Private Shared Function DestroyCursor(ByVal hCursor As IntPtr) As IntegerEnd Function
Last modified by Mahesh Bagul on 6/10/2010 12:10:56 PM
Tags:  destroycursor  vb.net
Examples always help (SqlDataReader.IsDBNull Method (System.Data.SqlClient))
MS add examples so people are aware how to use the functions:In C#:You can do something to the effect of:txtMiddleName.Text= rdrGetUserInfo.IsDBNull(1)?String.Empty: rdrGetUserInfo.GetString(1); Or even:strMyString = reader("SomeField").IsDBNull ? String.Empty : reader("SomeField").ToString();Basically checks if reader somefield is null, if it is assign the empty string, else assign the string st
Last modified by Jon Hermiz on 3/22/2010 3:00:17 PM
Tags:  c#  examples  vb.net
Wish there was a clearer, more VB way VB.NET example (SmtpClient Class (System.Net.Mail))
The user submitted VB examples are a good effort but really there should be an official VB.NET example. One clear tutorial is in a paper book - Murach's ASP.NET 3.5 with VB 2008 by Anne Boehm.
Last modified by AnandaSim on 2/19/2010 2:31:53 AM
Tags:  example  murach  vb.net
VB.NET example of using this API to get parent process ID (NtQueryInformationProcess function (Windows))
Public Const PROCESSBASICINFORMATION As UInteger = 0 <System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential, Pack:=1)> _ Public Structure Process_Basic_Information Public ExitStatus As IntPtr Public PepBaseAddress As IntPtr Public AffinityMask As IntPtr Public BasePriority As IntPtr Public UniqueProc
Last modified by Chris128 on 2/6/2010 3:15:12 AM
Tags:  get  id  parent  process  vb.net
Passing a Char to String.Equals(Object) (String.Equals Method (Object) (System))
The return value in the above doc says;true if obj is a String and its value is the same as this instance; otherwise, false.VB programmers should note that if try to pass a Char to this method, the VB compiler will rewrite your code - in IL it will actually encode the Char into a String and pass it to String.Equals(String). C# programmers do not have this worry - the C# compiler doesn't do this "
Last modified by Collin Sauve on 1/27/2010 2:57:15 PM
Tags:  compiler  magic  vb.net
In a VB.NET application that plays WAV sounds asynchronously, using the SoundPlayer class or the Win32 PlaySound call, the 'garbage collector' may free and reuse the memory before the sound has finished. This situation is easy to recognise, and hard to forget: it sounds hideous. A working solution is the following 'clsSound' class:-------------------------------------------------Imports System.IOC
Last modified by -eVe- on 1/22/2010 9:33:48 AM
VB.NET Signature (LoadCursor function (Windows))
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _Public Shared Function LoadCursor( _ByVal hInstance As IntPtr, _ByVal lpCursorName As Integer) As IntPtrEnd Function..
Last modified by Reddevile on 1/4/2010 9:44:00 PM
Tags:  loadcursor  vb.net
Visual Basic Language Concepts  Development with My  Visual Basic provides new features for rapid application development that improve productivity and ease of use while delivering power. One of these features, called My, provides access to information and default object instances that are related to the application and its run-time environment. This information is organized in a
Last modified by Microsoft on 12/18/2006 11:17:07 PM
Tags:  namespace  vb.net
Nimesh (Accessibility Validation Dialog Box)
NameSpace is logical group of classies which help to develop an application. Namespace allows you to use in-built .NET Classes. "System" at top(begining) of the code behind page.In C#, We have to write "using" keyword begining of namespace e.g "using System".In VB, We have to write "Imports" keyword begining of namespace e.g "Imports System".System: Root for All other namespace in Dot Net. It is b
Last modified by Thomas Lee on 8/6/2009 2:37:08 PM
Tags:  .net  asp.net  c#  framework  namespace  vb.net
Page view tracker