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
  • object arrays

    c++ com help question
    2
    0 Votes
    2 Posts
    0 Views
    P
    You have to Create the object like this: Dim WithEvents Scriptlet1 as MyScriptlet Set Scriptlet1 = CreateObject("MyScriptlet") Sub Scriptlet1_namechanged MsgBox("Value of name property changed") End Sub Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • Controlling the Printer

    json
    2
    0 Votes
    2 Posts
    0 Views
    P
    You can do this, but I do not think that you will be able to do it in VB. And if you can do it, it will be a lot of work. You will need to use C++ or some other language that allows you to access pointers. If you are still interested let me know. Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • How to convert 16-Bit colors to 32-Bit:

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Are you talking about an image that you want to display, or the display mode of your video monitor? Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • Help me to display Unicode font on menu bar.

    help question
    2
    0 Votes
    2 Posts
    0 Views
    P
    This is a little difficult, you will need to resort to the Windows API's in order to do this. You will need to look into localization functions to properly set the locale of the strings that your are working with. I do not have any more information than that right now, but I will try to post a link later today. I hope this gets you started. Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • API functions

    help json question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Change your definition of LookupPrivilegeValue to this: Public Declare Function LookupPrivilegeValue Lib "advapi32.dll" Alias "LookupPrivilegeValueA" (ByVal lpSystemName As String, ByVal lpName As String, lpLuid As LARGE_INTEGER) As Long and LARGE_INTEGER is declared liek this: Public Type LARGE_INTEGER lowpart As Long highpart As Long End Type Use the APIViewer tool in VB to create these function declarations for you. Good luck. Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • Running VB exe program's on other computers

    help java tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Have your friend copy the executable to their harddrive, then run it through explorer. This is probably a security measure that has been built into your friends email program. Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • ActiveX controls overview!

    com sysadmin question
    2
    0 Votes
    2 Posts
    0 Views
    P
    If you are on a local network you could use DCOM to instantiate the object on the other machine. Otherwise I would recommend turning to something like SOAP to run objects on a server over the internet. SOAP is a protocol that allows you to communicate through the firewalls and such that are located on internet servers, by simply using XML. Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
  • arguments... for exe.....

    tutorial
    3
    0 Votes
    3 Posts
    0 Views
    D
    Maybe what you want is how to receive them: through the Command$ function Crivo Automated Credit Assessment
  • Error making Windows Installer ouput file

    csharp help visual-studio
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • limit text lenght

    help
    2
    0 Votes
    2 Posts
    0 Views
    H
    I assume you are using a textbox. Just set the MaxLength property to the length you need. You can do this in the properties window (right click the text box and select Properties) or in code (Userform1.Textbox1.MaxLength = xx in the initialize procedure).
  • DHTML from VB

    question com
    2
    0 Votes
    2 Posts
    0 Views
    J
    You have a reference the ActiveX control first in Project/References. JScript Example: var objSession = new ActiveXObject("MAPI.Session"); VB Example: Dim objSession As MAPI.Session Set objSession = New MAPI.Session Jeremy L. Falcon "The One Who Said, 'The One Who Said...'" Homepage : Sonork = 100.16311 01000010011011110110001000100000011101110110000101110011 00100000011010000110010101110010011001010010111000000000
  • Printing error in VB app

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Integrate mp3 file in VB

    question help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Crystal User Defined Functions

    csharp question
    2
    0 Votes
    2 Posts
    1 Views
    N
    Not exactly sure that this will help but here is a link on Crystal's web site about Designing and Viewing a Report in a Windows Application HTH Nick Parker
  • VBA and templates...

    help wpf question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • ActiveX VB

    com
    6
    0 Votes
    6 Posts
    0 Views
    G
    Hi, How can I create this acitevx component to access from jscript?
  • connect to encrypted Access file(*.mdb)

    help question database security
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • Speech to text Example is not working

    tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • a Timer in a class

    help javascript tutorial
    2
    0 Votes
    2 Posts
    0 Views
    A
    Try changing this line: Dim WithEvents m_myTimer As Timer to this; Dim WithEvents m_myTimer As **New** Timer -- Andrew.