Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Paszt
  • Order by date
  1. Paszt

    Getting a path..

    Is the FolderBrowserDialog part of the V1.1 framework and not V1.0? I can't seem to find it and I'm using V1.0. Is it possible to use the V1.1 framework with Visual Studio 2002?
  2. Paszt

    How to do a search

    I'm waiting for chiph to reprimand you for leaving yourself open to SQL injection (do a Google search, or view the FAQ in the VB Databases forum).
  3. Paszt

    Microsoft word must be installed for spell Grammer Check to run!

    To see the real error, replace the line MessageBox.Show("Microsoft Word must be installed for Spell/Grammer Check to run.", "Spell Checker") with MessageBox.Show(COMExcep.toString)
  4. Paszt

    listview control and selectedIndexChanged event

    I'm also using the 1.0 framework, but I'm pretty sure the ListView.SelectedIndexChanged hasn't changed in V1.1. When I run the code in the above post, with the listview's MultiSelect property set to true, I do get the same results. The thing here is that a listview, with the MultiSelect...
  5. Paszt

    Some Basic Questions - New to VB.net

    RoguePoet01, The Left and Right string methods are still in VB.net, they are part of the Strings class. From VB6 to VB.net, str = Left("Test String",4) becomes str=Strings.Left("Test String",4) This is the new object oriented way of doing things. Since there may be...
  6. Paszt

    When I have a ' in my database I have an error...?!

    Rsx02, As a simple solution, replace the single quote with two single quotes: dv.RowFilter() = "First_Name = '" & Me.TextBox16.Text.replace("'","''") & "'" It is important that you know about SQL injection. Here is one of the many articles on the net...
  7. Paszt

    listview control and selectedIndexChanged event

    The SelectedIndexChanged event occurs in single selection ListView controls, whenever there is a change to the index position of the selected item. In a multiple selection ListView control, this event occurs whenever an item is removed or added to the list of selected items. If you need to...
  8. Paszt

    How do I generate Notification messages in the Tray?

    The stock NotifyIcon doesn't have this ability, but there are many free components available for download. here's a couple of links: http://www.dnzone.com/showDetail.asp?TypeId=3&NewsId=334 http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp Or you could create your own. I had a look...
  9. Paszt

    Simple question: how do I change text to bold

    try this: Label1.Font = New Font(Label1.Font, FontStyle.Bold) To turn it back to regular: Label1.Font = New Font(Label1.Font, FontStyle.Regular) -Stephen Paszt
  10. Paszt

    Search This Forum Draws from VB6

    Speaking of the keyword search, I've done searches for keywords on subjects that I knew I had just read a couple of days before and received no results. To double check, I entered a title from a recent post (knowing for sure that it exists) and also got no posts. Just now, I entered "Set...
  11. Paszt

    Windows application that has a built in Internet browser

    See: thread796-762123 http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/webbrowser.asp
  12. Paszt

    Converting type DataRow to Control

    Oh, I see. Try this: Dim wctrl As System.Web.UI.WebControls.WebControl For Each wctrl In Me.FindControl("Form1").Controls If wctrl.ID = vDataRow("ItemName") Then 'set controls properties End If Next -Stephen Paszt...
  13. Paszt

    multiline textbox to update 4 fields in a database

    Why not? Works for me.
  14. Paszt

    Converting type DataRow to Control

    CType Function - Returns the result of explicitly converting an expression to a specified data type, object, structure, class, or interface. CType(expression, typename) expression - Any valid expression. If the value of expression is outside the range allowed by typename, an error occurs...
  15. Paszt

    default to select... in combo box

    Cool. Thanks, that's easier than merging two datatables. _________________________________________________________ "The secret to creativity is knowing how to hide your sources." --Albert Einstein
  16. Paszt

    Creating a Directory Tree

    Here's a way to show the plus sign and handle clicking the plus sign or the nodes text: Sub ShowAllDrives() Dim drives() As String Dim cnode As TreeNode cnode = TreeView1.Nodes(0) drives = Directory.GetLogicalDrives() Dim aDrive As String...
  17. Paszt

    multiline textbox to update 4 fields in a database

    Use the textBox.Lines collection. If TextBox1.Lines.Length > 4 Then MessageBox.Show(Me, "Too many lines!") End If Dim ln As String For Each ln In TextBox1.Lines MessageBox.Show(Me, ln) Next -Stephen Paszt
  18. Paszt

    Deleting a file using thw webclient

    WebClient Class - Provides common methods for sending data to and receiving data from a resource identified by a URI The WebClient class provides four methods for uploading data to a resource: -OpenWrite returns a Stream used to send data to the resource. -UploadData sends a byte array to the...
  19. Paszt

    Cannot download file using webclient

    I tried this and it works. There's an error in the line: sRemoteUrl = "http://www.dions.com.au/bushire/"; + sFile It should read: sRemoteUrl = "http://www.dions.com.au/bushire/" + sFile - no semi-colon I've also noticed that you declare but don't use the variable...

Part and Inventory Search

Back
Top