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
  • Class not registered and..

    wcf sysadmin xml help question
    2
    0 Votes
    2 Posts
    0 Views
    M
    The DLL on the server... what's that written in and how is it setup? If it's a COM DLL (not .NET) you probably need to set it up through Component Services as a COM+ application. It's easy to add these "hooks" into a DLL if they aren't already there (depending on what language was used for it's development). In COM+ your DLL can be managed by Windows in a way where it can be properly instanced for use in a Web environment.
  • Shut down one program from another?

    csharp sysadmin xml help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to debug a Service in VB.NET?

    question csharp debugging tools
    3
    0 Votes
    3 Posts
    0 Views
    M
    Thanks! I actually worked it out yesterday on my own but you gave some good points. Thanks for the help!
  • VB 6.0 How do I read from a .txt file?

    question help
    3
    0 Votes
    3 Posts
    1 Views
    Z
    ray's ini file reader is the preferred method for working with application config stuff, but if you want to work with text files, use the FileSystemObject where: scrrun.dll, register dialog: Microsoft Scripting Runtime progid: scripting.filesystemobject i'm typing this code in manually, so it might not be syntactful dim fso as scripting.filesystemobject set fso = new scripting.filesystemobject dim txt as scripting.textstream set txt = fso.opentextfile("c:\mytextfile.txt") do while not txt.atendofstream msgbox txt.readline loop txt.close set txt = nothing set fso = nothing -John
  • NA

    2
    0 Votes
    2 Posts
    0 Views
    N
    I have only used COM Interop to get access to pre .NET COM servers in C#. What is nice is that you can do this in VB.NET too, I am just not sure of the exact syntax about it. In C# it might look something like this. [DllImport("myPrinter.dll", CharSet=CharSet.Ansi)] private extern static long MyPrinterFunction(long hndlToPrinter); I believe I have seen this done in VB.NET with the < AND > signs to replace the square brackets around DllImport. In VB.NET then maybe... <DllImport("myPrinter.dll", CharSet=CharSet.Ansi)> private extern static Long MyPrinterFunction(hndlToPrinter As Long) Hope this helps. :) Nick Parker If the automobile had followed the same development as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year killing everyone inside. -Robert Cringely
  • ActiveDirectory

    csharp json help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    0 Views
    D
    you can use the package and deployment wizard, if required you can modify setup1.exe for customised setup file creation. The source code for this setup1.exe is available in C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1\Setup1.vbp
  • List control in VB.Net (Web Forms)

    csharp asp-net question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • DAO: In VB 6.0, how do i search a access database?

    question database
    2
    0 Votes
    2 Posts
    0 Views
    N
    Your question is a little decieving because you mention two different technologies used to access a database. I will assume you are using ADO. Here is an example to "search" a database. You will need to add a reference to the ADO object library in your program before running this code. Dim conn As New ADODB.Connection Dim adors As New ADODB.Recordset Dim sql As String sql = "SELECT User_ID Where username = '" & replace(txtUserName.Text, "'", "''") & "'" Set conn = New ADODB.Connection Set adors = New ADODB.Recordset conn.ConnectionString = "[YourConnectionStringGoesHere]" conn.Open adors.ActiveConnection = conn adors.Open (sql) If Not adors.EOF Then Do Until adors.EOF MsgBox txtUserName.Text & "'s user id is " & adors("User_ID") adors.MoveNext Loop Else MsgBox "There are no records that match that name" End If adors.Close Set adors = Nothing conn.Close Set conn = Nothing HTH Nick Parker If the automobile had followed the same development as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year killing everyone inside. -Robert Cringely
  • disable the warning dialog box in Word

    html tools question
    2
    0 Votes
    2 Posts
    0 Views
    N
    What are you automating exactly? Nick Parker If the automobile had followed the same development as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year killing everyone inside. -Robert Cringely
  • In VB 6.0 how do I Check for A running Application??

    question help
    2
    0 Votes
    2 Posts
    1 Views
    R
    If you want to see if there is already a copy of the same application running then you use: App.PrevInstance Looking for an instance of ANOTHER application is a bit trickier but you can do it looking for window titles.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • update query ?

    database csharp help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    L
    you could try and add an Edit() command. I know in VB 6.0, you can only put an update() command if you had an edit or add command before it. I'm not usre if it is the same in vb.net, I am still in the trial period of experimenting with it. Have fun!
  • executing query from dataset thru code in Vb.net?

    csharp database help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • COMException

    csharp com question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • how to create ActiveX controls

    help com tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Strange Form.Load problem

    help csharp question
    2
    0 Votes
    2 Posts
    0 Views
    R
    I have not played around with .ShowDialog much, but from the looks of it, what you see is what you get. Is there a reason you are using ShowDialog vs. show? Are you really trying to use this form as a modal dialog box?
  • 0 Votes
    2 Posts
    0 Views
    R
    I would search the registry for the filename that you need the path to. If it is an exe file that is registered to a file ext then it will probably show up in there. Once you know it you can open the key in your script and check to see if it exists.
  • Dataenviroment

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied