Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. VS 2010 Re: Using GetBetween in multiple instances

    This one from the code bank might be worth a look as well, using IndexOf, etc...
    String Between Function / Parser
  2. VS 2010 Re: Using GetBetween in multiple instances

    Your function has no clue about the index, another idea....



    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    ...
  3. Re: Retrieve a value from a text box of built-in component?

    We can't guess what you're doing wrong, above code is 3 files, if it helps..attached VB10 project,
    Has minor changes,.. I was trying to figure out if toolbar is showing or not,, oh well...
    Good...
  4. Re: Retrieve a value from a text box of built-in component?

    You can use FindWindow & FindWindowEx API to drill down the child window tree much like how you see it in SPY++, understanding how FindWindowEx works is the key, but I notice the PDF ActiveX control...
  5. Replies
    5
    Views
    217

    VS 2013 Re: Stop combobox appending when dropped?

    Nice hack! :thumb:
  6. Re: I can not make a bitmap transparent like a filled rectangle?

    How about the SetImgOpacity function over on msdn forum by Cor Ligthert ?
  7. Replies
    8
    Views
    202

    VS 2012 Re: RichTextBox Visual Bug?

    and if that doesn't help maybe try toggling the RTB scrollbar property,


    rtb.ScrollBars = RichTextBoxScrollBars.None
    rtb.Clear()
    ' < Do other RTB stuff here >
    rtb.ScrollBars =...
  8. Replies
    8
    Views
    202

    VS 2012 Re: RichTextBox Visual Bug?

    I just did a quick test with a forced Vetical scrollbar, if I clear the RTB first then set the text the scrollbar repainted correctly.

    RichTextBox1.Clear()
    RichTextBox1.Text = testText
  9. VS 2010 Re: Change mouse cursor when mouse over LV header in Details mode?

    Sorry, not sure how ItemMouseHover would help.

    The problem is when you move the mouse over the LV column header in details mode the cursor changes to the default cursor no matter what cursor you...
  10. VS 2010 Change mouse cursor when mouse over LV header in Details mode?

    I set the forms cursor to say Wait, but when mouse is over a LV header the cursor changes to the default cursor.
    Are there any method/setting for LV column header cursor?, or do I have to write a...
  11. Re: Why the WM_CHAR doesn't handle the TAB and ENTER key ?

    Could it be the input control is eating the keys?. For example, by default pressing the Tab key in a textbox moves focus to another control and is not detected by WM_Char, but when I set IsInputKey...
  12. Replies
    2
    Views
    174

    VS 2013 Re: save listview to bmp or png

    If your on Vista or later OS you normally don't have rights to write files to the root of "C:".
  13. VS 2012 Re: Putting comma separated lines of text into array structures

    Well RealPart() is an Integer, ReadLine is returning a String, so you just need to convert the string parts to Integer, something like...



    Structure ComplexNum
    Dim real As Integer...
  14. Replies
    7
    Views
    259

    Re: Panel does scrolling by itself

    Maybe disable the scrolling ? Found this awhile back, somewhere....
  15. VS 2013 Re: Change Power Balanced Plan Using VB.net 2013

    You shouldn't be messing with users Windows setting, there is most likely API to temporarily disable those features while your app is working, though I'm not sure what API you'll need. In Win7 for a...
  16. Re: How can I Run "Copy" Command/Function Outside of Program/Form?

    Just that I've seen problems with the clipboard when attempting to read and write to it too often or too fast, so I'm wary to use it like that, plus I don't like the idea of apps overwriting whatever...
  17. Re: How can I Run "Copy" Command/Function Outside of Program/Form?

    I wouldn't involve the clipboard or use sendkeys if I didn't have to. This is my idea, Register the hotkey, when hotkey is detected get handle of the foreground app, with that we get the handle of...
  18. Re: Set AutoScrollBars SmallChange?

    Panel1.VerticalScroll.SmallChange = n ?
  19. Replies
    16
    Views
    345

    VS 2008 Re: Find specific characters

    untested...


    result = lines.Where(Function(n) n.StartsWith("ERRORS:"))(0)
  20. Replies
    16
    Views
    345

    VS 2008 Re: Find specific characters

    For multiline text try splitting text on carraige return, loop thru array, something like,..


    Dim msg As String = "PRINTER STATUS" & Environment.NewLine _
    & "ERRORS: 1 00000000...
  21. Re: Is it possible to reverse the order of a listbox items?

    how about?,,..



    With ListBox1
    Dim items(.Items.Count - 1) As Object ' create array to hold listbox items.
    .Items.CopyTo(items, 0) ' copy listbox items to array.
    .Items.Clear() ...
  22. Re: Format duplicate text lines in Richtextbox control

    Using what ident showed, then maybe something like,...



    Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
    '...
  23. Replies
    9
    Views
    281

    VS 2013 Re: Using arrays to display any value

    If you mean to ignore case, then try,
    Dim nameIndex = Array.FindIndex(lines, Function(n) n.ToString.ToLower = txtUser.Text.ToLower & ",")?
  24. Replies
    9
    Views
    281

    VS 2013 Re: Using arrays to display any value

    Sticking to simple string array, load file into string array separated by lines. Use Array.FindIndex to find user and loop thru array until next user in array is detected?...



    Private lines As...
  25. VS 2010 Re: Help me take icon from shortcut or file and enlarge it to picturebox

    try,


    With PictureBox1
    .SizeMode = PictureBoxSizeMode.StretchImage
    .Size = New Size(200, 200)
    .Image = Drawing.Icon.ExtractAssociatedIcon("somefile.exe").ToBitmap
    End With
  26. Re: Why a ListView in .NET is not the same as in Windows?

    Try using SetWindowTheme API,
    http://www.vbforums.com/showthread.php?645589
    http://www.vbforums.com/showthread.php?647404
  27. Replies
    6
    Views
    251

    VS 2013 Re: [RESOLVED] Class Question (Strings)

    Ya, for what you doing TnTinMN's solution looks easier to use then Pradeep1210's code I linked to!
  28. Replies
    6
    Views
    251

    VS 2013 Re: Class Question (Strings)

    Maybe use an Enum?, but to use strings you'd need to do some extra work, I found this thread, Enum to represent String constants

    Quick test, seems to work OK , and easier then trying to remember...
  29. Replies
    4
    Views
    619

    Re: String Between Function / Parser

    As far as ".Net" syntax goes your code looks more like VB6.

    The first thing I'd do is set Option Strict to On if Off in vb options/project settings

    Some unnecessary things,...
    ...
  30. Replies
    6
    Views
    265

    Re: Text Catch

    One basic way, uses Split,...


    Public Class Form1

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    TextBox1.Text = " How are you -I am...
  31. VS 2008 Re: Listview columnheader No wndproc on mouse move :(

    What if you set up a NativeWindow to watch the LV header messages?

    Rough idea, tested from a LV on a form,
    Dim hc As New HeaderControl(Me.ListViewOwnerDraw1)



    Imports...
  32. Re: Need help with a sendkey function.

    Just a wild guess going by some info on MSDN here,...


    ' Add reference "Microsoft Internet Controls" (from COM tab).
    Imports SHDocVw
    Public Class Form1

    Private Sub Button1_Click(sender...
  33. Re: Need help with a sendkey function.

    Try it like this,..



    Dim objShell = CreateObject("WScript.Shell")
    Dim Success = objShell.AppActivate("Message from webpage")

    Do Until Success = True
    Threading.Thread.Sleep(1000)
    ...
  34. Replies
    1
    Views
    172

    Re: Selected item Index in Ascending order

    It seems you have resolved this on MSDN here, If true then please mark this thread as Resolved, it may help others in the future and also lets the rest of us know you no longer need help on this.
    ...
  35. Replies
    3
    Views
    285

    VS 2010 Re: Navigating Panelled Forms

    I suppose to be OOP correct you'd want to create a class so you can set the main parent form, etc,etc, but just as a concept where form1 is the startup form this should work, though I just used one...
  36. Re: Remove empty RichTextBox lines using LINQ

    something like?...


    RTB.Lines = (From line In RTB.Lines Select line Where line <> "").ToArray
  37. VS 2008 Re: Change Mouse Hoover Background and Foreground

    If you just want to change the default colors the author used it should be fairly easy, look at Sub OnRenderMenuItemBackground, he used variables defined in clsColors (clrSelectedBG_Header_Blue,...
  38. Replies
    4
    Views
    370

    VS 2012 Re: Post form to default browser

    If you mean join the strings?..

    System.Diagnostics.Process.Start("https://" & textbox1.Text & "." & combobox1.Text)

    Concatenation Operators in Visual Basic...
  39. Replies
    11
    Views
    14,451

    Re: [VB10] VBForums Reputations Saver 3

    I typically use free images I find online, and icons included with VS 2010.
  40. Replies
    4
    Views
    255

    Re: Get Thumb Size of Scrollbar

    Oh, I'm not aware of any straight forward way to get the size of the actual thumb.
    I thought those two sys-info properties were actually referring to the repeatable buttons on the ends of the bar. :o
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.