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
  • #Write Problems...

    game-dev help question
    2
    0 Votes
    2 Posts
    0 Views
    D
    VB6? It all depends on how strSaved and strSaved2 are declared. If they are declared as string, which I think they are, then you don't need the ".string" at the end of each variable. If they are declared as TextBoxes, then you use ".Text" instead of ".string" to return the contents of the TextBox. RageInTheMachine9532
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    G
    what do u need help on :confused: Game Tester
  • handling remote registry on a network

    sysadmin windows-admin question
    3
    0 Votes
    3 Posts
    0 Views
    R
    thank u very much that was a great help :)
  • Custom Control Lib VB Std Edition

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    The Template your looking for is the Windows Control Library Template. Your right, this template doesn't come with the Standard Edition compiler. You COULD write the code out by hand, but the problem is the Standard Edition compiler won't compile into a .DLL. You can check this by starting a project and clicking on Properties on the Project menu (all the way at the bottom.) Make sure your looking at the General tab on the left, and click on the Output Type dropdown list. If Class Library is not listed, you can't compile controls at all. RageInTheMachine9532
  • How to do this C# unsafe pointer passing in VB.NET

    csharp graphics help tutorial
    5
    0 Votes
    5 Posts
    0 Views
    D
    Sorry, but I haven't been able to get a solution to this problem to work. I'm still working on it, but It's been slow since I've been moving my girlfriend! 8) RageInTheMachine9532
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • New To VB.Net

    csharp
    3
    0 Votes
    3 Posts
    0 Views
    M
    Have you programmed with other tools before? Do you have a specific type of application in mind to develop? I think looking for tutorials and vb.net books is a good place to start - then give yourself a simple application to build and build it. Start with a Hello World example, then go from there. There are tons of documents and sites on the web that offer vb.net help. CodeProject.com is a good one - when you run into a specific problem, post the question in the vb.net forum. Here are links to the QuickStart tutorials for Windows Forms and ASP.NET -- http://samples.gotdotnet.com/quickstart/winforms/[^] http://samples.gotdotnet.com/quickstart/aspplus/[^] And here are some other links to tutorial sites: http://www.w3schools.com[^] http://www.vbdotnetheaven.com/Sections/Tutorials.asp[^] http://www.devarticles.com/cats/12/[^] You could also look at the Microsoft certified courses. Is there a training provider in your area?
  • Object Libraries in Outlook

    help question announcement
    4
    0 Votes
    4 Posts
    1 Views
    C
    If you use the "Package and Deployment Wizard" that comes with Visual Basic to build you setup program, the Microsoft Outlook 9.0 Object Library (MSOUTL9.OLB) should be included in the installation. Because Microsoft generally names each version of there libraries and dlls differently, you shouldn't have any trouble breaking any other application by installing MSOUTL9.OLB. Additionally, you can specify that the MSOUTL9.OLB file be installed in your application directory as opposed to the Windows System directory. Disclaimer...I have not tested this...so you should obviously test it first. Good luck.
  • PID to port mapping

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • upgrade from vb picturebox to vb.net picturebox

    help csharp graphics question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • errors on calling excel.sheets methods

    help csharp c++ testing
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Display OLE Object

    csharp database com docker
    2
    0 Votes
    2 Posts
    0 Views
    C
    This should work for you. I know that it works with MS-Access. Assuming you table contains the following fields IMAGE_ITEM_ID : Long NAME : Text IMAGE : OLE Object Public Sub GetItem(ByVal itemId As Long) Dim sqlQuery As String ' the query to execute Dim image() As Byte ' the image to get Dim name as String ' the name of the image sqlQuery = "SELECT IMAGE_ITEM_ID, NAME, IMAGE " & _ "FROM IMAGE_ITEM " &_ "WHERE IMAGE_ITEM_ID = " & itemId Try ' instanciate a connection object Dim conn As OleDb.OleDbConnection = GetConnection() ' instanciate a command object Dim com As New OleDbCommand(sqlQuery, conn) ' open the connection com.Connection.Open() ' create a read to read the database Dim reader As OleDbDataReader ' open the reader reader = com.ExecuteReader(CommandBehavior.CloseConnection) ' read the first record If (reader.Read()) Then ' get the name of the image name = reader.GetString(1) ' get the image itemData.Image = CType(reader.Item(2), Byte()) End If ' clean up after yourself reader.Close() com.Connection.Close() conn.Dispose() 'release memory to garbage collection com.Dispose() 'release memory to garbage collection Catch eOleDb As OleDb.OleDbException MsgBox("OleDb Error - GetItem - [" & eOleDb.Message & "]") End Try End Sub I hope it works for you.
  • Inheriting/Expanding the DataGrid

    csharp php perl css database
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    D
    The second problem is caused by a security setting in Outlook that Microsoft put in after the outbreak of viruses that emailed themselves to everyone in your Outlook address book. To turn it off, open Outlook (Express) and pick Options from the Tools menu, then click the Security tab, then uncheck "Warn me when applications try to send mail as me." There is no method of getting around this programatically, for obvious reasons... RageInTheMachine9532
  • 0 Votes
    3 Posts
    0 Views
    A
    Thanx RageInTheMachine9532. Setting the LogonUI property to false solves the problem. :)
  • Dynamic function calls in VB

    com tutorial
    5
    0 Votes
    5 Posts
    0 Views
    C
    I'm in research mode and am not yet sure if I do want to go through the hassle. However, I'm trying to develop a class that is flexible enough to read different "lookup" tables from a database into a "collection" (I don't necessarily mean the Collection class). Normally, I would structure the lookup tables so that one set of code would read them all. But in this instance I don't have that luxury. Thanks for your help.
  • How to get URL in an ActiveX

    html com tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Connect to a remote datbase

    database csharp sql-server sysadmin
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied