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
  • event notification DLL to GUI Application

    com tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Howto Unload a Dll Programaticlly from your app?

    sysadmin help question workspace
    6
    0 Votes
    6 Posts
    0 Views
    D
    I tried to modify my code to generate the assembly in memory instead of creating the dll on disk. and I get an error. An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: Could not find file "C:\DOCUME~1\GDUDLE~1.MBI\LOCALS~1\Temp\cdqmv_u2.dll". Unhandled Exception: System.IO.FileNotFoundException: Could not find file "C:\DOCUME~1\GDUDLE~1.MBI\LOCALS~1\Temp\cdqmv_u2.dll". File name: "C:\DOCUME~1\GDUDLE~1.MBI\LOCALS~1\Temp\cdqmv_u2.dll" does this mean it is still creating and loading from the disk? The filename it is displaying changes each time I run it so I assume it is a temp file. ================================= When i was in school all I wanted was to get out into the real world. Now that I'm in the real world all I want is to go back to school.
  • Trying to use MSUtil.LogQueryClass.ExecuteBatch

    csharp java data-structures tools
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to z-order a window?

    question csharp tutorial
    2
    0 Votes
    2 Posts
    0 Views
    D
    there isnt a zorder like in vb6 ,but SendtoBack works fine, i just placed a listview over the top of a richtextbox then on a command button did the following ListView1.SendToBack() and the listview got sent to the back ( behind the richtextbox )
  • UserControl and Properties

    design question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • ComboxBox DataBindings

    wpf wcf question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • A good Visual Basic 6.0 Book

    c++ com help question
    4
    0 Votes
    4 Posts
    0 Views
    H
    To download the source code for examples of this book go to www.sybex.com[^] and search for the title..You'll find a link in the page that directs you where to download code on the CD. I'm not sure if the book itself is available online.
  • Attach Calendar in a Text box (VB6)

    help tutorial
    3
    0 Votes
    3 Posts
    0 Views
    E
    Yes, I've just tried that. Thanks for your response. Rgds.
  • Data Grid

    question css xml
    2
    0 Votes
    2 Posts
    0 Views
    N
    When you databind your datagrid with a dataset, you are in fact setting up a "relationship" between the 2 objects. The changes done in the grid will be reflected to the dataset, so all you need to do is retain the dataset in memory. Notorious SMC The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain Get your facts first, and then you can distort them as much as you please Mark Twain
  • Debugging Programs problems

    help learning
    2
    0 Votes
    2 Posts
    0 Views
    N
    It seems like you need to set the startup object in the project properties. TO access the project properties, you can either: 1. Click Project on the Menu Bar and select Properties, or 2. Right-click on your project in the Solution Explorer and select properties On your project property dialog, you will see a combo box labelled "Startup Object". Navigate your combo box and select a startup object, which is usually a Sub Main method. Notorious SMC The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain Get your facts first, and then you can distort them as much as you please Mark Twain
  • Substring and Drawing.String

    graphics help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • User interface like frames on a web page

    csharp design game-dev question
    4
    0 Votes
    4 Posts
    0 Views
    A
    Perfect! Thanks!
  • Internet explorer style user interface

    design data-structures
    2
    0 Votes
    2 Posts
    0 Views
    M
    Make a custom control that contains a TreeView, leaving room at the Top to draw your own Button control. If you want to detect whether the button was Clicked, do it one of two ways: 1.) Determine if the MouseDown position falls within the Bounds of where you drew the Close Button. Use the code below to draw the button. 2.) Create a very simple separate control called "CloseButton" and all it does on the "OnPaint" event is the following code: Dim g As Graphics = Me.CreateGraphics ControlPaint.DrawCaptionButton(g, New Rectangle(50, 50, 50, 50), CaptionButton.Close, ButtonState.Flat) g.Dispose() : g = Nothing
  • Toolbar Icons?

    question
    2
    0 Votes
    2 Posts
    0 Views
    F
    www.vbaccelerator.com and check out the icons section
  • Help with IntPtr

    question csharp data-structures help
    2
    0 Votes
    2 Posts
    0 Views
    P
    Convert the third parameter to Intptr using CType as follows dsBuf.WriteBuffer(0, 0, buf(0),CType(CONST_DSBLOCKFLAGS.DSBLOCK_ENTIREBUFFER,System.IntPtr))
  • Running one Instance of EXE

    csharp help tutorial
    7
    0 Votes
    7 Posts
    0 Views
    P
    thanx CBoland Its great and working as per my expectation. Thanx a lot Pradipta
  • Help: DirectSound question

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

    sysadmin help
    7
    0 Votes
    7 Posts
    0 Views
    T
    In your case I can see whay the licenses.licx is required. Even although you have wrapped the original control in a dummyshell it is probable that the dummyshell actualy creates an instance of the control anyway, which causes the licensing to kick in. The licensing is in the constructor. The theory I have in my case is something to do with the path of the lic file being in a web. The License provider seems not to deal with this situation. Originally I wrote new license providers assuming that the implementation would be a walk in the park. Just to get it right I decided to do a quick test using the basic license provider and it didn't work!!. I am probable wasting time trying to get the basic license provider working and should just launch straight into implementing my custom provider. Hope my comments helped in your case. Thansk for your efforts anyway.
  • Detecting Windows Events

    question
    2
    0 Votes
    2 Posts
    0 Views
    J
    Here's one possible starting point: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconsubscribingtoandconsumingmanagementevents.asp
  • Loops HELP

    help
    2
    0 Votes
    2 Posts
    0 Views
    J
    If you absolutely have to store your commands in the Caption property of your checkboxes, you could do something like this: For i = 1 To Check1().UBound + 1 Debug.Print Check1(i - 1).Caption & ":" & CStr(Check1(i - 1).Value) If Check1(i -1).Value = 1 Then commandLine = "net send " & Check1(i - 1).Caption End If Next