Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.25 seconds.

  1. Replies
    8
    Views
    169

    VS 2010 Re: Please Help Me !!!!!!!

    As ident told you, descriptive thread titles are more productive than desperate pleas for help
  2. Replies
    8
    Views
    169

    VS 2010 Re: Please Help Me !!!!!!!

    To the right of the designer, you find the Solution Explorer window. DoubleClick Form2.vb
  3. Replies
    6
    Views
    106

    Re: VS 2013 Combobox

    Did that help?
    Don't forget to mark your thread resolved if that was useful, or if you found a solution yourself can you share it?
  4. Replies
    6
    Views
    106

    Re: VS 2013 Combobox

    did you try calling resetbindings on the datasource?
  5. Replies
    6
    Views
    106

    Re: VS 2013 Combobox

    try putting TableAdapterManager.UpdateAll before Table1BindingSource.EndEdit
  6. Replies
    6
    Views
    106

    Re: VS 2013 Combobox

    Assuming your editing controls are bound (which you hinted at)...
    Call endedit on the datasource when you close the second form
  7. Replies
    1
    Views
    74

    Re: XML Childnodes - Reading All

    try this:



    Public Class Form1

    ''' <summary>
    ''' this is hardcoded xml.
    ''' to load an xml file use xdocument.load(filename)
    ''' or to parse a string, use...
  8. Replies
    18
    Views
    309

    Re: VB Listbox not populating correctly

    Dim el as xelement =_
    <oldAndCrotchety>
    I don't like linq, now get off my lawn!
    </oldAndCrotchety>

    Msgbox(el...<oldAndCrotchety>.First.Value):D:D:D:D:D
  9. Replies
    18
    Views
    309

    Re: VB Listbox not populating correctly

    Getting back on topic, LINQ can be used for many situations in programming. It's a very powerful and wide ranging part of the language.
    It's not something that can be taught in a few lines, but...
  10. Replies
    18
    Views
    309

    Re: VB Listbox not populating correctly

    If you want attitude, ask ident. I prefer programming:D
  11. Replies
    18
    Views
    309

    Re: VB Listbox not populating correctly

    this line, using LINQ:



    lstStock.Items.AddRange(IO.File.ReadAllLines("AutosInStock.txt"))


    could be:
  12. Replies
    18
    Views
    309

    Re: VB Listbox not populating correctly

    I have to agree there... Why LINQ? I've written the listbox populating in the most efficient way I know of. Changing it to use linq would be unnecessarily verbose...
  13. Replies
    18
    Views
    309

    Re: VB Listbox not populating correctly

    here's how I'd write it:



    Public Class frmAssignment7
    'form load and create files
    Private Sub Assignment_7_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    ...
  14. VS 2010 Re: Charts Month Names As Lables Incorrectly Ordered

    The labels are displayed in the order they are added: Try this:



    Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'example data
    ...
  15. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    try this:



    Public Class Form1

    '--------------------------------------------------------------------------

    ' API Declarations, Types, and Constants
    ...
  16. Replies
    7
    Views
    134

    Re: SelectIndexChanged

    why Protected Sub?
    try Private Sub...
  17. Replies
    28
    Views
    459

    Re: Object casting question

    unfortunately, that's not possible
  18. Replies
    28
    Views
    459

    Re: Object casting question

    you could use TryCast, as you know the object will either be B.C, or D
  19. Replies
    4
    Views
    135

    VS 2010 Re: Datagridview deduction of the difference

    try this:



    Dim index As Integer = 14
    Dim dgv1Values() As String = DGV1.Rows.Cast(Of DataGridViewRow).Select(Function(r) r.Cells(index).Value.ToString).ToArray
    Dim dgv2Values() As String =...
  20. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    This is how you'd handle left mouseclicks on your form, and change the cursor.position:



    Public Class Form1

    Private Sub Form1_MouseClick(ByVal sender As Object, ByVal e As...
  21. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    It is forms and controls where you can handle mouseclicks.
    What is Left?
  22. VS 2013 Re: HowTo Make Mouse Left Click [Addon To My Code]

    Public Class Form1

    Private Sub Left_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Left.Click
    Dim MyX As Integer = 556
    Dim MyY As Integer = 75

    ...
  23. Replies
    3
    Views
    101

    Re: INSERT INTO syntax Error

    also, your Date field is expecting a Date variable, instead of a string
  24. Replies
    3
    Views
    101

    Re: INSERT INTO syntax Error

    try:

    sqladd = "INSERT INTO Debt ([Date],[Description],Amount,Penalty) VALUES (@p1,@p2,@p3,@p4)"
  25. VS 2013 Re: HowTo Fix a Little "End Of Statement Expected." Error? [With Source Code Photo]

    post your actual code copied from your VS editor
  26. Replies
    6
    Views
    167

    VS 2010 Re: Text on screen topmost

    it is possible with GDI+ as I demonstrated in post #3
  27. Replies
    6
    Views
    167

    VS 2010 Re: Text on screen topmost

    No need to use WPF. You can use winforms:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.TopMost =...
  28. Replies
    5
    Views
    132

    VS 2010 Re: Determine Selected Line

    That could work. Have you tried it?
  29. Replies
    5
    Views
    132

    VS 2010 Re: Determine Selected Line

    Use the pictureboxe's _mousemove event and compare the mouse location with the x, y location of your line.
    If your line is diagonal, it becomes slightly more difficult, requiring a mathematical...
  30. Re: find an item text in a multi-coulum (checked) listview in vb 2010 express

    The ListView has a FullRowSelect property
  31. VS 2013 Re: HowTo Show The Real Selected File Name from OpenDialog1 in a TextBox1?

    In the case "D:\File.txt" the best you can extract is "File"
  32. VS 2013 Re: HowTo Show The Real Selected File Name from OpenDialog1 in a TextBox1?

    If OpenFileDialog1.ShowDialog = DialogResult.OK Then
    TextBox1.Text = IO.Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName)
    End If
  33. Re: find an item text in a multi-coulum (checked) listview in vb 2010 express

    you can include subitems in your search:


    ListView1.FindItemWithText("text", True, 0).Selected = True
  34. VS 2013 Re: HowTo Show The Real Selected File Name from OpenDialog1 in a TextBox1?

    try:


    TextBox1.Text = IO.Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName)
  35. VS 2013 Re: HowTo Show The Real Selected File Name from OpenDialog1 in a TextBox1?

    Where are you getting this mythical real name from?
  36. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    works good in vb6, but some of those API methods are unnecessary in .Net
  37. Re: How To Use SetCapture and WindowFromPoint to Select a Window

    SetCapture doesn't select a window.
    Try SetForegroundWindow
  38. Replies
    9
    Views
    235

    Re: Problems in MousePosition

    I'd recommend reading up on your datatypes.
    An Integer is not a String
  39. Replies
    9
    Views
    235

    Re: Problems in MousePosition

    Dim list As Integer = _
    WindowFromPoint(new point(25,746))
  40. Replies
    5
    Views
    142

    Re: Datagrid To Notepad

    rewrite your code this way:

    1. Counts the files in a list box
    2. Then Creates a folder for each file
    3. Copies the file into corresponding folder
    4. Create a CSV string consisting of only the...
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.