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
  • Minutes to Hours Conversions in VB.NET

    csharp com help tutorial
    3
    0 Votes
    3 Posts
    0 Views
    J
    Hey! Thanks a lot! This is just what I was looking for! Would I have to use the Format Function in able to just return a single value? Such as "2" being the number of hours? Or would I have to use some tricky string functions? :-DCongradulations on the two girls!!!:-D The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew
  • Creating ActiveX Controls

    question com help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • PropertyPages

    csharp help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VB version of OnIdle?

    c++ question announcement
    2
    0 Votes
    2 Posts
    0 Views
    H
    Hi,, I don't know how.. but maybe if you tell us what you want to do we can find an alternative. :)
  • How to make VB ActiveX DLL?

    question c++ com tutorial
    4
    0 Votes
    4 Posts
    0 Views
    H
    Hi,, using it in VC++ is a long story :) in brief look MSDN for CoCreateInstance you can add functions , properties to the VB6 project : choose Tools menu then Add Procedure
  • Sending information to and from different forms

    help question
    3
    0 Votes
    3 Posts
    0 Views
    E
    Thanx A LOT!!! I am going to try it! I knew the answer is easy, but you know how it goes - one always looks for the most difficult solution... Good luck with the twins... If I can't get it to work, you will hear from me again...:cool:
  • Name of the Application and Command line arguments

    csharp data-structures
    2
    0 Votes
    2 Posts
    0 Views
    D
    VbCode: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim sName As String = Application.ExecutablePath MessageBox.Show(sName) '/// this will show the application's exe path and the application's .exe name. End Sub hope it helps :) Vb: Public Function TwinsOnWay(ByVal twins As String) As String Select Case twins Case "Gender" Return "Two Girls" End Select End Function
  • Multi Threading Optimal Use?

    performance question com tutorial learning
    2
    0 Votes
    2 Posts
    0 Views
    D
    Multiple threads will generally give you gains over single thread on these situations: 1. More responsive UI; 2. There's something the CPU could be doing while it's waiting for an I/O operation; 3. You have multiple CPUs; 4. You have a Pentium 4 with HyperThreading, on some specific situations; Notice that you won't have CPU gains, actually, as you've noticed, you will spend more CPU to do real parallel work; so, the general rule is only to MT if your CPU is waiting for something. ORACLE One Real A$#h%le Called Lary Ellison
  • Developing Excel Add-In using VB.NET

    question csharp tutorial
    2
    0 Votes
    2 Posts
    0 Views
    A
    For Office 10 use the Office Primary Interop Assemblies provided by Microsoft.
  • outlook style interface

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    A
    Easy. Just combine several pannels and splitters and use the docking property.
  • How to Get \ Set The size of one col?

    question tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    D
    you can still use a flexigrid in .net , just right click on your toolbox and click "Customise toolbox" , on the window that opens, choose "COMM" and then you will find the flexigrid control in that list, it will be added to your toolbox and you can then use it as before in vb6. Vb: Public Function TwinsOnWay(ByVal twins As String) As String Select Case twins Case "Gender" Return "Two Girls" End Select End Function
  • how to perform that...

    tutorial
    2
    0 Votes
    2 Posts
    0 Views
    J
    Use the sndPlaySound[^] API. :) "Blessed are the peacemakers, for they shall be called sons of God." - Jesus "You must be the change you wish to see in the world." - Mahatma Gandhi
  • System.IO.DirectoryInfo.GetFiles.Getlength

    data-structures help
    2
    0 Votes
    2 Posts
    0 Views
    M
    :confused: System.IO.DirectoryInfo.GetFiles() returns an array of FileInfo. You should be able to use the Length property of the array to find out how many there are. GetLength() is for multi-dimensional arrays; you can specify 0 for the dimension to get the length of a single-dimension array. -- Mike Dimmick
  • typical sorting problem

    help algorithms data-structures question
    2
    0 Votes
    2 Posts
    0 Views
    L
    Just an idea, but not necesserily the solution: what about sorting based on Right(strString(i), 3) Paul ;) Live in such a way that you would not be ashamed to sell your parrot to the town gossip. - Will Rogers
  • Deployment problem...

    help visual-studio com sysadmin
    2
    0 Votes
    2 Posts
    0 Views
    L
    Solved. Paul ;) Live in such a way that you would not be ashamed to sell your parrot to the town gossip. - Will Rogers
  • reading xml files using recordset

    xml question
    2
    0 Votes
    2 Posts
    0 Views
    H
    rs.Open "FilePath",con,,,adCmdFile where: rs:the name of the recordset object con:active connection
  • ContextMenu & TextBox

    help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Creating new objects

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    W
    I could be wrong but I thought that a module was like a class where all the members and properties were shared. If this is correct then any instances would have the same properties, change the value of one and the property changes in them all. I think you should just use a normal Class and create multiple instances. This way the properties and members are not shared by instances. Hope this helps. Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students LearnVisualStudio.Net
  • DxSolo

    database csharp tutorial
    2
    0 Votes
    2 Posts
    1 Views
    D
    nevermind i got it