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
  • Is the Screensaver running?

    csharp json help question
    6
    0 Votes
    6 Posts
    0 Views
    D
    998 wouldn't have told you what the problem was either. It means "Invalid access to memory location." The only thing it would have told you is that your passing an invalid reference to a variable, or memory location. The complete list of Win32 API errors can be found here[^]. RageInTheMachine9532
  • 0 Votes
    7 Posts
    0 Views
    I
    Het2109 wrote: ya, but suppose i have a group box and my textbox/combo box is placed on the group box, then how to access it. thru this code i get groupbox, but not the controls that are placed inside the groupbox. Then handle that case in the loop, either by having a secondary loop, or better, set up the loop as a function that takes a controls collection as a parameter. eg: Public Sub RecurseControls(ByVal ctls As ControlCollection) Dim c As Control For Each c In ctls If TypeOf c Is TextBox Then Debug.WriteLine(c.Text) ElseIf TypeOf c Is GroupBox Then RecurseControls(c.Controls) End If Next End Sub You call this function, passing in Me.Controls to start with. -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
  • ActiveX Dll project in Visual Basic.net

    com help csharp sysadmin
    2
    0 Votes
    2 Posts
    0 Views
    I
    I found the problem! Public Sub New() MyBase.New() g_dbConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" End Sub as soon as i commented the "g_dbConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""" line it started to work. Can some one tell me, can i have extra code in the sub new ? besides the MyBase.New()? :confused:
  • I Need Help Copying Files

    sysadmin help
    3
    0 Votes
    3 Posts
    0 Views
    B
    Thank you. It looks much more than I expected. I need to get VS.NET on here then I can try it out.
  • VB.NET Database connections

    help csharp database
    2
    0 Votes
    2 Posts
    0 Views
    M
    Hi Marc, What's the connection string that you're using? Datagrid Girl
  • I Don't wanna go to Add/Remove Program to Uninstall my application

    question
    4
    0 Votes
    4 Posts
    0 Views
    J
    It's works. Thank You men.. Johnny Lizardo
  • wat is the code for matrix function(math)

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Anyone know's about bootstrapper plug-in.?

    help com question workspace
    2
    0 Votes
    2 Posts
    0 Views
    N
    Maybe use the documentation link on the site ... you need .net passport but i guess almost everybody has one now ... ;P greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • New Project

    csharp security help question
    3
    0 Votes
    3 Posts
    0 Views
    N
    So you can't even start a new project? Do you have Administrator rights and are you in the Debugger Users group? greetz ;-) *Niels Penneman* Software/Dev Site Personal Site
  • ListView repainting problem

    csharp css wpf help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • freezing issue with simple client/server

    help csharp sysadmin data-structures
    3
    0 Votes
    3 Posts
    0 Views
    A
    Thanks, I haven't gottin real deap into the diagnostics namespaces but the whole purpose is to learn so I'll look into it. Defenetly sounds like a good thing to learn to use for debugging. Thanks again. 2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
  • linking vb.net user interface with c++ dll function

    csharp c++ design tutorial
    3
    0 Votes
    3 Posts
    0 Views
    D
    Like Colin said, LINKing is hellishly difficult. Or are you trying to CALL functions in a C++ .DLL. If so, you can start reading up on it here[^]. This is an article showing how to call DLL functions using P/Invoke in VB.NET. VB6 is very similar to this. RageInTheMachine9532
  • How to install kbd hook in VB

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Multi level binding with Datagrid

    wpf wcf tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Passing Data between Windows Forms

    winforms help question
    4
    0 Votes
    4 Posts
    0 Views
    C
    I'm glad you got it working, but unless this is a throw away app, you may end up kicking yourself later when you decide to change the layout of your UI. A little extra coding now to encapsulate your classes will save you a lot of coding later. However, if you expect never to touch it again once it's done, public fields will work fine. Charlie if(!curlies){ return; }
  • VB.NET overloading & COM

    database tutorial question csharp
    2
    0 Votes
    2 Posts
    0 Views
    M
    COM can't expose overloaded methods through Automation - it's not part of the specification. The .NET Framework selects one of the method overloads to be exposed to COM. I think you can select a different overload to be exposed by using the ComVisibleAttribute attribute to hide the ones you don't want COM/Automation clients to see. The other alternative is to give each overload a unique name (removing the overloads).
  • All Controls in Form

    csharp tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    C
    You need to use the Controls property, which all forms have, and it seems all controls have. So your panels can have a collection of controls. You can do this dim lControl as Control for each lControl in Me.Controls ... Next Me is a form or Panel or any control. The typeof works the same. Hope this helps. Nursey
  • attachments in Word Document

    hardware testing tools question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Recursive File Copy/Delete

    csharp tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    D
    Anonymous wrote: Besides, you come from comcast.net, which is one of the biggest SPAM senders on the Internet. How odd that I've never gotten a SPAM originating from a Comcast IP. But I know what your talking about. Machines on Comcast's network, as well as others, have been hijacked by trojan horses to send out a few hundred SPAM's at a time, here and there, so the users won't notice the extra traffic on their connections. It's s a very sneaky way to get around SPAM blockers that block by source domain. Comcast is pretty strict about not running servers on your connection. Believe me, I've been hassled more than a few times about the web/ftp servers I run for my own private use. In my experience, someone sending out millions, if not thousands of SPAM's would get disconnected pretty quick for violating the TOS. RageInTheMachine9532
  • How to disable Ctrl+Alt+Del in window XP with VB

    json tutorial question
    6
    0 Votes
    6 Posts
    0 Views
    D
    Yes it is, but corporate had the final say on what was a GOOD :wtf: idea (in their eyes, anyway...) It worked beautifully though! :-D RageInTheMachine9532