Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • GetEncoderInfo

    csharp html com graphics data-structures
    2
    0 Votes
    2 Posts
    6 Views
    Z
    I figured it out: 'Get an ImageCodecInfo object that represents the TIFF codec. myImageCodecInfo = GetEncoderInfo("image/Tiff") :-D Private Shared Function GetEncoderInfo(ByVal mimeType As [String]) As ImageCodecInfo Dim i As Integer Dim encoders() As ImageCodecInfo encoders = ImageCodecInfo.GetImageEncoders() For i = 0 To (encoders.Length - 1) If (encoders(i).MimeType = mimeType) Then Return encoders(i) End If Next i End Function 'GetEncoderInfo Zulfikar Ali
  • data source locator

    tutorial question workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • vb.net... progressbar

    csharp help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to invoke the default mail client from VC

    com tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Does VB Support recursion?

    question
    12
    0 Votes
    12 Posts
    0 Views
    D
    Maybe it's just his homework :~ Your incessant rantings indicate you have a brain the size of a pea, and the mental capacity of a bag of hammers. - John Simmons
  • Winsock control

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • windows control library

    csharp tutorial question workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • SQL BLOB image file conversion

    csharp database question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • New Kid On The Block Needs Help

    help csharp visual-studio tools question
    2
    0 Votes
    2 Posts
    0 Views
    R
    The MSDN Library consists of 3 CD's that will say MSDN Library.
  • getting problem with font installation

    help announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • event driven/object oriented

    oop
    3
    0 Votes
    3 Posts
    0 Views
    N
    Actually, it depends on the version. VB.Net is OOP but VB6 is only partially OOP. Both versions are event driven
  • Vertical Scrolling Only Panel

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Printing in draft mode in VB

    help
    2
    0 Votes
    2 Posts
    0 Views
    D
    Hi, I have solution for you HOW TO: Send Raw Data to a Printer by Using VB.NET : http://support.microsoft.com/?kbid=322090 It works fine Tancev Sasa
  • Subs and Functions w/ Optional Args

    question
    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    VB.NET: All optional variables have a constant default value. If no value is passed in, the argument will have the default value. You can manipulate it as much as you like, but when the procedure exits, your changes will be discarded. VB6: Optional arguments can have default values, in which case the same rules as VB.NET apply. If they don't have a default value, you will get an error when you try to access them. Use the IsMissing function to determine whether a value has been passed in.
  • Monochrome Bitmap

    question graphics
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • nework folder connection problem using vb.net

    sysadmin help csharp json
    2
    0 Votes
    2 Posts
    0 Views
    R
    Hi, I sense that You wanted to execute a file on a remote machine. You can create a process in remote machine using WMI. Try reading documentation on System.Management Namespace which speaks on WMI. Creating a process in this way can impersonate the user credentials that you have specified by your background process. Refer http://www.codeproject.com/useritems/wmi.asp for more details Ravi Shankar S Product Designer iSOFT R&D Pvt Ltd Chennai, INDIA Ph: 91-44-4414980 Extn 1103
  • Socket/TCPclient (Seriazlation)

    csharp help question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Printing on dot-matrix printer in .NET

    help csharp graphics sysadmin
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • AxInterop.AXRfaxVwRctrLLib

    com help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Object behaviour of simple data types?

    csharp help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    First, you can't check for null references with If x = Nothing ... - you have to use If x **Is** Nothing ... Second, you can't perform reference comparison on value types. If x is a value type, If x Is Nothing ... will not compile. Try something like: Public Class Test Private _id As Long Private _idSet As Boolean = False Public Property ID As Long Get Return \_id End Get Set(ByVal Value As Long) \_id = Value \_idSet = True End Set End Property Public Sub Save() If \_idSet Then 'Save Data Else 'Throw exception End If End Sub End Class