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
  • Calling a program from a VBScript ASP page

    com sysadmin linux tools
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Getting Printer Information Via Network

    sysadmin help
    6
    0 Votes
    6 Posts
    0 Views
    D
    I'm sorry, but I don't see in your components, where it returns the printer's Error History and current Paper Capacity remaining. RageInTheMachine9532
  • Newb question about controls

    question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Presumably the spin box control raises an event such as SpinBox1.PositionChanged or something similar (Check the controls documentation). You need an event handler for this in pseudocode it is something like this: Private Sub SpinBox1_PositionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SpinBox1.PositionChanged 'Code to handle event here. End Sub The event handler should pass data back in the Event args that you can use to set the attribute of the ScrollableControl or you could use the SpinBox controls property to set the value: Private Sub SpinBox1_PositionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SpinBox1.PositionChanged ScrollableControl.MyAttribute = e.Position 'Or ScrollableControl.MyAttribute = SpinBox1.Position End Sub If you are using VS.Net intellisense should point you in the right direction. What are the controls that you are using and what are the properties, events and methods that you wish to change on them? Jim
  • API, please reply me

    csharp json tutorial
    2
    0 Votes
    2 Posts
    0 Views
    N
    Check out <DllImport> in the help file. Support Bone
  • Finding Server Name

    question sysadmin
    2
    0 Votes
    2 Posts
    0 Views
    P
    in VB6 you can use the winsock control and query it's hostname related property. or you can use the 'GetHostByName' WinAPI function "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman
  • How to do replace strings in Vbscript

    tutorial tools help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Managing Menus

    security regex
    2
    0 Votes
    2 Posts
    0 Views
    Z
    I had a similar problem with the MenuItem control, and I got around it by assigning string information to the Tag property. When looping through a collection of controls, I checked the type to see if it was a MenuItem, and if it was, I compared against the Tag instead of the Name like I was using for the rest of the controls. This still means you'd need to add the Tag info to all those forms, but your application code would still just be in the one place. To not know is bad. To not wish to know is worse.
  • Format datagrid

    help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VB.NET CHECKEDLISTBOX AND TEXTBOX TOGETHER

    csharp database help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Retrieving ColorSpace from an image

    help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • File still in use after winzip

    linux question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Computer Locked

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • impl. context sensitive help

    help tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • connecting textbox with databasefield

    help csharp database tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • word automation, autodate

    testing tools question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How do I pick a colour on PictureBox and make it transparent

    question help
    5
    0 Votes
    5 Posts
    0 Views
    J
    If anyone else needs to solve this problem take a look at: Using a Color Matrix to Transform a Single Color and Creating Transparent GIF Images Jim
  • Translating PIDs into program names

    question help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • merging data from 2 XML files

    xml question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • datasets disappear from designer

    database xml help tutorial announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Properties

    csharp visual-studio design tools
    5
    0 Votes
    5 Posts
    0 Views
    M
    I guess so. You know, that's retarded...I thought everything in the CLR was exactly the same no matter what language. So why does C# have more design-time enhancements than VB? For example, why do we always have to comment every &#^%$%@ line of code instead of "/* .... */ ". Not that I am complaining...too much, because I do not like the syntax of C# / C++. I can understand and read it, but I don't think I'll ever code in it ;P