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
  • Create a new file by dragging from app

    database linux tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Handling Class-Module Errors in Form

    data-structures help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Need tools to find application errors

    tools help testing performance
    2
    0 Votes
    2 Posts
    0 Views
    N
    I hope this helps, I have run into some 'similar' errors using Crystal Reports 8.5. I ended up writing a program to check the version of particular files that are included in the bootstrap section of the .lst file that is created using Microsoft's package and deployment wizard against those on the client PC that the program would go on. If you find any files on the clients PC that are older in version number than what was included with the bootstrap file, you should recreate the package in the wizard and use a copy of the older version. There is some, but little documentation on MSDN that points to Windows 2000 having a problem(i.e. - security) updating certain files when installing a new application. Hope this helps somewhat, Crystal Reports can be a pain sometimes, I guess we all just have to find our little ways around it. Nick Parker
  • logoff

    question
    2
    0 Votes
    2 Posts
    0 Views
    N
    Public Declare Function ExitWindowsEx Lib "User32" Alias "ExitWindowsEx"(ByVal uFlags as Long,ByVal dwReserved as Long) as Long Inside your form where you want to log off the user include: Call ExitWindowsEx(EWX_LOGOFF,0) The first arguement has several options: EWX_FORCE = 4 Force any applications to quit instead of prompting the user to close them. EWX_LOGOFF = 0 Log off the network. EWX_POWEROFF = 8 Shut down the system and, if possible, turn the computer off. EWX_REBOOT = 2 Perform a full reboot of the system. EWX_SHUTDOWN = 1 Shut down the system. Hope this helps Nick Parker
  • Two difficult ADO questions

    database tutorial
    3
    0 Votes
    3 Posts
    0 Views
    O
    1. This can be done using the OpenSchema method of ADODB.Connection. Set rs = myADOConnection.OpenSchema(adSchemaTables) While Not rs.EOF debug.print rs!TABLE_NAME rs.MoveNext Wend 2. Don't know, but check out the OpenSchema method. Øyvind
  • Type Mismatch error when passing in string in VB

    c++ com help
    3
    0 Votes
    3 Posts
    0 Views
    B
    Try using a Variant. Hope this helps, Bill
  • KB Article Q72918

    tutorial
    2
    0 Votes
    2 Posts
    0 Views
    B
    I'm not sure what you found in the article, there are two popular techniques. 1. Use FindNextWindow, looking for a window with the same name as yours. If found then exit. This is the most common method. It fails (or is at least difficult) if the window title is variable or there are many different windows that might or might not be open. 2. Check the list of running processes looking for your .exe name. There should be only one. If two found then exit. Thanks for the help, Bill
  • Username that accessed a file last

    csharp tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    B
    I don't believe that information is retained. :( Good luck though. Thanks for the help, Bill
  • How can I get a Date easily from users?

    question com
    4
    0 Votes
    4 Posts
    0 Views
    C
    Lucky for me I work every day in VC++ but sometimes I work in something called VB.:-O Cheers!!!:-D :bob: and :beer: for ever in CP Carlos Antollini. Sonork ID 100.10529 cantollini
  • Variable alphanumeric sort

    database javascript
    2
    0 Votes
    2 Posts
    0 Views
    N
    You can do it within the database, in which you may wish to include in your Select statement the same values but put together in another order(i.e. left(some_field, 1) + right(some_field, 1) + substring(some_field, 2, 2)). You would not populate that field, however when the user select the "some_field" column to sort by, you can sort your other column instead. Hope this helps some. Nick Parker
  • Mask Edit Control

    question
    3
    0 Votes
    3 Posts
    0 Views
    N
    There are several ways to do this, here is one. Private Sub Text1_Change() 'Check position of character If len(Text1) = 3 then If right(Text1,1) = "A" Or IsNumeric(Text1) = True Then MsgBox "There's an A or an numeric in Text1 ", 64, "Error Message" Exit Sub End If End If End Sub Nick Parker
  • ANYONE CAN HELP ME ?

    help question
    2
    0 Votes
    2 Posts
    0 Views
    N
    Following order of operations you should get 130: 1. V = 50 2. (2 * V) = 100 3. 100 + 30 = 130 There is nothing wrong with that statement, it should evaluate to 130. Hope this helps, let me know. Nick Parker
  • How to write quotation mark inside quotation marks

    tutorial c++ help question
    2
    0 Votes
    2 Posts
    0 Views
    A
    Try this: "I said ""Yes""" Or this: "I said " & Chr(34) & "Yes" & Chr(34) Andy Gaskell, MCSD
  • Create Dial-Up Network shortcut In the desktop.

    sysadmin help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Trouble with Delphi!!!

    help com delphi
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • URGENT!!! Cannot call ActiveX DLL functions

    help delphi com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • URGENT!!! Delphi problem.

    help delphi question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    0 Views
    P
    Without any specifics, your question is difficult to answer... Did you use an installation package to deploy your app to the NT/2000 machines? If not, those machines probably don't have the VB runtime dll's installed... Do not go where the path may lead, go instead where there is no path and leave a trail. - Ralph Waldo Emerson Paul Lyons
  • CoInitialize has not been called

    help debugging question
    3
    0 Votes
    3 Posts
    0 Views
    L
    The error message is a VB generated error message and the dll im using is a C++ dll (using _stdcall and its NOT a COM dll). The strange thing is that the error message don't appear every time and it never appear if i make a EXE file of the vb project. My source cod: Vb: Public Declare Function Data Lib "E:\C++ Program\Test\Debug\Test.dll" _ Alias "_CreateData@4" (ByVal pDb As Long) As Long Dim Temp As Long Temp = Data(10) C++: .h extern "C" { __declspec(dllexport) long PASCAL CreateData (long iDatabaseId); } .cpp #include "Test.h" long PASCAL CreateData(long iDatabaseId) { return iDatabaseId*10; } I would bee so happy if you could help me :) /Z
  • 0 Votes
    3 Posts
    0 Views
    M
    Thanks Andy, Worked great. latter ;) Confusios say "Man who run in front of car get tired, Man who run behind car get exhausted."