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
  • zip a file

    help
    5
    0 Votes
    5 Posts
    0 Views
    C
    look here in CP for a ATL project that have that functionlity... Best regards Carlos Antollini. Pi Five[^]Creator Sonork ID 100.10529 cantollini
  • Custom Designer...

    question help tutorial css design
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Planet Source Code Visual Basic 2002 CD

    com announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • structure

    c++ question
    4
    0 Votes
    4 Posts
    0 Views
    P
    Thank you both
  • moving cursor to last (new) row in datagrid

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Login system for a program

    question csharp database tutorial
    2
    0 Votes
    2 Posts
    0 Views
    J
    My solution is maybe not the best, but when I had to implement a login system, I just had a table in my database storing user infos, as login name, password (actually a hashed version of the password), user access, etc... In this case, one database is enough. Jérôme
  • How to Cast dynamically?

    question csharp visual-studio xml tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • DES Encryption

    security
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Minimize button

    question help
    3
    0 Votes
    3 Posts
    0 Views
    A
    Try this: Private Sub Form1_Deactivate(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles MyBase.Deactivate If Me.WindowState = FormWindowState.Minimized Then Me.Hide() End If End Sub Or if you already have a function of your own then simply replace the Me.Hide() part and you are in business. Good Luck :cool:
  • The Recent Projects dialog

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Printing a datagrid in VB.NET?

    csharp help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Unwanted rounding in a sum !!!!!

    help tutorial
    2
    0 Votes
    2 Posts
    1 Views
    Richard DeemingR
    Variables declared as Long cannot hold fractional parts, and will always be rounded. Dim Price As Currency, TotalPrice As Currency, Tax as Currency, i As Long Price = 0 For i = 0 To 21 Price = Price + CCur(LBLSelPrice(i).Caption) Next LblTotal.Caption = Price Tax = (Price * 0.18) LblTax.Caption = Tax TotalPrice = Tax + Price LblGenTotal.Caption = TotalPrice "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Strange PostMessage Problem

    csharp help question
    2
    0 Votes
    2 Posts
    0 Views
    Richard DeemingR
    In VB6, Long was a 32-bit integer. In VB.NET, Long is a 64-bit integer, and Integer is the 32-bit integer. Unless you're working on a 64-bit version of Windows, you need to use 32-bit integers: Public Declare Function PostMessage _ Lib "user32" _ Alias "PostMessageA" _ (ByVal hwnd As IntPtr, _ ByVal wMsg As Integer, _ ByVal wParam As Integer, _ ByVal lParam As Integer) As Integer "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • How pass an enum as parameter to a function

    question
    4
    0 Votes
    4 Posts
    1 Views
    S
    Try this: Module Module1 Public Enum AnyEnum a = 0 b = 1 End Enum Public Sub Any(ByVal Enumeration As [Enum]) Dim myenum As AnyEnum = CType(Enumeration, AnyEnum) Console.WriteLine(myenum.b) End Sub Sub Main() Console.WriteLine("before") Any(New AnyEnum()) Console.WriteLine("after") Console.ReadLine() End Sub End Module Hardy, I'm really interested to know ... why? ;) Cheers, Simon "The day I swan around in expensive suits is the day I hope someone puts a bullet in my head.", Chris Carter. animation mechanics in SVG
  • I need a wait command

    question help
    2
    0 Votes
    2 Posts
    0 Views
    R
    NickOne wrote: Is there a way in VB 6.0 to make the system wait for a bit. Look in the SDK for the Sleep Win32 API call Look here for an example: http://www.buygold.net/v02n11/v02n11.html[^] NickOne wrote: It gives me an error sayign invalid procedure call or argument. How can I get the focus to start on my command button? Place the setfocus call in the formActivate event. The form load event fires as the form is being built and the control might not be available at that point yet. It will also help if you have all the controls Tab orders and indexes set properly. 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 6.0 printf-like string function?

    csharp c++ database tutorial
    4
    0 Votes
    4 Posts
    1 Views
    M
    I work c++ and vb to and i can tell you that those languages have nothing common. For example with the "printf" function you display something on the screen In vb you need to crate a label or text for example and the assign the value you want to your object. eg. 'Declare your variables Dim fmt As String Dim sql As String Dim InputStr As String ' %d is an input from the user right? So here you have to do this using a text box. 'when the user types the value he wants in the text box you get it and work with it ' eg Let say user gives the value "18542" for are code in the text box InputStr = text1.text ' Now the InputStr Variable has the value "18542" fmt = "Select Firstname from Employee where zip = " & InputStr ' This means that the statement is Select Firstname from Employee where zip = 18542 ' Those results don't expect to get them anywhere in the screen ' Create a Label or text (label for example and connect it to your data control 'Refresh your data control after assigning your new SQL Statement and you will get the result in your label I hope this will help you Mike Economou
  • VB Data control

    help database data-structures tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • How to catch DoubleClick event in treeview control

    tutorial
    2
    0 Votes
    2 Posts
    0 Views
    H
    The event is Control.DoubleClick and is an EventHandler, meaning that the second parameter is an EventArgs. "Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
  • excel.sheet.setprintArea

    question help tutorial
    6
    0 Votes
    6 Posts
    0 Views
    N
    Win wrote: Is there anyway that I can find out whether the sheet(s) has any protection?? what if I don't know the password?? err..... sorry, don't know much in that area. 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
  • generating report based on subgroups

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