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
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • int to a

    c++ question
    7
    0 Votes
    7 Posts
    0 Views
    P
    I used Chr(). Thanks
  • get single cell name..

    help tutorial question
    3
    0 Votes
    3 Posts
    0 Views
    P
    Thank you SMC, Can you please tell me how to get the position of the particular cell. and can you also check my following incorrect code please. I'm trying to wait for the user to close the excel application after they done with whatever they have to do to the excel file. where am i getting wrong and how to fix it. Dim idProc As Long Dim hProc As Long idProc = VBA.Shell("Excel", vbMaximizedFocus) hProc = OpenProcess(PROCESS_ALL_ACCESS, False, idProc) If hProc Then Do While WaitForSingleObject(hProc, 100) = WAIT_TIMEOUT DoEvents Loop CloseHandle hProc End If Thank you.
  • generating report based on values in 2textboxes

    database question workspace
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • add new IE button in registry - vbs

    windows-admin linux tools help question
    2
    0 Votes
    2 Posts
    0 Views
    F
    Sorry! My bad. It works fine. ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
  • bad dll calling convrention

    help question
    3
    0 Votes
    3 Posts
    0 Views
    R
    Erm....haven't looked in any detail, but would guess the problem is caused by you declaring variables without specifying a type (Long int et). By default, in VB6 any typeless vars are VARIANTS - and your function needs longs....
  • Exposing UserControl events to IE

    csharp winforms com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • type mismatch

    testing beta-testing help question
    2
    0 Votes
    2 Posts
    0 Views
    S
    I'd recommend the following: - create a local variable based on a Trim() of the txtQuantity.Text - check length first - next, check for a false on IsNumeric() - only then look for certain integer values HTH limit further bugs btw, which line are you getting the type mismatch from? Cheers, Simon "The day I swan around in expensive suits is the day I hope someone puts a bullet in my head.", Chris Carter. my svg article
  • populating datagrid based on same field in database

    database question help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Adding Properties at runtime in PropertyGrid Control

    help tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VB.NET : How Can i Bind data to CheckBox

    csharp wpf wcf sales
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    mcm wrote: Do Until .EOF .MoveFirst Call Save(iOrderNo, strCode, strDesc, iQuantity, iFullPrice) .MoveNext Loop This code: Moves to the first record; Saves the record; Moves to the next record; Goes back to the start of the loop; Tries to move to the first record; Throws an error because you have a forward-only recordset; Change the loop to: Do Until .Eof ' TODO: Get these values from the recordset! Call Save(iOrderNo, strCode, strDesc, iQuantity, iFullPrice) .MoveNext Loop "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Grid

    css database
    6
    0 Votes
    6 Posts
    0 Views
    N
    Actually, the flexgrid in VB6 was not free. You could use it but it kept popping up messages asking you to buy it. I guess .net just tightened the rules and made it so that you have to buy it before you can use 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
  • Using SourceSafe

    csharp question visual-studio announcement
    2
    0 Votes
    2 Posts
    0 Views
    S
    Visual Studio.NET can use VSS also. You should use 6.0c (which is the version that came with VS.NET Enterprise) since, if I remember correctly, it had some file types changes that help it work with VS.NET. 6.0c should be in the MSDN disks...
  • copying arrays

    question data-structures
    6
    0 Votes
    6 Posts
    0 Views
    Richard DeemingR
    Array.Copy won't work, since there isn't a direct cast from DataRowView to String. You'll need to copy the array manually: Joe = Array.CreateInstance(GetType(String), lookupRows.Length) Dim i As Integer For i = 0 To lookupRows.Length - 1 Joe.SetValue(lookupRows(i).ToString(), i) Next However, since DataRowView doesn't override the ToString function, you'll just get an array filled with the string "[System.Data.DataRowView]". The DataRowView class isn't serializable, so you would need to write your own function to convert it to a string. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • query on scrrun.dll

    c++ database question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • calling a function to save to a table

    help question
    2
    0 Votes
    2 Posts
    0 Views
    H
    Set RS = Conn.Execute(nSQL) I think the above statement is the problem .. you execute a statement that inserts data in a table and does not return a recordset .. try using : Conn.Execute(nSQL)
  • Imort an Event from a VC++ DLL

    question c++ javascript data-structures
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Advanced Manipulation of WAVS

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Calling my custom editor

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