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
  • string access

    c++ data-structures question
    2
    0 Votes
    2 Posts
    1 Views
    R
    Try: onechar = Mid(stringvar,startpos,numchars) Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
  • Intellisense

    database visual-studio
    2
    0 Votes
    2 Posts
    0 Views
    J
    gbala wrote: How ever I have a difficulty in follwoing the cursor inside the text box. Let me know how I can get the x and Y co-ordinates of a cursor inside a text box Do you mean cursor or caret? The caret is the blinking beam you get when typing into the textbox. You'll have to use raw API for this, and here are the functions... GetCursorPos() GetCaretPos() Jeremy Falcon Imputek
  • drag drop

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Running Code in a Different Page.

    question
    2
    0 Votes
    2 Posts
    0 Views
    R
    Hi You can use HTTPREQUEST Object to call the page which can return the data for the other Select box. Use this data to fill in the same. Ravi Shankar S Programmer Analyst iSOFT R&D Pvt Ltd Chennai, INDIA Ph: 91-44-4414980 Extn 1103
  • Database Problem

    help database
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Icon in system tray (Notify Icon)

    question help
    3
    0 Votes
    3 Posts
    0 Views
    K
    Rather than using the FindWindow API, there is a nice .NET way to find out if your app is already running. If UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0 Then If this returns true then there is another instance of the process running. What I haven't had time to work out yet is how to activate that existing instance. So if anyone knows off the top of their head how to do that, please comment. I've done plenty of this stuff with API calls in VB6 but I'd prefer to use native .NET as much as possible now. cya, Kermitt
  • Validate Property Pages

    tutorial
    2
    0 Votes
    2 Posts
    0 Views
    S
    Property sheets will advance based on the way in which you set your property page. As for not advanceing if the validation fails return -1 and you will stay on the same page.
  • capture audio data while recording

    question data-structures json help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Check for Active VPN connection

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • DLL Debuging?

    csharp com debugging question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Window Messages in VB

    question c++ csharp tutorial
    3
    0 Votes
    3 Posts
    0 Views
    R
    Hi, The answer to your second Question. From a DLL you can use API calls to inform the user whatz happening inside the DLL. Taking your example, You have a textbox for the user to see and a process takes place in the DLL. Now you can use SendMessage API call to inform the user that something is happening in the DLL. All you have to do is to pass the handle of the textbox to the DLL so that you can post message back to the textbox from the DLL using SendMessage API Ravi Shankar S Programmer Analyst iSOFT R&D Pvt Ltd Chennai, INDIA Ph: 91-44-4414980 Extn 1103
  • open pdf files

    question
    4
    0 Votes
    4 Posts
    0 Views
    N
    Andy Chiang wrote: I only want to execute reader 5 and open the pdf files i want by clicking on a button in an application i created. In that case, read this article which explains how you can do what you want :- http://www.codeproject.com/useritems/newbiespawn.asp Nish p.s. It's a C++ article, but you can use the same calls from VB I presume! Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
  • read elements form filename (VBS)

    2
    0 Votes
    2 Posts
    0 Views
    S
    write a parser that parses on "_" Dim mystring As String Dim resultstr(3) As String Dim nStart As Integer Dim nEnd As Integer Dim cnt As Integer mystring = "hfskh_XXX_YYY_ZZZ.txt" nStart = InStr(mystring, "_") Do While (nStart > 0) nEnd = InStr(nStart + 1, mystring, "_") If nEnd = 0 Then nEnd = InStr(nStart, mystring, ".") End If resultstr(cnt) = Mid(mystring, nStart + 1, nEnd - nStart - 1) nStart = InStr(nStart + 1, mystring, "_") cnt = cnt + 1 Loop :zzz:
  • VB and dll

    c++ data-structures
    5
    0 Votes
    5 Posts
    0 Views
    M
    No Problem...
  • MSHTML Advanced Hosting Interfaces VB.Net

    csharp com html hosting
    2
    0 Votes
    2 Posts
    0 Views
    T
    Somewhere in there you need to connect to the browser instance to receive events. At least that's what I had to do under ATL. I don't see that anywhere in your code. I think I use AtlAdvise and AtlUnadvise? Todd Smith
  • From Access97 to Access2000

    help database security question
    2
    0 Votes
    2 Posts
    0 Views
    L
    This web site has a vary good listing of all the ADO connection strings. http://www.able-consulting.com/ADO\_Conn.htm To make a reference to a different version of Ado goto project -> references, and they are called microsoft activex data objects. To download the lastest version of ADO, you will have to do this for each computer if it's not already installed.. http://www.microsoft.com/data/ Good luck
  • Relative file path

    question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Hi ! I'm not sure to understand exactly what you want to do, but in VB, App.Path will give you the path of your running app. Thus, you can use it to access relative file path. Jérôme
  • Auto Patch Client VB.NET Apps

    help csharp sysadmin business
    2
    0 Votes
    2 Posts
    0 Views
    A
    check out this great application updater component from a guy at Microsoft: http://www.gotdotnet.com/team/windowsforms/appupdater.aspx
  • Keeping track of a form

    6
    0 Votes
    6 Posts
    0 Views
    realJSOPR
    Just curious - why did you change your nick to jkgh? "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 "Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied." - Alex, 13 June 2002 Please review the Legal Disclaimer in my bio.
  • Custom Control

    help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied