Search results for query: *

  1. S

    Draw text to image

    Sorry to waste your time on dumb questions. The solution I came up with was ridiculously obvious. bkgrndMenu1.BackgroundImage = New Bitmap(New Bitmap(pbMenu1.BackgroundImage)) Solved
  2. S

    Draw text to image

    Best I could come up with is to save the background image to a temp folder. Then reload it after saving the menu Images. Which means I have to monitor weather the background is the default image or it has been changed. Not a very eloquent solution but it works. Any suggestions would be much...
  3. S

    Draw text to image

    I'm making a front end to dvdauthor. I have a picturebox which holds the menu background. In order to draw a textbutton on the background image I store the image in a hidden picturebox. So the text doesn't get drawn to the visible background. Code: Dim ctl As Control For Each c...
  4. S

    If AndAlso ignored

    Thank you for the help.
  5. S

    If AndAlso ignored

    I am getting an error: Conversion from string "" to type 'Double' is not valid. If any of my textboxes are blank even though I have used an if AndAlso statement. Private Sub tbWidth_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles tbWidth.TextChanged Dim wMath...
  6. S

    Question TextBox Validation

    You can use IndexOf to to check if the decimal is the third digit. If TextBox1.Text.Length - TextBox1.Text.IndexOf(".") = 3 Then MessageBox.Show("True") Else MessageBox.Show("False") End If
  7. S

    Simple question from beginner regarding picturebox

    I think one or multiple labels depending on your forms layout would be the common way of displaying this kind of output.
  8. S

    Simple question from beginner regarding picturebox

    I suppose one way is to use a label Label1.Text = "Customer Name John Doe" & vbCrLf & "Supplies $50.00" & vbCrLf & "Tax $4 .00" & vbCrLf & "Total $54.00"
  9. S

    Question How to get only the visible image on Picturebox

    Her is a very basic example code. 'Get the picturebox image. Dim inImage As System.Drawing.Image = PictureBox1.Image 'Set the new images size. Dim outImage As New Bitmap(inImage, PictureBox1.Width, PictureBox1.Height) 'Format the new image i.e. bmp...
  10. S

    With statement declaration

    End With = null. Other than less typing it requires fewer calls and cleans up with null.
  11. S

    TAPI issues with event notifications

    I think you're looking for the CALL_MEDIA_EVENT
  12. S

    drag drop image

    There is a pretty simple example here Drag Drop Filepath
  13. S

    pass run time arguments to exe

    Use the Process Class.
  14. S

    Retrieve Bank account info via IE (silently)

    There is a sample using System.Net.Sockets Library I found here.
  15. S

    Combobox ?

    VB.NET Forum Search
  16. S

    Question Control Panel as Admin

    When I use the following code with control or explorer nothing happens but it works with notepad and the like. Private pw As New System.Security.SecureString Dim cp As New Process With cp.StartInfo .FileName = "control" .UseShellExecute =...
  17. S

    Answered One line Ifs

    As a question to a question, correct me if I am wrong. Would it reduce the amount of written code?
  18. S

    Question Directory/Folder/File Searching recursive?

    I am not sure this will help. I think I have found a shorter example here. Anyway add the large enough files/directories to an array or stack. There is a file size which you would need t call before the loop here which can be translated here.Good Luck
  19. S

    Question Search for a folder...

    How to recursively search directories by using Visual Basic 2005 or Visual Basic .NET
  20. S

    Question finding string within HTML tags

    Hopefully someone will show you a better way but this should work Dim Reader As System.IO.StreamReader = New IO.StreamReader("path\file.html") Dim stringReader As String = Reader.ReadLine() While Reader.ReadLine IsNot Nothing stringReader =...
Back
Top