Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    188

    Re: IndexOutofRangeException

    There is the String.ToCharArray Method ,
    This method copies each character (that is, each Char object) in a string to a character array. ...
  2. Replies
    7
    Views
    189

    Re: Panel does scrolling by itself

    Maybe disable the scrolling ? Found this awhile back, somewhere....
  3. 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...
  4. Replies
    2
    Views
    119

    Re: Active window?

    SetActiveWindow most likely won't work, msdn says, The window must be attached to the calling thread's message queue.

    Try using SetForegroundWindow. Below is example from similar question...

    ...
  5. 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...
  6. 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...
  7. Re: Set AutoScrollBars SmallChange?

    Panel1.VerticalScroll.SmallChange = n ?
  8. Replies
    16
    Views
    301

    VS 2008 Re: Find specific characters

    untested...


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

    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...
  10. 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() ...
  11. 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
    '...
  12. Replies
    9
    Views
    241

    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 & ",")?
  13. Replies
    9
    Views
    241

    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...
  14. 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
  15. 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
  16. Replies
    6
    Views
    230

    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!
  17. Replies
    6
    Views
    230

    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...
  18. Replies
    4
    Views
    491

    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,...
    ...
  19. Replies
    6
    Views
    236

    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...
  20. 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...
  21. 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...
  22. 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)
    ...
  23. Replies
    1
    Views
    152

    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.
    ...
  24. Replies
    3
    Views
    259

    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...
  25. Re: Remove empty RichTextBox lines using LINQ

    something like?...


    RTB.Lines = (From line In RTB.Lines Select line Where line <> "").ToArray
  26. 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,...
  27. Replies
    4
    Views
    291

    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...
  28. Replies
    11
    Views
    14,291

    Re: [VB10] VBForums Reputations Saver 3

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

    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
  30. Replies
    4
    Views
    220

    Re: Get Thumb Size of Scrollbar

    Well VerticalScrollBarThumbHeight and HorizontalScrollBarThumbWidth seem to be reporting exactly what Windows scrollbars are currently sized to, quick test... I switch Win7 to basic theme, change...
  31. Replies
    7
    Views
    269

    VS 2010 Re: Array of PictureBoxes (Error)

    If its a grid then you shouldn't even need to store anything in the Tag property, and can just do the math to get its location in the grid, something like,..



    Public Class Form1

    Private...
  32. VS 2010 Re: Convert/Compare text to date time

    Thanks! :thumb:
  33. VS 2010 [RESOLVED] Convert/Compare text to date time

    Is there an easy way to parse a date time from a string like, "12 Jan 11:15 am" ? I'm having a hard time figuring out how I could just convert that into a date so I can compare it to Now, I need to...
  34. Replies
    11
    Views
    14,291

    Re: [VB10] VBForums Reputations Saver 3

    I wasn't going to upload updates for this app anymore but I just noticed the forum version updated (from 4.2.0 to 4.2.2) and found a bug in the old code, so posted up a new version for anyone still...
  35. Replies
    2
    Views
    246

    Re: VB 2010 Express Changing Code at Runtime

    You don't! What you do is have fields for each type of data you want for each person,.. Name, Account, Login, DOB, etc, etc,. Based on the data in those fields for a person you decide what should be...
  36. VS 2010 Re: Setting many values in a For...Next loop and Graphics help

    That doesn't do anything to the elements in the list. To change and access the elements try looping thru them by their index...



    For i = 0 To PtList.Count - 1
    PtList(i) = New...
  37. Re: Set textbox height according to amount of text

    Try adding the TextBoxControl flag?, other then that not sure, good luck!



    Private Sub SetTextHeight(textBox As TextBox)
    With textBox
    Dim newHeight =...
  38. Re: Set textbox height according to amount of text

    This any better?...


    Public Class Form1

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    With TextBox1
    .Multiline = True
    ...
  39. Re: HELP with strings and fornext loop please!!

    Another way to go would be to find the space in the name, like this....


    For Cnt = 0 To (Name.Length) - 1
    ' find space in name
    If Name.Chars(Cnt) = " " Then
    ' get char after...
  40. Replies
    4
    Views
    179

    Re: ProgressBar forecolor

    If you want to keep styles enabled, try this,


    Imports System.Runtime.InteropServices

    Public Class Form1

    Private Const WM_USER As Int32 = &H400
    Private Const PBM_SETSTATE As Int32...
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.