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
  • Application for all resolution

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    I
    If you mean a "springy" form resizing tool, there is much code out there, and several tools as well ... Here is a google search[^] for you. And in VB.NET, the forms can be layed out to do just that. "The greatest danger to humanity is humanity without an open mind." - Ian Mariano http://www.ian-space.com/
  • NetServerEnum

    help question
    8
    0 Votes
    8 Posts
    0 Views
    V
    Thanks it works fine. what do i need to do to use netapi32.dll in win9x/NT. More help please. Thanks.
  • help for Spreadsheet 10.0 component?

    csharp wpf wcf help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • add numbers from a listbox

    csharp
    4
    0 Votes
    4 Posts
    0 Views
    P
    PLEASE respond to forum Golfmaltais wrote: not valid with type of 'Integer' and type of 'DataRowView' Hold on! I've only just clicked on to this DataRowView thing. How is ListBox2 defined? A ListBox item should be of type Object. A DataRowView is an item of a DataView. [edit]I have this question wrong. I should be asking "How is ListBox2 populated?"[/edit] Paul Why don't you take a good look at yourself and describe what you see - Led Zeppelin, Misty Mountain Hop
  • add numbers from listbox to a textbox

    csharp
    2
    0 Votes
    2 Posts
    0 Views
    A
    Try specifying the property of the object you are referencing in: sum = sum + ListBox2.Items(ListBox2.SelectedIndex). In VB6 each data type had a default property, and I don't think VB.NET has this so you need to indicate which property you are reading from. Is it numeric? HTH Andy
  • A question of a newbie

    question
    3
    0 Votes
    3 Posts
    0 Views
    D
    Go to the property, mark all the text with the mouse and press DELETE. It's strange, but it's this way... lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
  • VS.Net Collection Editor

    visual-studio csharp help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Read Summary Information out of WordFiles

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to access Registry in VB.NET?

    question csharp windows-admin help
    4
    0 Votes
    4 Posts
    0 Views
    N
    Some of the system settings are read from the registry ONLY during windows logon/boot-up. That's why some apps force you to restart Windows after installation. Nish Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
  • VB.Net Encryption Class

    security csharp algorithms cryptography
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • how to do input validation in VB.NET?

    csharp help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    N
    drmzunlimited wrote: plz help me with input validation in textbox with VB.NET What part of this are you actually stuck on??? Nick Parker May your glass be ever full. May the roof over your head be always strong. And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
  • 0 Votes
    3 Posts
    0 Views
    M
    Hmmm... you emailed me, but no message here. Oh well - hopefully this helps. Sorry, I didn't realise you were asking for code, as your question only asks how to do it. What I do (but perhaps I shouldn't spread this possibly bad practice) when I need code for VBA is open the program (in this case Access) and start recording a Macro. Then perform all the actions for importing the excel spreadsheet to an Access table. Stop recording the Macro, view the Macro code - it will give you everything :-D Hope that is of more use to you :) I've always heard that there was an idea behind Win ME... I still can't figure out what that was... anyboy know??? I;ve herad the idea was that it was supposed to be n operating system but I doubt this. - Brian Delahunty
  • How do I display a video file on a form?

    question help
    2
    0 Votes
    2 Posts
    0 Views
    J
    If this is for VB6, just use the 'Windows Media Player' ActiveX. To insert it in VB, go to the menu Project->Components, then select the 'Windows Media Player', then OK. This will add a component that you can put on your form. Then, go through the properties of this component to load your movie. Hope this helps ! Jerome
  • Interpret Enter as Tab?

    c++ question
    2
    0 Votes
    2 Posts
    0 Views
    A
    use the KeyDown Event for each tab-enabled control. of course,this way, you have a lot of coding to do but it's the only way that i know
  • Comment tool for VB .Net

    csharp javascript xml question
    2
    0 Votes
    2 Posts
    0 Views
    B
    JS, I had a similar problem and wrote a VS addin to try and address this. It can be found at http://ncomment.sourceforge.net/[^] It is still in Beta, my apologies if you find any bugs in it. Let me know what you think. I am also working on a macro to add comment blocks to the top of functions. Ben.
  • low resource message

    tutorial question learning
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • HttpSendRequest

    csharp question
    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    Vipul, You have now sent me three email messages asking how to do this. As I have previously pointed out, I do not reply to questions sent by email unless they relate to an article or code sample I have published. You have posted the question to several different forums. If someone knows the answer, they will no doubt post a response. If you continue to email this question to me, I will report you for sending Spam. Richard
  • difficult problem of importing?

    help database tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    C
    look up the Access command: docmd.tansfertext
  • [VB.NET] Drag & Drop multiselection on listview

    csharp question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • importing an excel file and storing in MS-Access?

    database help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    S
    You can use the OleDb ADO.NET classes to access both MS Access and Excel datasources... it's works in pretty much the same way as the SqlDb classes when accessing a SQL Server database. The hard part is the connection, everything else is pretty much the same as importing/exporting data from other datasources... See these knowledge base articles if you need more information and sample code... HOW TO: Query and Display Excel Data by Using ASP.NET, ADO.NET and Visual Basic .NET - http://support.microsoft.com/default.aspx?scid=kb;en-us;Q311731 HOW TO: Use the ODBC .NET Managed Provider in Visual Basic .NET and Connection Strings - http://support.microsoft.com/default.aspx?scid=kb;en-us;Q310985 The last one is an example of connection strings for many different db types. It uses OdbcDb but can easily be changed to OleDb, if you please. steve