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
  • Adding a new reference

    help tutorial question learning
    3
    0 Votes
    3 Posts
    0 Views
    R
    You can onlt reference assemblies that are libraryies of functions (files that have a .dll extension) I don't think you can make a reference to a project that is used to build an exe file. 2) You need to make sure that the assembly project you are referenceing has been built at least once so there is a dll file to reference. Try right clicking on the project and building it before you add the reference. Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."
  • PrintPreview in VB.Net

    csharp question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to lock System Date /time

    csharp tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    W
    What do you mean? Do you want to stop windows users from changing the date/time? The system time originates from the system clock which any user can change from windows/dos ect. If you have Win2k or NT4 there may be a way for you to stop them from accessing these options by restricting thier accounts although i'm not sure how. As for locking the date/time from your app. surely if you dont include code that sets the date time which is accessable to the user, then they won't be able to do so. I think you need to clarify what you are trying to do. Regards Wayne Phipps
  • Updating Regedit changes

    tutorial announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Trouble with comboboxes

    database csharp css visual-studio
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to:Transfer Table to Text?

    database sql-server sysadmin help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    T
    You can do this one of three ways. 1.) The best way is to use an ADO Recordset / ADO.NET DataSet and use the "Save" / "WriteXML" Methods. This is best because both the Recordset and DataSet can open an XML file. 2.) Use BCP to Bulk Export data from the Table to a Text File. This is essentially what the DTS does. 3.) There is also a way to Bulk export using an XML format but I can't remember the command. Not all those who are lost are looking to be found. But of those who are lost and those who are found, all are looking for something higher than themselves.
  • COM+ -- ActivationOption.Server

    csharp com sysadmin business help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • COM+ -- ActivationOption.Server

    csharp com sysadmin business help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to edit the collection editor to add custom name to object

    tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to add spin button inside property grid

    css tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to pop-up custom form using propertygrid

    css tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • vb5 crystal reports printing problem

    help workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • ComboBox ValueMember

    database csharp wpf wcf
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Registering File Type and icon in VB

    tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Insert image into database

    database csharp help
    4
    0 Votes
    4 Posts
    6 Views
    P
    Thanx a lot Thats what i was needed
  • calling dll from VC++ written in VB

    question c++ help
    2
    0 Votes
    2 Posts
    0 Views
    H
    Yes.. If you make a VB project ActiveX DLL and create Class modules you can cerate objects of these classes in VC++ but VB can't expose functions that can be called using Declare in vb6 or ::LoadLibraryin VC++
  • Database: An Array of Structures

    csharp database game-dev data-structures
    4
    0 Votes
    4 Posts
    2 Views
    X
    I figured it out, but thanks anyway ______________________________________________ "I'm not me when I dream...anymore." -TRUSTcompany
  • visual basic question on arrays

    game-dev data-structures question
    3
    0 Votes
    3 Posts
    4 Views
    D
    thats not exactly what im looking for. it is vb6 and the reason i came here was to find some help normally i would just use this one sort function but the problem is the elements in the array are all instances of the player class so not only do i need to find out the 1st 2nd and 3rd place winners but i need to know the names of them which makes it a little more noodle scratching than a normal array and the thing that sucks most is i can see the solution on the back of my brain well anyways if anyone has any ideas
  • TreeView redraw lag..

    c++ data-structures question
    5
    0 Votes
    5 Posts
    0 Views
    M
    Actually, I figured I would Post this here. This function will Lock as many Windows as you want from Redrawing...unlike the "LockWindowUpdate" Function. 'API Declarations (.NET) Private Declare Ansi Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer 'Routine to Lock a Window from Repainting Public Sub LockWindowUpdate(ByVal Handle As IntPtr, ByVal Lock As Boolean) Const WM_SETREDRAW As Integer = &HB 'Enable / Disable Drawing Call SendMessage(Handle, WM\_SETREDRAW, Math.Abs(CInt(Lock)), 0) End Sub 'API Declarations (VB6) Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long 'Routine to Lock a Window from Repainting Public Sub LockWindowUpdate(ByVal Handle As Long, ByVal Lock As Boolean) Const WM_SETREDRAW As Long = &HB 'Enable / Disable Drawing Call SendMessage(Handle, WM\_SETREDRAW, Abs(CInt(Lock)), 0) End Sub
  • User authentication in Windows Forms

    help database csharp mysql
    2
    0 Votes
    2 Posts
    1 Views
    D
    hey i dont know if your still having the problem with keeping track of a user's logged in status but a simple way would be to create a loggedin field on the end of the user's record and when they login set that field equal to 1 and when they log out set it to 0