RSS in Visual Basic Express?

I really need a RSS feed. I just don't know how o connect to one and how my program to rad the XML nodes. I can try to obay some commands like... or some things.

But yor help woul be more appreciated than mine (I kinda mean my knowledge).

Please help (and dont give me the thng from Coding4Fun) (nothng there ever works)




Answer this question

RSS in Visual Basic Express?

  • Latso

    Hey Spider,

    Thanks for the feedback. We're actually working on making sure all the samples are in VB and C# (some are only in one or the other). 

    I copy/pasted the VB code and got it to work, I think the issue you ran into is that you need to have an imports statement to System.Runtime.InteropServices.

    Here's what I did to get this running

    • Open Visual Basic Express
    • Select File...New Project...Windows Application
    • Drag and drop a button control (we'll use the button event to open the CD tray)
    • Double click on the button to add a button click event
    • Add Imports statements for System.Text (to use the StringBuilder class) and System.Runtime.InteropServices
    • Copy/Paste the code from the article
    • Run

    The end code should look like this:

    Imports System.Text
    Imports System.Runtime.InteropServices

    Public Class Form1

    Declare Function mciSendStringA Lib "winmm.dll" (ByVal command As String, _

    ByVal buffer As StringBuilder, ByVal bufferSize As Int32, ByVal hwndCallback As IntPtr) As Int32


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    mciSendStringA("set CDAudio door open", Nothing, 0, IntPtr.Zero)

    End Sub

    End Class

    Let me know if you can get this to work

    Thanks,

    Dan Fernandez
    Lead Product Manager
    Visual Studio Express
    http://blogs.msdn.com/danielfe/


  • carlsonad

    Doesn't matter now. I foun something but i'll see that too. Thanks for your help anyway. And how `d a heck you made your thng as answer

  • tkrasinger

    How do I make a TextBox to read from a BindngSource. I just can't figure it out !!! Really Help needed

  • tfrazier

    OH, ok then.

  • IgorP

    MVP is a MS award to a fixed amount of community members for outstanding contributions for the year past. If you make an impact in your local community and web-based communities like this, we'll see it, and an MVP award may be given.


  • Stanley1271

    If I were you I would download our My.Blogs sample:

    http://msdn.microsoft.com/VBasic/Downloads/Code/MyBlogs/

    You can use it to download any RSS or blog feed and then work with the Feed object in just a few lines of code. No XML is required for most tasks. Here is an example:

    Dim MyFeed As MyBlogs.Feed

    MyFeed = My.Blogs.Read(http://blogs.msdn.com/vbteam/Rss.aspx)

    The page above has an article and several working RSS reader samples.

    If you're still interested in working with the RSS XML, I suggest loading the "RSS Screen Saver Starter Kit" from File -> New Project. This starter kit contains sample code for parsing RSS XML and working with the content.

    Let me know how this works for you.

    Best,

    Paul


  • April m

    Hey Spider-link,

    I saw your comment about Coding4Fun samples not working and I wanted to investigate why. Which samples were you unable to get working and what was the error you had If something's broken, we obviously want to fix it

    Thanks,

    Dan Fernandez
    Lead Product Manager
    Visual Studio Express
    http://blogs.msdn.com/danielfe/


  • Sergei Almazov

    P.S.  I'm sorry to hear that Coding4Fun content isn't working out.  If you have a moment, please send some examples of issues so we can look at fixing them up.  You can send these directly to paulyuk@com.microsoft (where microsoft and com are reversed). 

    thanks,

    Paul


  • atzmon

    >>How do I make a TextBox to read from a BindngSource. I just can't figure it out !!! Really Help needed

    Try this:

    - select your textbox in the WinForms designer

    - View properties (F4)

    - Expand the (DataBindings) section in the property grid

    - Next to the Text property drop down the combobox, expand your BindingSource, and pick the field you want to read from. 

    There is a working example of this in the Movie Collection Starter Kit (File -> New Project)

     


  • Woyler

    By the way, how do I become an MVP

  • NetPochi

    Gotcha - this is always an option if you need it.

    I can mark as answers because I'm a moderator with special "powers" :) If you or anyone else is doing a consistently great job answering questions, we can extend moderator privs to you. Many of our MVPs are starting to become moderators.

    Best,

    Paul


  • gericooper

    I can't go into more detail than saying that we look at quality and quantity of community contributions, e.g. solving tough problems and helping others to use them. Web-based forums are definitely not the only way to contribute. They are nice however since so many people can benefit from your responses.


  • QuikOzi

    I dont really remember but I think tat the prank for the pop opening CD door in VB didn't work. That PInvoke thing can not be declared or somethng.

  • nate-d-o-double-g

    Like WHAT And why Web-Based

  • RSS in Visual Basic Express?