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 gmmastros 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: earthandfire
  • Order by date
  1. earthandfire

    How can I address the Titlebar

    VB.NET: Public Class Form1 Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As IntPtr, ByVal nIndex As Integer, ByVal dwNewLong As Integer) As Integer Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As IntPtr...
  2. earthandfire

    ISQL command line

    I haven't tested this, but you could try: -s"^I" ^I is CHAR(9) Hope this helps [vampire][bat]
  3. earthandfire

    help parsing a string using Regex

    An alternativre pattern: (?<=FROM[ ]\S+[ ])\w+ then, you just need: return match.ToString() The pattern uses a "Positive look behind", meaning only return the desired match if it follows the match in the prefix. In other words, only return: \w+ if it follows: FROM[ ]|S+[ ] Hope this...
  4. earthandfire

    Can application be opened in Panel / TabPage

    I don't have access at work, but I'll post a more detailed explanation tonight. [vampire][bat]
  5. earthandfire

    Work with console commands

    A quick example, not specifically what you are looking for, but should point you in the right direction: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click RichTextBox1.Clear() Dim p As New Process Dim psi As...
  6. earthandfire

    Work with console commands

    Have a look at System.Diagnostics.Process and the various properties of the StartInfo class. That should give you all you need. [vampire][bat]
  7. earthandfire

    Can application be opened in Panel / TabPage

    There is another method, but it is not as flexible as DSOFramer and there are a limited number of programs for which it will work. You will have to use trial and error to find out which. For examnple it works (sort of) with Notepad, but not WordPad. It will work with Calc, but then goes wrong...
  8. earthandfire

    Good starting point for Excel work through VB.NET

    Again, another MS KnowledgeBase article: http://support.microsoft.com/kb/301982 explains the process quite well. The important thing to remember is that you must clean up any references to all Excel objects, or you might find the Excel process still running in memory when your application...
  9. earthandfire

    Can application be opened in Panel / TabPage

    Install it, and then select it from the COM tab in the Add Components/Controls dialog box (right-click on the Toolbox). It is very easy to use, just follow the examples provided. [vampire][bat]
  10. earthandfire

    Can application be opened in Panel / TabPage

    The link to the download is about halfway down the page I mentioned above. [vampire][bat]
  11. earthandfire

    Can application be opened in Panel / TabPage

    The DSOFramer http://support.microsoft.com/kb/311765 Will allow you to run most Office Apps and many others [vampire][bat]
  12. earthandfire

    NULL leaves an blank space

    RiverGuy, good point. I never do any Web development - I keep well clear of it!! As such, I would never have thought of suggesting Response.Write. [vampire][bat]
  13. earthandfire

    NULL leaves an blank space

    What's wrong with a simple MessageBox? either: With objCommand .Connection = oOleDbConnection .CommandText =sSQL MessageBox.Show(.CommandText) .CommandType = CommandType.Text .ExecuteNonQuery() End With or: MessageBox.Show(sSQL) With objCommand .Connection = oOleDbConnection .CommandText...
  14. earthandfire

    Closing connections issue...novice out of his depth

    Try objConn = New SqlConnection(connString) objCmd = New SqlCommand(sqlStr, objConn) objCmd.Connection.Open() Return objCmd.ExecuteReader Catch ex As SqlException Return Nothing Finally objConn.Close()...
  15. earthandfire

    Multiple tabs in tab control - single data point

    I don't fully understand your question. If you are saying that you want each Tab in a TabControl to show a separate product, then I don't think that that would be the most effective design. Generally, each Tab would show different aspects of one particular product with a separate control...
  16. earthandfire

    Webbrowser File Save As

    Do you have to do it yourself? WebBrowser1.ShowSaveAsDialog() will do it for you. If you have to do it yourself, then you may find the properties beginning with the word Document (there are 5 of them) helpful. At a guess DocumentStream. Personally, I've found ShowSaveAsDialog to be the...
  17. earthandfire

    Make lines in picture box

    If Drawing Then Dim p As Pen = New Pen(Color.Black) Dim g As Graphics = PictureBox1.CreateGraphics g.DrawLine(p, StartPos, e.Location) StartPos = e.Location End If can be simplified slightly to: If Drawing Then Dim g As Graphics =...
  18. earthandfire

    Make lines in picture box

    Maybe something like this? Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.Image = Nothing End Sub Private Drawing As Boolean = False Private StartPos As PointF = Nothing Private Sub...
  19. earthandfire

    Docking a Form in a Panel

    Glad to have helped, woogoo, but chrissie1 deserves the credit - he first posted this a few years ago. [vampire][bat]
  20. earthandfire

    Closing connections issue...novice out of his depth

    Qik3Coder A simple example: Public Class Form1 Private Function Divide(ByVal x As Integer, ByVal y As Integer) As Integer Try Return x \ y Catch ex As Exception MessageBox.Show("Catch") Return -1 Finally MessageBox.Show("Finally") End Try End Function Private Sub...

Part and Inventory Search

Back
Top