Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.41 seconds.

  1. Replies
    27
    Views
    327

    VS 2013 Re: Generating characters moving mouse

    Or Dock the FlowLayoutPanel to Top, then you can put your Textbox anywhere below it...
  2. Replies
    27
    Views
    327

    VS 2013 Re: Generating characters moving mouse

    Label1.Text &= c

    change that to:


    [name of your textbox].Text &= c
  3. Replies
    27
    Views
    327

    VS 2013 Re: Generating characters moving mouse

    as my attachment in post #7 is not downloading, here's the code I used:



    Public Class Form1

    Dim r As New Random
    Dim lastPoint As Point = Nothing

    Private Sub Form1_Load(ByVal...
  4. Replies
    27
    Views
    327

    VS 2013 Re: Generating characters moving mouse

    here's my solution:

    121865
  5. Replies
    6
    Views
    184

    VS 2010 Re: Need some Help

    It's Convert.ToInt32
  6. Replies
    27
    Views
    327

    VS 2013 Re: Generating characters moving mouse

    I don't undetstand the question.
    Do you want to change the location of the control, or scroll the text?
  7. Replies
    3
    Views
    100

    Re: Listbox data into datatable

    try this:



    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim dt As New DataTable
    ...
  8. Replies
    6
    Views
    118

    VS 2008 Re: Opacity Of A Panel

    It is possible to set the opacity of a panel, as discussed here:

    http://www.vbforums.com/showthread.php?500501-Are-you-ever-going-to-make-objects-have-a-transparency-option

    There's an example...
  9. Replies
    8
    Views
    180

    Re: VB Control Array Solution

    To clarify, the pictureboxes are pre existing, i.e. added at design time, where you can set images and other properties.
    The array is just there as a convenient way to refer to those pictureboxes...
  10. Replies
    8
    Views
    180

    Re: VB Control Array Solution

    you should note that dblDepthGraphic should be an integer
  11. Replies
    8
    Views
    180

    Re: VB Control Array Solution

    to put images in the pbs:


    for x as integer = 0 to pictureboxes.GetUpperBound(0)
    pictureboxes(x).Image = new bitmap("filename")
    next

    to get an image from the array:
  12. Replies
    8
    Views
    180

    Re: VB Control Array Solution

    you can create arrays of pictureboxes. for example

    declare this at form scope:


    Dim pictureboxes() as PictureBox

    put this in form_load
  13. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    @Pyth007

    does Array.Sort with an array of Objects which are Integers work properly?
  14. Replies
    3
    Views
    116

    Re: Find Back-To-Back Duplicates

    Msgbox(Enumerable.Range(0, arr.Length - 1).Any(Function(x) arr(x) = arr(x + 1)))???
  15. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    try this:



    Public Class Form1

    Private Sub btnNumbers_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNumbers.Click
    Me.lstResults.Items.Clear()
    ...
  16. VS 2008 Re: Filtering datagrid data from textbox input

    If you need "" to equal all records, try:

    TestFilterdatagridBindingSource.Filter = "[FlightPlan Code] LIKE " & If(TextBox1.Text = "", "%", TextBox1.Text)
  17. VS 2008 Re: Filtering datagrid data from textbox input

    At the time that you clicked the button, what was TextBox1.Text?
    If it was "" that would explain the error
  18. VS 2013 Re: Video without Windows Media Player in VB.Net form

    I've never tried this api with win 8.1, so I can't suggest a solution
  19. VS 2008 Re: Filtering datagrid data from textbox input

    you removed the =
  20. VS 2008 Re: Filtering datagrid data from textbox input

    that would be:


    TestFilterdatagridBindingSource.Filter = "[FlightPlan Code] =" & TextBox1.Text
  21. VS 2008 Re: Filtering datagrid data from textbox input

    did you see post #3?
  22. VS 2008 Re: Filtering datagrid data from textbox input

    if it's a numeric field, don't use the surrounding '
  23. VS 2008 Re: Filtering datagrid data from textbox input

    try:


    TestFilterdatagridBindingSource.Filter = "[FlightPlan Code] ='" & TextBox1.Text & "'"
  24. VS 2013 Re: Tutorials on developing an database application using SQL Server database as back

    have a look at this:

    https://code.msdn.microsoft.com/DataBinding-91dfbcf4
  25. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    This is my last attempt to explain...

    lstNumbers is a form level integer array
    lstResults is a listbox control


    An array has index numbers to differentiate between the seperate elements
    A...
  26. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    Look back at post#17
    The line i commented as 'listbox, is the only line you should change
  27. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    Public Class Form1

    Private Sub btnNumbers_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNumbers.Click

    For numDisplay As Integer = 1 To 10
    ...
  28. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    to format your code:

    121767

    121769

    this is how your code will appear:


    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  29. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    Also, read post #2 again. What did Shaggy Hiker tell you about formatting your code?
  30. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    rename the listbox (in the form designer properties window), from:

    lstNumbers

    to

    lstBoxNumbers

    Then...
  31. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    Public Class Form1

    Dim randNumbers(9) As Integer

    Private Sub btnNumbers_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNumbers.Click
    For i = 0 To...
  32. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    if you're sticking with Rnd and Randomize, just call Randomize once in form_load.

    Rnd example:

    http://msdn.microsoft.com/en-us/library/f7s023d2(v=vs.90).aspx
  33. Replies
    27
    Views
    405

    VS 2012 Re: new to visual basic programming

    lstNumbers(numDisplay - 1) = numbers - this appears to be an array of integers
    Me.lstNumbers.Items.Add(numbers) - this is a listbox with the same name as the integer array, hence the error
  34. VS 2010 Re: How to convert sql data to a variable?

    try this:



    Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\LoginSystem.mdf;Integrated Security=True;User Instance=True;")

    con.Open()
    Dim sqlquery As...
  35. Re: [VB2010Express]Help in making my Card Guessing program, it keeps on showing me er

    Also, it appears from the exception message that V = "", therefore the image file you're referencing is ".png"

    edit: might be somewhat wrong there, but the image file you're referencing is still...
  36. Re: [VB2010Express]Help in making my Card Guessing program, it keeps on showing me er

    What are you expecting Directory.GetCurrentDirectory to return?
    The current directory when debugging is your app's ExecutablePath, which is your bin\debug directory
  37. Replies
    5
    Views
    188

    Re: I have a problem when re-sizing a form.

    TableLayoutPanels work best with docking or anchoring, both for the TableLayoutPanel within the form and for the PictureBoxes in the cells
  38. VS 2010 Re: Making a datagrid read-only for some users?

    you can use readonly:



    Public Class Form1

    Public Sub New(ByVal isAllowed As Boolean)

    ' This call is required by the Windows Form Designer.
    InitializeComponent()
  39. VS 2013 Re: Populating Treeview with sub-directories and .txt files

    try this:



    Public Class Form1

    Dim iml As New ImageList

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim...
  40. Replies
    9
    Views
    266

    Re: Question WRT the Shown event.

    This seems to be what you're looking for:



    Public Class Form1

    Private Sub Form1_Invalidated(ByVal sender As Object, ByVal e As System.Windows.Forms.InvalidateEventArgs) Handles...
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.