Search Results - VBForums

Search:

Type: Posts; User: Edgemeal

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    85

    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.
    ...
  2. Replies
    2
    Views
    129

    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...
  3. Replies
    6
    Views
    173

    Re: How to stop auto update the code

    Sounds like you're asking about Refactoring.
    When set to true, a rename refactoring operation is performed when you rename a component from the Properties window or Document Outline window.

    Found...
  4. Re: Remove empty RichTextBox lines using LINQ

    Reading MSDN (lost url) mentioned not always needing Select, and works in this case, not sure about performance but it did create less IL code,...

    ' No Select


    Public Class Form1
    Private...
  5. Re: Remove empty RichTextBox lines using LINQ

    something like?...


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

    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...
  8. Replies
    11
    Views
    13,570

    Re: [VB10] VBForums Reputations Saver 3

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

    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
  10. Replies
    4
    Views
    156

    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...
  11. Replies
    7
    Views
    213

    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...
  12. VS 2010 Re: Convert/Compare text to date time

    Thanks! :thumb:
  13. 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...
  14. Replies
    11
    Views
    13,570

    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...
  15. Replies
    2
    Views
    193

    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...
  16. 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...
  17. 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 =...
  18. 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
    ...
  19. 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...
  20. Replies
    4
    Views
    145

    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...
  21. VS 2010 Re: How can I change many textboxes's property with a loop?

    See FAQ...
    How do I mark a thread Resolved?
    http://www.vbforums.com/faq.php?faq=vb_faq
  22. Thread: Linq Query

    by Edgemeal
    Replies
    3
    Views
    129

    Re: Linq Query

    First way will work fine, I do it all the time,

    see MSDN, Using Statement (Visual Basic)
    A Using block behaves like a Try...Finally construction in which the Try block uses the resources and the...
  23. Thread: Linq Query

    by Edgemeal
    Replies
    3
    Views
    129

    Re: Linq Query

    try something like,


    ListBox1.Items.AddRange(msgs.Where(Function(item) item <> "").ToArray)

    ListBox1.Items.AddRange(msgs.Where(Function(item) item.Trim <> "").ToArray)
    ...
  24. Re: [VB2010] Get data from external ComboBox

    For clearing all items I just noticed there is the CB_RESETCONTENT message,
    Const CB_RESETCONTENT = &H14B
    http://msdn.microsoft.com/en-us/library/windows/desktop/bb775878%28v=vs.85%29.aspx
    Removes...
  25. Re: [VB2010] Get data from external ComboBox

    See if this helps,



    Imports System.Runtime.InteropServices

    Public Class Form1
    Private Const CB_GETCOUNT As Int32 = &H146
    Private Const CB_GETCURSEL As Int32 = &H147
    Private...
  26. Replies
    10
    Views
    275

    VS 2010 Re: Two Questions about Lines in an Array

    What is != ? (Typo ?, New for 2015 ? )
    Shown as error in VS2010.
    Thanks.
  27. Replies
    3
    Views
    186

    Re: Using a Textbox to search a Listbox

    #1 , maybe loop thru the items and find the one that contains the same word.
    #2, use EM_SETCUEBANNER.



    Imports System.Runtime.InteropServices

    Public Class Form1

    Private Const...
  28. VS 2010 Re: How to check if the current day is the first weekday of month?

    Is this your entry for...,
    Hardest one liner code to read on VBF in 2014?

    :)

    Happy New Year! :wave:
  29. VS 2012 Re: Result from Combobox as different Variable

    Shouldn't that be .SelectedIndex + 1? (top item index = 0.)
  30. Replies
    4
    Views
    235

    VS 02/03 Re: textfile as database

    There are probably 100 different ways to do it, for just two string variables I probably wouldn't bother getting too fancy and just use some basic stuff , something like this,,



    Public Class...
  31. VS 2012 Re: Displaying two Group Boxes in the same place when selected

    At design time you may not want to overlap them completely so its easier to edit them, at runtime you could simply toggle the groupbox Visible property, for example,,,



    Private Sub...
  32. VS 2012 Re: Selected item from Combobox should get an Integer value

    SelectedIndex is an Integer, try using SelectedItem.ToString to compare selected item to a string, ...



    Public Class Form1

    Private Position As Integer

    Private Sub...
  33. Re: I have a problem with TableLayoutPanel columns.

    Did you change the controls Margin property?, by default they are set to 3, so if you dock a control in a panel it will have 3 pixels of space on each side of it, set the Margin All to zero and the...
  34. Re: VB 2010 Reading lines > Textbox > sending partial to variable.

    Are you accounting for all the prefix or trailing space chars, and/or a carriage return chars, you might want to try trimming the strings.
    Probably best if you could post some of the actual text...
  35. Replies
    39
    Views
    659

    VS 2013 Re: Generating characters moving mouse

    I haven't read this thread but if I had to guess ... you want to add the labels to the tabpage? then try changing the line,

    'Add the label to the form
    Me.Controls.Add(lbl)

    to

    'Add the...
  36. Replies
    8
    Views
    159

    Re: [RESOLVED] mouse hover in zooming picturebox in vb.net

    Because you already had a (form load) Sub with Handles MyBase.Load, you should only have one.
  37. Replies
    56
    Views
    1,495

    Re: Justifying text

    Why not just copy the advanced richtextbox class code to its own class file and build the project?... then that control will be in the toolbox and can be used like any other control in the toolbox...
  38. Replies
    56
    Views
    1,495

    Re: Justifying text

    If you're creating controls at runtime you need to set their Name property or will be nothing (or blank string?).
    Me.Controls() expects a control index or the string Name of the control...


    ...
  39. Replies
    7
    Views
    290

    Re: Uploading files by their extension

    Your If-Then logic seems to need work, I'd probably do it something more like,...



    Dim filename As String = "some.file.name.jpeg"
    Dim validFileTypes As String() = {".bmp", ".gif", ".png",...
  40. VS 2013 Re: How to shorten the code which is too big and doesn't look good ...

    I would just create For-Next loops when you have many sequential indexed controls that use the same setting, for everything else its not really worth the trouble and may just make the code even...
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.