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
  • Offline database........?

    database question oracle help
    5
    0 Votes
    5 Posts
    0 Views
    D
    Here is something I was playing around with last week. Give it a try. Just pass a list of comma delimited stock quotes to the function. It will return a list of all the quotes with each item having the details of the stock in a comma delimited format: symbol, last trade time, last value, open value, PE, etc... The downside it is not in realtime. Public Function GetQuote(ByVal symbols As String) As StockDetails Dim url As String = "http://quote.yahoo.com/d/quotes.csv?s=" & symbols & "&d=t&f=sl1d1t1c1ohgvj1pp2wern" 'stores url of yahoo quote engine Dim buffer As String Dim webRequest As WebRequest Dim webResponse As WebResponse webRequest = HttpWebRequest.Create(url) webResponse = webRequest.GetResponse() Dim sr As StreamReader = New StreamReader(webResponse.GetResponseStream, System.Text.Encoding.ASCII) buffer = sr.ReadToEnd() sr.Close() Return buffer End Function This should be much easier than obtaining values from an existing web page. Michael
  • setting register, associated file

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Starting PowerPoint in a webbrowser control

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Disable pasting in a textbox

    3
    0 Votes
    3 Posts
    0 Views
    D
    The constant value for WM_PASTE is 0x302. RageInTheMachine9532
  • Changing the color of a TabPage tab

    database question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Run an external application hidden

    csharp linux question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VBScript / JScript: out Parameter

    question help
    4
    0 Votes
    4 Posts
    0 Views
    R
    The Problem is: The Component was built with Visual C++ (ATL). The Parameter is declarated as [out] in the type library file, but I sgould be able to tell this the VBScript/JScript. Wit VBScript I get an compile error 'Type mismatch', with JScript it compiles but the Variable is not changed through the Component. I left this problem behind with writing a small C++ App that i call from the Script, but thanks for your help. Of course, if you have some idea, your input is still very welcome. Greets Roland
  • Reading XML String into DataSet (VB.NET)

    help csharp xml tutorial
    5
    0 Votes
    5 Posts
    6 Views
    N
    :doh: And here I was trying to get the XmlParserContext, XMLReader and XMLNamespaceManager to all talk to each other... (it eventually worked but my lordy it was NOT pretty) Thanks man, I'll give it a try now :-D The man who smiles when things go wrong has thought of someone he can blame it on. If you tell a man there are 300 billion stars in the universe, he'll believe you. But if you tell him a bench has just been painted, he'll have to touch it to be sure.
  • getting active machines

    question csharp windows-admin
    2
    0 Votes
    2 Posts
    0 Views
    D
    You can get the list of machines that are both in the Directory and logged into Active Directory using the methods described here[^]. There is an introduction to using the Active Directory objects in VB here[^]. RageInTheMachine9532
  • vbs Script using msie as an object

    algorithms tools tutorial question learning
    2
    0 Votes
    2 Posts
    0 Views
    D
    When you tell the IE Object to Navigate to a web page, it will fire a DocumentComplete (I Think!) event to let you know that the enitre page has been retrieved. In your event handler, you can get a reference to the Document using something like this: Dim objDocument as Document Set objDocument = objIEBrowser.Document (Someone feel free to correct me if I'm wrong!) From there, you can use the Document object to find the control that you want in its Elements collection. You can then modify the text you want, then you call the Click method of the submit button, which you will also find in the Elements collection somewhere. You can find the complete document on the Document object model here[^]. RageInTheMachine9532
  • Importing data from Excel to Access using VB6

    database help
    2
    0 Votes
    2 Posts
    1 Views
    R
    Try using CDate() to convert text to a date data type. Dim t As String Dim d As Date t = "January 23, 2004 7:45 AM" d = **CDate**(t) MsgBox d Roger Stewart "I Owe, I Owe, it's off to work I go..."
  • Drawing custom captions on forms

    csharp graphics question lounge
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Disable rows in Datagrid

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • IIS Configuration to set account

    question windows-admin workspace
    5
    0 Votes
    5 Posts
    0 Views
    S
    Thanks a Lot. Thats where the problem was.
  • .application terminate

    question
    2
    0 Votes
    2 Posts
    0 Views
    D
    I think what your looking for is here[^]. We warned, it's not as easy as it would sound. There are a few pitfalls to consider when forcing an app to close. RageInTheMachine9532
  • How to Free a USB port on VB.NET

    csharp tutorial
    6
    0 Votes
    6 Posts
    0 Views
    D
    Probably possible, but if your SDK doesn't have to functionality to close a port that it opens, be prepared for a crash when you close the port, but not have the SDK release its resources. RageInTheMachine9532
  • Where to Start???

    database help tutorial csharp
    3
    0 Votes
    3 Posts
    0 Views
    H
    Yes! I am trying to priortize the functionalities... looking for Teacher and Student Records Managent at first hand... but still kind of confused.. :) any more suggestions please? thank you
  • Word Macro

    2
    0 Votes
    2 Posts
    0 Views
    U
    dear you can write the required code in VBA window but first tell me which kind of process you wanna perform in Word Processor, then i can guide you properly.
  • Need Help in VB.net about Vector!!!

    csharp c++ java graphics
    2
    0 Votes
    2 Posts
    0 Views
    I
    ArrayList -- Ian Darling "The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
  • audio player

    csharp tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    D
    nightmare01 wrote: can we build an audio player with vb.net? example: software like winamp. can we?please tell me. Uhh...yes. It sounds like your asking us for permission... Any other questions? RageInTheMachine9532