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
  • Renaming a file

    help
    2
    0 Votes
    2 Posts
    0 Views
    H
    A PictureBox stores the image at that time and is not tied to the image. For instance, if you changed the image (added a line or something), the changes are not reflected automatically in the PictureBox. This requires change notification. More than likely, you're not giving a fully resolvable path to the file, which is either a fully-qualified path or a relative path to the current working directory (not necessarily always the directory from which your app is running). The best thing you can do is debug your code using the excellent tools in the IDE. Debugging code is half the battle. -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----
  • shuffle cards

    help
    2
    0 Votes
    2 Posts
    0 Views
    I
    Sounds like you need a BogoSort[^] algorithm. -- Ian Darling
  • Calling convention

    question csharp
    3
    0 Votes
    3 Posts
    0 Views
    A
    I have to use a legacy C DLL. Some functions in this DLL need Callback as parameters. The Callback are writen in VB.NET. When I pass the address of Callback to the DLL function non managed code, its work (I mean the DLL call may Callback). But it seems to be a stack corruption after the end of the callback call because the callback use _stdcall convention (Default and the only one supported in VB.NET and C#).
  • "Find a phrase" and display it. How to??

    question help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    N
    Try the System.Text.RegularExpressions namespace. Nick Seng (the programmer formerly known as Notorious SMC) God, I pity me! - Phoncible P. Bone
  • 0 Votes
    2 Posts
    0 Views
    N
    I'm not sure if I'm reading this correctly, but is trackXMLstr actually the content of the xml? If it is, you need to use the LoadXml function, not the Load function, which accepts the path of the xml file, not the content itself. Nick Seng (the programmer formerly known as Notorious SMC) God, I pity me! - Phoncible P. Bone
  • Bar code

    question
    3
    0 Votes
    3 Posts
    0 Views
    S
    Friend I think this link help to you for exploring all details regarding bar code // Bar Code Reader http://www.bizfonts.com/vba/ Sandeep
  • How to test for Path Too Long?

    tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    G
    Most win32 c++ compilers have a _MAX_PATH constant defined - I'd search the Web/MSDN and see what this is defined as ... I would have thought VB had a function sitting over a win32 api that returns a path, the MSDN specs for that API should eventually yield that max it returns ... ps .. I took this >> from the MSDN CreateDirectory API page (The GetCurrentDirectory function doesnt show what you're looking for, unfortunately) .. "There is a default string size limit for paths of 248 characters. This limit is related to how the CreateDirectory function parses paths. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File." so depending on what you define _MAX_PATH to be, you can just check the string length against it .. Sorry, that probably doesnt help much
  • Problems with sockets

    help sysadmin debugging question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Web Service Time Out

    database wcf help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • DataGrid Problem

    css help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • dial-up connecion properties (Urgent plz)

    csharp json announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How do I use Left, Right and Mid Functions?

    question help tutorial
    6
    0 Votes
    6 Posts
    7 Views
    M
    That looks like it would save a lot of code, but I'm not sure how to use it to get the results I need. Am I correct that this is attached to a command button?
  • Store multiple XML files

    database sql-server sysadmin xml question
    3
    0 Votes
    3 Posts
    0 Views
    1
    Thanks mate, will look at that!
  • talk to USB ports

    com tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    First, do you have the drivers for the scanner? If not, your going to need the low-level docs on the scanner hardware so you can write your own device driver. That's just to TALK to the device. You'll probably find those docs in the SDK that you can't get. Next, you'll need the documentation on the command protocol the scanner uses. You have to know the language the scanner speaks. Again, probably in the SDK you can't get. Without these docs, your not going to know how to get the device initialized, send commands, receive and interpret responses, perform properly formatted data transfers, or whatever else the device needs... Next, there are no native classes to VB or VB.net that allow you to easily communicate over USB. You'll either have to search the web to try and find any or have to write something yourself. These would be good places to start: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/buses/hh/buses/usbhdr\_32nb.asp http://www.lvr.com/usb.htm RageInTheMachine9532
  • Sub Main

    csharp help
    4
    0 Votes
    4 Posts
    0 Views
    N
    Don't worry about it. VB.Net is quite easy once you get the hang of it :) OK, regarding your question. In VB.Net, there are 2 possible points of entry in an application, A windows form, or a Sub Main. To set either one, go to your Solution Explorer, Right-click on your Project and choose properties. Look for the "Startup Object" properties and it's corresponding Combobox, which will list any "Sub Main" and windows form in your application. Choose any one to have your program "start" from that point. Nick Seng (the programmer formerly known as Notorious SMC) God, I pity me! - Phoncible P. Bone
  • new to vb

    database
    7
    0 Votes
    7 Posts
    0 Views
    B
    Hello Alan, Thank you for your advice. But are VB commands the same as those of VB.NET? Since I have acquired VB.NET Software, can I use it as a tool for teaching myself the basics of VB? Or will I need to get a different compiler for VB? Ben
  • No accessible 'Main' method

    help tutorial question workspace
    8
    0 Votes
    8 Posts
    0 Views
    B
    A quick one, thanks mate for your contribution. Will be trying it now. Will get back to you soon. Well, I thought of beginning programming using VB.NET because there seems to be a lot of useful knowledge to be gained from it. Regards, Ben
  • Any good up and coming conferences

    csharp java asp-net performance
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How do I convert to and from UNIX standard epoch date numbers?

    question perl help
    5
    0 Votes
    5 Posts
    0 Views
    A
    nice
  • ioctlSocket in VB.NET

    csharp design help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied