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
  • SQL Select statment

    database question
    4
    0 Votes
    4 Posts
    0 Views
    N
    iluha wrote: Thank you very much!!! I tried with ' around before, but i completely forgot about # signs. Access uses the # sign where SQL Server uses a single quote. -Nick Parker
  • Calling API function from VB

    c++ json
    5
    0 Votes
    5 Posts
    0 Views
    M
    Thanks! It works fine now :) There are 10 kinds of people - those that get binary and those that don't.
  • VBA and Business Objects

    business
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Executing a string value

    question csharp com tools
    4
    0 Votes
    4 Posts
    0 Views
    D
    There is nothing that says you can't do the exact same thing in VB.Net. All you have to do is go to the references folder in your project, right click it and select Add Reference. Go to the COM tab, scroll down to Microsoft Script Control 1.0, double-click it then click OK. Back in your project, open the code for your Form and put the following line BEFORE the Public Class statement for your Form: Imports MSScriptControl Now declare a script control object in an appropriate place in your code, set the control to the language you want to use, and tell it to execute the code you want. Here is a short example: Imports MSScriptControl Public Class Form1 Inherits System.Windows.Forms.Form ' Windows Form Designer generated code Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim script As New MSScriptControlClass script.Language = "VBScript" script.ExecuteStatement("msgbox ""This is a test...""") End Sub End Class RageInTheMachine9532
  • list boxes

    sysadmin help
    3
    0 Votes
    3 Posts
    0 Views
    L
    thanx steve but i dont really know much about FileSystemObject i had a look on msdn libraries to find out some stuff and found how to create a file and add text to it but not what ever was in the list box thanx for trying tho! .: Lister :.
  • Opening a form - easy question

    question csharp help
    2
    0 Votes
    2 Posts
    0 Views
    R
    Dim newForm as Form1 = New Form1 newForm.Show() 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." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.
  • Master-Detail WinForm

    database help tutorial announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VBA and Code Signing....

    security question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • React to javascript in web browser control

    javascript csharp question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Trapping DHTML events from the WebBrowser control Jim
  • Get icons from files

    csharp data-structures question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Click here:GotDotNet User Sample: The Icon Extractor Utility in VB.Net Jim
  • FlexGrid rows

    css help tutorial
    3
    0 Votes
    3 Posts
    0 Views
    S
    I copyed your code into my program and it working only 50 %. 1. When I select the first row it is printed fine, but when I am trying to print the next selected row it fails(nothing happend). 2. Also it is printing the only visible column what about the invisible columns? Thanks
  • Services - prevent from being stopped?

    question csharp database help
    6
    0 Votes
    6 Posts
    0 Views
    H
    Actually, this probably wouldn't work. Since you're requesting initial ownership in the same thread, the call to WaitOne() (or its equivalent in the constructor that requests initial ownership) will pass. Read the docs on Mutexes and you'll see that a thread can request access to a Mutex multiple times without blocking. I'm not sure how you're threading your file processing procedure (which is a good idea to do, btw), but doing them in the same thread would not work. Instead, take a look at the SyncRoot keyword in Visual Basic. Basically, declare a shared variable somewhere in your class: Private Shared syncRoot As Object = New Object() Then, in both methods, you can do the following (although there's no timeout, but these keywords boil down to a Monitor at compile time, so take a look at that for more details): SyncLock (syncRoot) ' Do work End SyncLock Hope this helps. Reminiscent of my younger years... 10 LOAD "SCISSORS" 20 RUN
  • Calling Non-Com functions from VB.NET

    csharp com json question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • IIS FTP

    windows-admin
    2
    0 Votes
    2 Posts
    0 Views
    S
    i think if you search microsoft site, you will find some vbscripts with the approriate commands, and if im not mistaken, these vb scripts might be copied to the server when you install IIS - Steve
  • Web Browser Control in VB.Net

    csharp com help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • u

    4
    0 Votes
    4 Posts
    0 Views
    V
    No, u. then me. right? Vilas Shewale
  • Print Listview control to printer

    csharp help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Replacement for "line"-contol.

    csharp sysadmin
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Transfer Large Files in Client-Server Application

    sysadmin help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied