Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.44 seconds.

  1. VS 2010 Re: [RESOLVED] Listview subitem forecolor based on Text value

    [/B]]'your code
  2. VS 2010 Re: Listview subitem forecolor based on Text value

    try this:



    If CDec(lvi.SubItems(j).Text) >= 0 AndAlso CDec(lvi.SubItems(j).Text) < 10 Then
    lvi.SubItems(j).ForeColor = Color.Red 'this works
    End If
  3. Replies
    5
    Views
    389

    VS 2010 Re: [HELP] How do I find text in Richtextbox?

    To answer your question from post#3, I've been programming for years, and I wrote that example shortly after reading your original question...
  4. Replies
    3
    Views
    190

    VS 2008 Re: Loop through listbox items

    For x as integer =0 to listbox1.items.count -1
    Dim s as string = listbox1.getitemtext(listbox1.items(x))
    'Insert to htmlelement
    Next
  5. Replies
    3
    Views
    121

    VS 2008 Re: regex to remove spaces

    To use reserved characters, you escape them with \. Try this:



    Regex.Replace(" abc(x) ", "^([a-zA-Z]\(.+\)[a-zA-Z])", "")
  6. Replies
    7
    Views
    240

    Re: How can I draw directly to my desktop

    try this:



    Public Class Form1

    Private WithEvents tmr As New Timer With {.Interval = 50}
    Dim f As New Font("Arial", 72)
    Dim t As String = "This is how"
    Dim s As Size =...
  7. Replies
    5
    Views
    389

    VS 2010 Re: [HELP] How do I find text in Richtextbox?

    define didn't work...
    When I tested it, it cycles through the found items in the text until no item is found. It then starts again from the beginning.
  8. Replies
    5
    Views
    389

    VS 2010 Re: [HELP] How do I find text in Richtextbox?

    try this:



    Public Class Form1

    Dim startIndex As Integer = 0

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    ...
  9. Re: Get Display Text of a component with Mouse.Hover

    Forgive me if i misunderstood your earlier comments.
  10. Re: [RESOLVED] Get Display Text of a component with Mouse.Hover

    We're all still learning, but some of us are more advanced in their learning than others.
    The code was a simple loop, with a recursive call to deal with container controls.
    At the form level, your...
  11. Replies
    4
    Views
    212

    Re: How to Display en or em dash

    You can easily find the integer character code:


    MsgBox(Asc("a char").ToString)
  12. Replies
    4
    Views
    212

    Re: How to Display en or em dash

    try this:



    Label1.Text = Chr(150)
    TextBox1.Text = Chr(150)
  13. Re: Get Display Text of a component with Mouse.Hover

    You need to put this code in the form. It won't work if you encapsulate it in a custom control...
  14. Re: Get Display Text of a component with Mouse.Hover

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Text = ""
    addHandlers(Me)
    End Sub

    ...
  15. VS 2010 Re: Partition and Rank datatable by a certain column

    So you want to sort by Type alphabetically ascending, then you want to rank each entry by LoanAmt. In your attached image example, would that be 1 to 10 ranking or 1 to 5 (for A Types) and 1 to 5...
  16. Re: Get Display Text of a component with Mouse.Hover

    Try this:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Text = ""
    For Each c As Control...
  17. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    WPF is significantly different to winforms. There may be a completely different way to achieve the same thing in WPF...
  18. Re: [RESOLVED] Calculate surface area of pyramid

    Can't rate you this time. Gotta spread some ratings...:D
  19. Re: Calculate surface area of pyramid

    Thanks. That worked well...
  20. [RESOLVED] Calculate surface area of pyramid

    How can I calculate the surface area of a regular 4 sided pyramid, using base length and overall height (not slant height)?
  21. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    Image.FromStream(New IO.MemoryStream(DirectCast(cmd.ExecuteScalar, Byte()))).save("filename.png", drawing.imaging.imageformat.png)
  22. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    I think you need to read the article I suggested. It has a note about dynamic images.
  23. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    have a look at this:

    http://scn.sap.com/community/crystal-reports/blog/2014/07/04/how-to-add-a-transparent-image-to-a-crystal-report
  24. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    I think you need to start a new thread for the CR problem. I can't help any more there, but I demonstrated how to save and retrieve a semi transparent image...
  25. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    I was only able to test it with Access2007, but this worked:



    Imports System.Data.OleDb

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  26. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    try this:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    myMethod(78.5, PictureBox1)
    End Sub
  27. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    CreateGraphics doesn't create persistent graphics.
    You're calling the method in Form_Load. The form will be refreshed and your graphics erased by the time the form becomes visible. If you want to...
  28. Replies
    10
    Views
    239

    Re: Border Styles...

    Did that make any difference?
  29. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    Right. That's a better start. Use the multi-handler, do your calculations then call the myMethod sub. You might need different parameters to cover all eventualities:


    Private Sub myMethod(gr As...
  30. Replies
    10
    Views
    239

    Re: Border Styles...

    At design time, try right clicking the textbox then click bringtofront
  31. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    use the multi-handler I suggested, then from there call your own method passing the picturebox and any variables as parameters
  32. Replies
    10
    Views
    239

    Re: Border Styles...

    A TextBox, with the same font as a Label, is always slightly taller, unless you increase the Label height to match the TextBox
  33. Replies
    10
    Views
    239

    Re: Border Styles...

    is the textbox in a tablelayoutpanel cell? it looks like you're clipping the top and bottom of the control somehow...
  34. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    try this:



    Private Sub PictureBoxes_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) _
    Handles PictureBox8.Paint, PictureBox7.Paint,...
  35. Replies
    12
    Views
    287

    Re: Private Sub Picture Box Pain

    Is the code identical in the paint events?
  36. Re: add text to image in picture box and printing that text

    try this:



    Public Class Form1

    Dim textPoint As Point = Nothing
    Dim img As New Bitmap("your image file")
    Dim gr As Graphics
  37. Re: [CodeDom] Putting code in a region directive?

    I'm fairly sure the easiest way is to just include them in the code you pass to the compiler...
  38. Replies
    6
    Views
    173

    VS 2010 Re: I need a litle bit help on Send Text

    try this:



    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim p As New Process()
    ...
  39. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    where should be transparent? i'm not seeing any dark brown...
  40. Replies
    28
    Views
    407

    Re: Picturebox transparency problem

    Post a screenshot if you can...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width