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
  • Load at Start up !

    database csharp help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How can I bind data to Groupbox of radiobuttons

    help tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    T
    Either: RadioButton1.DataBindings.Add(New System.Windows.Forms.Binding("Value", Mydataset, "client.stop_serv1")) RadioButton2.DataBindings.Add(New System.Windows.Forms.Binding("Value", Mydataset, "client.stop_serv2")) Or, can you just use a check box and bind the Checked property? Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989
  • Adapter.Fill ?

    help csharp mysql question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Upgrade to Visual Studio 2003?

    csharp visual-studio beta-testing question announcement
    2
    0 Votes
    2 Posts
    0 Views
    M
    For Visual Studio .NET 2002 customers who do not subscribe to MSDN or to a Microsoft volume licensing program, Microsoft is committed to providing an inexpensive path to "Everett." Registered users of Visual Studio .NET 2002 will be able to license "Everett" for $29 US, the cost of materials, shipping and handling, for a limited time after release. Availability will be roughly concurrent with Windows .NET Server 2003. For those customers who prefer not to upgrade to Visual Studio "Everett," a service pack offering only bug fixes for Visual Studio .NET 2002 will be available soon after the "Everett" release. from http://msdn.microsoft.com/vstudio/productinfo/roadmap.asp[^] Michael Fat bottomed girls You make the rockin' world go round -- Queen
  • Capture output

    tutorial question
    5
    0 Votes
    5 Posts
    0 Views
    T
    I have implemented this code in a WebForm which basically gives me a remote command line into the server. I never thought I would tunnel DOS over the internet. This does make a few holes in the security of shared hosting as it effectively bypasses all permissions. While you may not by able to use System.IO to delete say C:\Autoexec.bat - you can upload a console app and execute that from the machines system account. Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989
  • Could anybody help me in visual basic

    json help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • toolbar_button click

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    N
    If it is VB6... When you set the properties for your toolbar, you have to set the key for each button, for example, "IDX_NEW","IDX_OPEN", etc. Then Private Sub toolbar_ButtonClick(ByVal Button as MSComctlLib.Button) Select Case Button.Key Case "IDX_NEW" _coding_ Case "IDX_OPEN" _coding_ ........ 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
  • LabelArray and MenuItemArray

    help tutorial
    2
    0 Votes
    2 Posts
    0 Views
    N
    Both these object are from the vb6.compatibility namespace and are used to represent control array when upgrading a project from vb6 to .net. Microsoft does not recommend the use of these objects for new .net projects sinse they will not support it in later versions. However, if you still want to use them... First add the controls to the form, say lblArray,lbl_0,lbl_1,lbl_2 then Public Sub Form_Load() lblArray.SetIndex(lbl_0,Ctype(0,Short) lblArray.SetIndex(lbl_1,Ctype(1,Short) lblArray.SetIndex(lbl_2,Ctype(2,Short) End Sub You can then reference these controls as lblArray(i), where i = 0,1,2 though IMHO, it's better than you not use them. Instead just declare an array of labels and assign each control to it 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
  • Launching executable file

    help linux question
    2
    0 Votes
    2 Posts
    0 Views
    R
    in the error handler take a look at the error message and error number to give an indication as to why your handler is being called. Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."
  • Visual Basic DLL

    c++ question help
    5
    0 Votes
    5 Posts
    0 Views
    R
    VB6 can not create DLLs that export functions like C++ can. It can only create COM DLLs. Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."
  • VB6 app de-compiler

    question sales help
    2
    0 Votes
    2 Posts
    0 Views
    R
    I have never seen a good decompiler for VB6 exe's. There have been rumors but I have never seen anything that has worked. Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."
  • ActiveX DLL control help

    com help question
    2
    0 Votes
    2 Posts
    0 Views
    R
    As far as I know there is no way to directly display a VB form on a web page. You would have to build your form as a visual OCX control. Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."
  • VB and pointer to function

    json question
    2
    0 Votes
    2 Posts
    0 Views
    R
    Try here... This seems liek a decent example: Google Clickety[^] Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."
  • DirectX 9.0 Released

    csharp com graphics game-dev question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VB DLL for C App

    com security question
    4
    0 Votes
    4 Posts
    0 Views
    C
    ;P i miss that. As you have the header file for the DLL export function prototype which going to load by the C app. So i guest developing the Dll with C/C++ is the choise. As VB can not create normal WIN32 DLL as the LoadLibrary API need a valid dll entry point which does not generated in VB ActiveX Dll. K-PAX? CHANGE THE WAY YOU LOOK AT YOURSELF, OTHERS & THE WORLD...
  • how to control one form from another?

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    C
    How about this? ParentForm.mnuHello.Enable = True K-PAX? CHANGE THE WAY YOU LOOK AT YOURSELF, OTHERS & THE WORLD...
  • Want to do this in VB - involves C pointers...

    help
    2
    0 Votes
    2 Posts
    0 Views
    C
    Perhasp you can try with the varptr to pass the pointer into the Fusion_Method function. K-PAX? CHANGE THE WAY YOU LOOK AT YOURSELF, OTHERS & THE WORLD...
  • input validation??

    help tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    N
    drmzunlimited wrote: and how to limit the letters in a textbox along with the type of data to be entered?? There's a MaxLength property for the textbox which can be used to limit the amount of letters that can be keyed in And to verify the type of data, you need to do some coding in the Textbox_Change() event as for your first question, not too sure, but i think you can do some coding on the Change() event as well 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
  • secondary thread to add data to the control

    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Game

    graphics game-dev
    3
    0 Votes
    3 Posts
    0 Views
    D
    Don't know if you got your answer yet, but I came across an example in the book VI6 Unleashed. It isn't exactly the solution, but it demonstrates moving graphics around and locking them into place. I don't think there is an IP issue sharing this with you. I also don't know how to attach a file, so here is the source for the page in in line: (Graphics files obviously missing.) I hope it helps. Flags of Canada <!-- beingdragged = "" theid="" sub domousedn theid = window.event.srcElement.id ' if left(theid,4) = "text" then beingdragged = "" else beingdragged = theid end if end sub sub domousemv if window.event.X < 45 then beingdragged="" end if if window.event.Y < 34 then beingdragged="" end if if beingdragged <> "" then ' document.all(beingdragged).style.pixelLeft = window.event.x - 45 document.all(beingdragged).style.pixelTop = window.event.y - 34 call checkpos end if window.event.cancelBubble = true window.event.returnValue = false end sub sub checkpos() textname="text" & beingdragged if (document.all(beingdragged).style.pixelLeft > document.all(textname).style.pixelLeft - 10 AND _ document.all(beingdragged).style.pixelLeft < document.all(textname).style.pixelLeft + 10) _ and _ (document.all(beingdragged).style.pixelTop > document.all(textname).style.pixelTop - 10 AND _ document.all(beingdragged).style.pixelTop < document.all(textname).style.pixelTop + 10) THEN document.all(beingdragged).style.pixelLeft = document.all(textname).style.pixelLeft document.all(beingdragged).style.pixelTop = document.all(textname).style.pixelTop document.all(beingdragged).filters.alpha.opacity=50 document.all(textname).style.visibility="hidden" beingdragged="" end if end sub sub domouseup if beingdragged <> "" then ' document.all(beingdragged).style.zIndex = 0 beingdragged = "" window.event.cancelBubble = true window.event.returnValue = false end if end sub '--> <!-- sub document_onmousedown call domousedn end sub sub document_onmousemove call domousemv end sub sub document_onmouseup call domouseup end sub -->