Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Re: How can CompareOptions.IgnoreSymbols in richtextbox

    Gruff's solution is ok, but LINQ can do a more concise job:



    Dim mystring As String = "+- ABC abc's 12 _aa3"
    MsgBox(String.Concat(mystring.Where(Function(c) Char.IsLetterOrDigit(c))))
  2. Replies
    3
    Views
    105

    Re: Load POWERPOINT viewer directly into Form?

    Post the code you're using. There are alternative methods that should work how you need it to.
  3. Re: Logic inspiration: Selected checkbox pairing with another class.

    Another suggestion is to create an extended checkbox control with the 2 additional properties you need
  4. Replies
    3
    Views
    105

    Re: Load POWERPOINT viewer directly into Form?

    search for the SetParent API method
  5. Re: Logic inspiration: Selected checkbox pairing with another class.

    I didn't read your code, so I'm not sure which way would be best in your circumstances, but the question was, how to associate some classes with a checkbox without using the tag property.
    I've...
  6. Re: Logic inspiration: Selected checkbox pairing with another class.

    In that way each checkbox would be associated, via the dictionary, to the 2 class members
  7. Re: Logic inspiration: Selected checkbox pairing with another class.

    Your dictionary key would be the checkbox. The value could be a class with 2 members
  8. Re: Logic inspiration: Selected checkbox pairing with another class.

    does this look like a 'we do your work for you' forum?????:D

    how about a dictionary?
  9. Replies
    7
    Views
    147

    Re: Cannot modify Registry Unathorized!!!

    you need administrator priviliges to write to anywhere in the registry except HKCU

    Project-->Properties-->View UAC Settings

    and follow the instructions in app.manifest
  10. Thread: Rdlc Report

    by .paul.
    Replies
    4
    Views
    185

    Re: Rdlc Report

    Have a look at:

    http://code.msdn.microsoft.com/RDLC-example-dcdfd633
  11. Replies
    4
    Views
    146

    Re: Create a program that calculates MPG

    here's how I'd do it in a console app. for simplicity:



    Module Module1

    Dim pricePerLitre As Decimal = 1D
    Dim gallonsPerLitre As Decimal = 0.22D

    Sub Main()
  12. VS 2010 Re: [RESOLVED] I need help with this assignment!

    try this:



    Console.WriteLine("{0,-15}{1,-15}{2,-15}", "column1", "column2", "column3") 'this writes 3 * 15 char columns aligned left
  13. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    What edgemeal told you was to create a form level array of label, which you load once at form_load, which is then available throughout the form code
  14. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    are the lblAvgStudent labels on the form, or in a container control?
  15. Replies
    19
    Views
    386

    Re: Code doesn't do anything?

    move part of your code to a secondary thread, but not code that accesses controls
  16. Replies
    19
    Views
    386

    Re: Code doesn't do anything?

    It is a threading problem. You're overloading the UI thread. As Shaggy Hiker told you, the code you tried to move to secondary threads was unsuitable for moving to secondary threads, as it interacted...
  17. VS 2010 Re: I need help with this assignment!

    you didn't mention what it doesn't do, that it should...
    I found 1 error:



    If sales >= 5000 Then 'if sales are 5000 or above
    salary = sales * 0.07 + 250
    ElseIf sales < 5000 Then 'if...
  18. Replies
    3
    Views
    152

    VS 2010 Re: Simple Form Resize Question

    They both fire for the same reason. From what I've discovered googling is that SizeChanged was added in .Net (as all of the Properties have a Changed event). The purpose being for databinding. The...
  19. Replies
    3
    Views
    152

    VS 2010 Re: Simple Form Resize Question

    Control.Resize Event

    Control.SizeChanged Event
  20. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    for x as integer = 1 to 6
    ' Then display student avg's is the labels
    me.controls("lblAvgStudent" & x.tostring).Text = CStr(Student(x-1).dblAvg)
    next
  21. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    When you post code, use formatting:


    'your code here

    And it'll format like this:


    'your code here
  22. Re: I need help reading a small xml file into a collection

    Try this. I used xDocument and LINQ instead of an xmlreader:



    Public Class Form1

    ''' <summary>
    ''' this is hardcoded xml
    ''' to use a file, declare xml =...
  23. VS 2012 Re: Student Test Scores , Need help with calculating avg with a structure with arrays

    post the exact code you're using, including variable declarations
  24. Re: VB program that reads two numbers and adds the numbers in between

    Enumerable.Range(15,5) will only list 15,16,17,18,19
  25. Re: VB program that reads two numbers and adds the numbers in between

    supposing input of 1 and 5:

    this part:


    String.Join("+", Enumerable.Range(startAt + 1, endAt - startAt - 1).Select(Function(x) x.ToString).ToArray)

    creates the string: "2+3+4"

    this part:
  26. Re: VB program that reads two numbers and adds the numbers in between

    you mean like this:

    119095



    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    'sum
  27. VS 2013 Re: Freezing Mouse & Cursor: constraint in X and Y direction

    have a look at the Cursor.Clip Property
  28. Replies
    4
    Views
    130

    Re: List View Sub Item Problem

    I gave you the solution. If there is no data for the subitem when you load the listview, add an empty subitem (listviewitem.subitems.add("")). That really is all there is to it...
  29. Replies
    4
    Views
    130

    Re: List View Sub Item Problem

    when you fill the listview, always add a subitem for every column, whether it is empty or not
  30. Re: AutoGenerate Total Column in Data Grid?

    try this:



    Public Class Form1

    Private WithEvents dt As New DataTable

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  31. Replies
    1
    Views
    104

    VS 2012 Re: Help with LINQ query

    here's my solution:



    Public Class Factory
    Public Property Name As String
    Public Property Clients As New List(Of Client)
    End Class
  32. Replies
    10
    Views
    249

    Re: [RESOLVED] VS 2013 Combobox

    No need to upload, unless you want to post a vbforums codebank example, or an MSDN developer example
  33. Replies
    10
    Views
    249

    Re: VS 2013 Combobox

    This is the closest example I have:

    http://code.msdn.microsoft.com/DataBinding-91dfbcf4
  34. Replies
    23
    Views
    473

    Re: VB Listbox not populating correctly

    1/ we know it exists, because the previous 11 lines ensure that it exists.
    2/ it could exist in my code
    3/ err... it might not be an empty file. if there is an empty file, it's a failsafe for the...
  35. Re: How to automatically rebind/refresh datagridview when datasource gets updated

    I misread the question.
    Try using a FileSystemWatcher to watch the database...
  36. Re: How to automatically rebind/refresh datagridview when datasource gets updated

    try this:



    Public Class Form1

    Private WithEvents bs As New BindingSource

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
  37. Replies
    23
    Views
    473

    Re: VB Listbox not populating correctly

    the code I gave you works exactly how you wanted it to...
  38. Re: VB 2012 newbie here and having trouble with first project

    try this:



    Public Class Form1

    Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
    Dim intPennyInput As Integer
    ...
  39. Re: Problem sorting Listview by 1 column & displaying top item properly - VB 2010 Exp

    you need a custom sorter:



    Public Class sorter
    Implements IComparer
    Public Function Compare(ByVal x As Object, ByVal y As Object) As Integer Implements IComparer.Compare
    Dim...
  40. Replies
    11
    Views
    316

    VS 2010 Re: Equivalent code of CreateObject in VB.net

    Here's how to write that in vb.net with late binding. You need Option Strict off for late binding:



    Dim objXLS As Object
    Dim objWorkBook As Object
    objXLS = CreateObject("Excel.Application")...
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.