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
  • running Exe

    help tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    L
    u have to use Shell Function in order to execute an exe and u use Command Function in order to get the return value from and even pass value to the exe.
  • User Defined Types

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Visual Basic Installer

    help question
    4
    0 Votes
    4 Posts
    0 Views
    R
    In Win2K only local administrators can modify the Registry. Whoever installs the app will have to have admin priveleges, then after installing will have to set permissions for users manually. I'm sure there's an easier way, but I haven't found it.
  • .Net + Socket

    question csharp
    2
    0 Votes
    2 Posts
    0 Views
    N
    You may just need to include the correct namespace for your project. Try adding System.Net.Sockets to gain access to socket methods and properties within your application directly. Nick Parker
  • Unzip file in Vb.Net

    csharp help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Arrays

    question data-structures
    2
    0 Votes
    2 Posts
    0 Views
    J
    You just declare an array of the type of your OCX. For instance : Private m_MyActiveXArray(size_of_your_array) As MyOCXLib.MyActiveX Jerome
  • Math DLL

    algorithms help
    5
    0 Votes
    5 Posts
    0 Views
    L
    I can't buy a 300 dollars DLL Can any body help me in finding a DLL, an OCX, or any other written code that I can use to implement the Montgomery modular exponentiation?
  • continue in VB

    question c++
    2
    0 Votes
    2 Posts
    0 Views
    D
    There isn't one. Either restructure the logic inside the loop, or use a label and Goto. -- David Wengier Sonork ID: 100.14177 - Ch00k
  • socket

    csharp question visual-studio com beta-testing
    2
    0 Votes
    2 Posts
    0 Views
    D
    If you are using .NET, then you should check out the .NET Framework for socket classes, rhater than using the OCX. -- David Wengier Sonork ID: 100.14177 - Ch00k
  • Running a .dll as a service?

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    D
    I've read some time ago that you can acomplish that using svchost.exe, but I can't remember exactly how, sorry... :( May this can help in some way... Crivo Automated Credit Assessment
  • MAPI

    csharp question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • picture

    question
    2
    0 Votes
    2 Posts
    0 Views
    H
    make picture1.AutoRedraw=True this worked but the problem is that autoredraw property consumes alot of memory I think.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Quick question on this site..

    csharp question c++ oop
    8
    0 Votes
    8 Posts
    0 Views
    D
    James T. Johnson wrote: Optional parameters: Create and call methods without any value being provided But because of overloading, it can be done with two different methods, just leave out one parameter :) James T. Johnson wrote: Handles keyword: Events can be wired up at compile time without needing to use myEvent += ....., though if someone wants they can use the VB equivalent, AddHandler. And how could anybody want to use anything else! In all of my C# code, whenever I accidently create an event handler I dont want, I think "oh damn" and delete the method. Then, come build time, bring on the errors, as the code, miles up in the file, hidden in the GUI created #region, mentions these missing methods. X| (I seem to be just replying to you and ranting these days... you must have a friendly face :)) -- David Wengier Sonork ID: 100.14177 - Ch00k
  • Listbox from Access Database

    database design help tutorial
    6
    0 Votes
    6 Posts
    0 Views
    L
    Sorry James, but the SELECT DISTINCT change didn't help either. :( Nick: What I am needing is, in Access, when viewing a table it can be set up so that when you are entering data into the database directly that a list box will open for a particualr field and display the options that you can select for that field. Such as a 'Gender' Field. A list box will show the options 'No Answer', 'Male', 'Female' so you can choose one of those three options for the record. If in all the records for that table only 'No Answer' and 'Male' have been chosen, I need a way for my program to also recieve 'Female' to add to MY list box, so that it can be selected in my program. I hope that helps clarify what I am looking to do using ADODB. The actualy field I need to do this with isn't Gender, but it makes for an easy example, else I'd be hardcoding all the live long day. Thx again for the tries. :) Quinn
  • controling fans

    question
    4
    0 Votes
    4 Posts
    0 Views
    D
    Mike Nordell wrote: Imagine any program that could access (stop) the CPU fan and burn another Athlon? Some of them burn with the fan running normally :( Crivo Automated Credit Assessment
  • MDI Forms

    question
    4
    0 Votes
    4 Posts
    0 Views
    D
    Oops, sorry, I was thinking of the MDI child. (Object inspector is the property listings yes, I'm from a Delphi background where its called an Object Inspector) My mistake, sorry :~ Dylan Kenneally London, UK
  • Run remotу VBScript

    com tools help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • List Boxes

    tutorial
    4
    0 Votes
    4 Posts
    1 Views
    L
    hi, try this when you type a new string and submit write the new string into a file dim F as long f=Freefile 'to get a valid file pointer 'open and add string to existing file open "c:\tmp.txt" for append as f print #f,combo1.text close f on form load, dim F as long dim mStr as string f=Freefile open "c:\tmp.txt" for input as f do while not eof(f) line input #f, mStr combo1.additem mstr loop close f
  • serial number NOT Volumn Serial Number.

    help
    2
    0 Votes
    2 Posts
    0 Views
    L
    hi, for getting the serial number use api GETVOLUMEINFORMATION u'll get the file system name(FAT,FAT32,NTFS,CDFS etc..) and the Disk Serial Number regards