Search results for query: *

  • Users: vbkev
  • Order by date
  1. V

    Updating a file to Sql server database

    Private Sub StoreFile(ByVal FileName As String) Dim oArray() As Byte Dim oStream As System.IO.FileStream Try 'Open the specified file and read it into a byte array oStream = System.IO.File.Open(FileName, IO.FileMode.Open) ReDim oArray(oStream.Length - 1) oStream.Read(oArray, 0...
  2. V

    ASCII to Binary

    do you want to convert a String to a Byte Array, or the Binary Equivelant (01011100 for a character for example) or do you want the Hex values or something else?
  3. V

    run prog with explorer

    Rename %ProgramFiles%\Internet Explorer\IEXPLORE.exe to something else, name your app IEXPLORE.exe and put it in it's place, then spawn your renamed ie from your app. Wou might wanna pass any command line arguments to it aswell. However, things like system restore on windows xp and some virus...
  4. V

    help..

    cboGender.SelectedIndex = 0 This will select the first item, which could be an item that says "Please Choose One" or somethin like that
  5. V

    question abt class library

    a windows application creates a .Exe file, a class library creates a .dll
  6. V

    CharArray to String conversion

    try Convert.ToString()
  7. V

    File Access Problem

    yeah, that's a clever 'Feature' of the dialog boxes, when you use them is sets the CurrentDirectory (or whatever it's called nowadays) to be the selected folder. that's why you should ALWAYS specify a path. have even had problems in the past with not specifying a path, then using a dialog box in...
  8. V

    File Access Problem

    Application.StartupPath + "\MyFile.txt" would access MyFile.txt in the same directory as your exe, otherwise you should specify a path for the file aswell.
  9. V

    Side-by-Side with VS.NET 2003

    or free if u have an msdn universal :)
  10. V

    How to get the current workstation IP# & Gateway IP#?

    sorry, it should read sKey += oProperty.Value.ToString + vbCrLf
  11. V

    How to get the current workstation IP# & Gateway IP#?

    List Properties Private Sub ListObjects() Dim oSearcher As New System.Management.ManagementObjectSearcher("select * from Win32_NetworkAdapterConfiguration") Dim oObject As System.Management.ManagementObject Dim oProperty As System.Management.PropertyData Dim sKey As String = "" For Each...
  12. V

    Displaying html within a windows form

    Or, you could write the html to a temporary file and use the AxWebBrowser to browse to it.
  13. V

    Oracle Insert statement

    I had a similar problem to this using the SQLCommand and SQLParameter objects. Setting it's initial value to DBNull.Value sorted it out for me. could be a similar thing. oParam = New SQLParameter("@ReturnedInt", DBNull.Value) oParam.SqlDbType = System.Data.SqlDbType.Int If Not sReturnedInt Is...
  14. V

    Deployment project output question.

    yeah, however this is really only needed for pre win2k machines as 2k and xp have windows installer 1.1 (the latest version i believe) as part of the OS
  15. V

    Problems in VB.net?

    yeah sorry i forgot to say that was for the closing event. what i generally tend to do is create a member variable Private mbClose As Boolean = False In my Closing Event Handler If mbClose = False Then e.Cancel = True Me.WindowState = FormWindowState.Minimized End If Finally, i...
  16. V

    HeaderText

    See attached files
  17. V

    Possible feature

    Love the site however.. Long ago, when i was a bairn, there was a site called www.vbchat.com what had a chat room dedicated to vb guys. me and a few others would sit in there all day answering questions and asking eachother some. It was really nice to be able to bounce ideas of others and be...
  18. V

    HeaderText

    On the data grid properties, edit the TableStyles collection. Add a new style or edit an existing one if there is one. Click on the GridColumnStyles collection node edit button. There should be a down arrow next to the Add button, click this and select datagridtextboxcolumn. Near the bottom...
  19. V

    Problems in VB.net?

    3. This code should work: e.Cancel = True Me.WindowState = FormWindowState.Minimized
  20. V

    Problems in VB.net?

    1. Application.StartupPath 2. It should assume the current directory but it is good practice to specify the directory
Back
Top