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
  • VB Silent Install

    com question announcement workspace
    3
    0 Votes
    3 Posts
    0 Views
    D
    To answer my own question! http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q182470&[^] Davy Weblog, Ramblings and more... www.latedecember.com
  • File processing with VB

    help
    2
    0 Votes
    2 Posts
    0 Views
    L
    You can use the FileSystemObject to do this.First of all, add a reference to "Microsoft Scripting Runtime". The add the followinf code (more or less) : ********************************************************************** Dim FSys as New FileSystemObject Dim txtStr as TextStream, iLine as Integer Set txtStr = FSys.OpenTextFile (FileName) Do While Not (txtStr.AtEndOfStream) txtStr.SkipLine Loop iLine = txtStr.Line ********************************************************************** This should be faster than reading the whole text file line by line :)
  • Drawing Issue

    graphics help question
    5
    0 Votes
    5 Posts
    0 Views
    J
    From with a paint event handler, you can use e.Graphics.FillRectangle(Color.White, Rect) replacing Rect with the rectangle you want to fill. Did that answer your question? Jamie. Jamie Nordmeyer Portland, Oregon, USA
  • Multipage .Tiff files

    graphics help question
    2
    0 Votes
    2 Posts
    0 Views
    Z
    i figured it out. thanks:-O Zulfikar Ali
  • VBS script question ( simple one )

    question c++ windows-admin linux tools
    4
    0 Votes
    4 Posts
    0 Views
    V
    What is about MyPath = WScript.Path? Or using WScript.ScriptFullName and WScript.ScriptName? With best wishes, Vita
  • how to get IP and LAN card address?

    csharp help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    V
    Hi, You can get IP address from the methods in System.Net.Dns class Deepak Kumar Vasudevan http://deepak.portland.co.uk/
  • Launching External Exe File

    help tutorial
    3
    0 Votes
    3 Posts
    0 Views
    V
    Hi, You may use Process.Start (from System.Diagnostics.Process). That provides granular control over the process you are starting. Perhaps the following URL should open MSDN Documentation too: ms-help://MS.NETFrameworkSDK/cpref/html/frlrfsystemdiagnosticsprocessclassstarttopic.htm process.Start("http://www.codeproject.com") where process is an object of Process opens the default browser and navigates to codeproject.com While shell might still execute system commands, you might not be able to control execution of those programs to the level that Process allows you to do so. Deepak Kumar Vasudevan http://deepak.portland.co.uk/
  • how can I create a top most form?

    question
    3
    0 Votes
    3 Posts
    0 Views
    D
    In VB.NET, set the TopMost property to True. In VB6, search MSDN for Q184297 lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
  • VB 6.0 Printer Port

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Define an object?

    tutorial help question
    3
    0 Votes
    3 Posts
    0 Views
    Z
    Thanks for the links. I will check it out right now. this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
  • Parent/child data in vb6 with listbox

    database
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Enumerating Servers on Win9x

    csharp sysadmin json
    2
    0 Votes
    2 Posts
    0 Views
    M
    Nevermind, I figured this out!
  • visual basic mdi form

    4
    0 Votes
    4 Posts
    0 Views
    P
    Wow, the Zen of MDI... Pete Insert Sig. Here!
  • Prepare for extremely stupid question!

    question csharp c++
    2
    0 Votes
    2 Posts
    0 Views
    P
    Are you talking about the System.threading.Timer? If so, you should have a look at the MSDN regarding them. I just read this. Use a TimerCallback delegate to specify the methods associated with a Timer. The methods do not execute in the thread that created the timer; they execute in a separate thread that is automatically allocated by the system If you're talking about the System.Timers.Timer then you're also in trouble Note The event-handling method may be called even after the Stop method is called. The event-handling method may run on one thread at the same time that a call to the Stop method runs on another thread. This might result in the Elapsed event being raised even after the Stop method is called. To prevent this, use the SignalTime property to compare the time the event was raised to the time the Stop method was called. If the event was raised after the Stop method was called, do not process the event. Pete Pete Insert Sig. Here!
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • connecting to network folder using vb.net

    question csharp sysadmin help
    2
    0 Votes
    2 Posts
    0 Views
    M
    Well, I am not sure but I am thinking that no matter how you select that Share, it will prompt you for a User / Password, so you may not have to handle that in your App.
  • netapi32.dll and windows 98 ? (VB.NET)

    csharp json help tutorial
    5
    0 Votes
    5 Posts
    0 Views
    M
    Yes, there is a way to Enumerate Servers on Win9x. However, I can't get the Code I have to work just right in VB.NET. If someone out there can help on this it would be great!!! The only thing it does is it keeps recusing the Top-Level Network Node (i.e. "Microsoft Windows Network" for me). Here's what I have so far: :~ 'Declarations 'API Declarations Private Declare Auto Function GlobalAlloc Lib "kernel32" (ByVal wFlags As Integer, ByVal dwBytes As Integer) As Integer Private Declare Auto Function GlobalFree Lib "kernel32" (ByVal hMem As Integer) As Integer 'API Declarations for Win9x Private Declare Ansi Function WNetOpenEnum Lib "mpr.dll" Alias "WNetOpenEnumA" (ByVal dwScope As Integer, ByVal dwType As Integer, ByVal dwUsage As Integer, ByRef lpNetResource As IntPtr, ByRef lphEnum As Integer) As Integer Private Declare Ansi Function WNetEnumResource Lib "mpr.dll" Alias "WNetEnumResourceA" (ByVal hEnum As Integer, ByRef lpcCount As Integer, ByVal lpBuffer As Integer, ByRef lpBufferSize As Integer) As Integer Private Declare Ansi Function WNetCloseEnum Lib "mpr.dll" (ByVal hEnum As Integer) As Integer 'Structures _ Private Structure NETRESOURCE Dim Scope As Integer Dim Type As Integer Dim DisplayType As Integer Dim Usage As Integer Dim LocalName As IntPtr Dim RemoteName As IntPtr Dim Comment As IntPtr Dim Provider As IntPtr End Structure 'Constants for WNetEnum Private Enum ResourceScopes resConnected = &H1 'All currently connected resources (the dwUsage parameter is ignored) resGlobalNet = &H2 'All resources on the network. resRemembered = &H3 'All remembered (persistent) connections (dwUsage is ignored) resRecent = &H4 resContext = &H5 End Enum Private Enum ResourceTypes resAny = &H0 'All resources (this value cannot be combined with RESOURCETYPE_DISK or RESOURCETYPE_PRINT). resDisk = &H1 'All disk resources. resPrinter = &H2 'All print resources. resReserved = &H8 resUnknown = &HFFFF End Enum Private Enum ResourceUseages 'Ignored if the ResourceScope is not 'resGlobalNet' resAll = ((&H1) Or (&H2)) resConnectable = &H1 resContainer = &H2 resNoLocalDevice = &H4 resSibling = &H8 resReserved = &H80000000 End Enum Private Enum ResourceDisplayTypes 'Used to Determine the Resource Type of the NETRESOURCE Struct resGeneric = &H0 resDomain = &H1 resServer = &H2 resShare = &H3 r
  • changing cursor

    com help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • .NET Remoting in VB.NET

    csharp com help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Update Registry permissions

    windows-admin question announcement
    2
    0 Votes
    2 Posts
    0 Views
    I
    Nope. It's handled by the file system. "The greatest danger to humanity is humanity without an open mind." - Ian Mariano http://www.ian-space.com/