Search Results - VBForums

Search:

Type: Posts; User: dday9

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    1
    Views
    78

    Get Image from BindingSource.Current

    Currently what I'm doing is I'm binding my DataTable to a BindingSource and then the BindingSource to a ListBox, but I'm setting the DisplayMember to the description or name DataColumn. What I want...
  2. Replies
    6
    Views
    151

    Re: directX in express

    Your only option for DirectX11 is C++.
  3. Replies
    2
    Views
    87

    VS 2012 Re: Virtual light box. Almost.

    Can you save a copy of the original Image, draw onto the copy of the Image, and then save the Image back? This would only work if your drawing application allows you to save and open images.
  4. Re: I need to better understand grids and graphs to solve a problem?

    I remember trying to make an A* algorithm a while back and failed at it. I've meant to try it again, but time is something I haven't been blessed with lately. However, I did make a VB.Net version of...
  5. Replies
    6
    Views
    151

    Re: directX in express

    Rather than sending a private message, I will respond to the thread because that is how forums are suppose to work. Advanced graphics libraries in Visual Basic are sort of in a limbo.

    On one hand...
  6. Replies
    16
    Views
    285

    Re: What Is Your Best Tip?

    Up until recently(like within the past month) I only programmed as a hobby and did so for about 4 years. I am also 100% self taught from websites such as homeandlearn, blogs such as JMcIlhinney's,...
  7. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    FD, you were the newest post in 3 out of the 4 subscriptions in My Settings.
  8. Replies
    14
    Views
    519

    Re: Just wanted to say hi to everyone.

    Yeah, y'all are some old farts ;)
  9. Re: Please help with finding multiple items in a List(Of)

    That makes much more sense. Here is an example of generating an array of Integer values which represents the results of rolling a six sided die 5 times:

    Dim diceRolls() As Integer =...
  10. Re: Please help with finding multiple items in a List(Of)

    If you're going to have a fixed amount of dice(in this case 5), you should be using an Array instead. Also, if you're only adding numbers 1 - 5 you can actually just use a range and convert it to an...
  11. Replies
    0
    Views
    94

    [HTML5/CSS] Accordion Control

    This is a pure HTML and pure CSS accordion control meaning that there is no JavaScript or JQuery involved. Here is the code:

    HTML

    <div class="Accordion">
    <input checked="checked"...
  12. Replies
    14
    Views
    519

    Re: Just wanted to say hi to everyone.

    You do have one of the oldest join dates that I've seen.
  13. Thread: Binding ComboBox

    by dday9
    Replies
    8
    Views
    130

    Re: Binding ComboBox

    Ok, so this is more about a question on a third party control than it is about binding a ComboBox? If that's the case then I'll have to bow out as I'm not familiar with the control.
  14. Thread: Binding ComboBox

    by dday9
    Replies
    8
    Views
    130

    Re: Binding ComboBox

    I'm not familiar with Infragistics ComboBox, but as far as any relation with SalesmanID, it's up to you to return rows based on the value returned. When binding the ComboBox, if no rows are returned...
  15. Thread: Binding ComboBox

    by dday9
    Replies
    8
    Views
    130

    Re: Binding ComboBox

    After you've built your query what you'd need to do is create a DataAdapter and fill either a DataSet or DataTable with the data returned from the Fill operation. Then you'd bind the ComboBox to...
  16. Thread: SQL Building

    by dday9
    Replies
    32
    Views
    430

    Re: SQL Building

    You should parameterize your SQL command so that you don't have to worry about escaping the literal. To this for example:

    Private Sub InsertUser(ByVal user As String)
    Dim connection As...
  17. Replies
    10
    Views
    216

    Re: Rental Inventory Calculator Help

    I've edited my post. I had copied an example I gave to somebody else and forgot to change the parameter names in the AddWithValue.
  18. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    The sailors say Brandy, you're a fine girl
  19. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    I love how the spam smiley starts with :s
  20. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    :spam:
  21. Re: is possibe to delete text in listbox without delete line?

    If you do not have an item selected then your SelectedItem property will return a -1 and throw an IndexOutOfRange exception. Try clicking on the item first before calling the code.
  22. Replies
    11
    Views
    233

    Re: Why does this work?

    Correct. It's just like trying to open an EXE in any kind of text editor, you'll get a bunch of odd characters.
  23. Re: is possibe to delete text in listbox without delete line?

    Set the text of the Item to your new text. Assuming that you want to do it for the SelectedItem then try this:

    MyListBox.Items(MyListBox.SelectedIndex) =...
  24. Replies
    11
    Views
    233

    Re: Why does this work?

    It's because you have the default program to open files with a DOC extension to open in Microsoft Word, but to reiterate what 4x2y said it is still just a plain text file with a DOC extension. So if...
  25. Replies
    10
    Views
    216

    Re: Rental Inventory Calculator Help

    The @ sign along with some text represents a parameter. So the query used is what's known as a parameterized query. Basically what you do is rather than passing the literal value(in this case two...
  26. Replies
    10
    Views
    216

    Re: Rental Inventory Calculator Help

    To be honest, I kind of assumed that you were using VB.Net because that is the forum that you posted the question in. What I need to know is what version of the .NET framework are you using as well...
  27. Replies
    10
    Views
    216

    Re: Rental Inventory Calculator Help

    You need to be more specific on what it is that you're using. Are you using a database? If so then are you using SQL, Access, or some other database. Also, what version of that database are you...
  28. VS 2012 Re: Create split form - Listng all records + show detail of single record below

    You can add a SplitContainer to your form and set the splitter for either horizontal or vertical. In one panel you'd have your DataGridView and in the other you'd have the details.
  29. Replies
    2
    Views
    107

    Re: Console Application: Help Needed

    For this type of application you will need a few main components:

    A random object to chose a random number between 1 - 3
    Loop until the user enters a valid number between 1 - 3
    A conditional...
  30. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    Nope, in the Boy Scouts we had to drink "potable water" which made a bunch of pre-teens/teens giggle.
  31. VS 2012 Re: Get details from 2 combos and use to fliter SQL view

    Yeah, just move your code from the CellContentClick to the form load after the TableAdapter fills:

    Private Sub frmReview_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ...
  32. VS 2012 Re: Get details from 2 combos and use to fliter SQL view

    A quick observation, you can combine these two events into one:

    Private Sub cboCustomerGroup_SelectedIndexChanged(sender As Object, e As EventArgs) Handles...
  33. Replies
    2
    Views
    152

    Check for Users Using Program

    I'm going into a territory that I'm unfamiliar with... Multi-Player gaming. What I'm trying to do is:

    Create a global chat
    Check for all users "online"

    I followed this DIC tutorial for my...
  34. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    Toilet water is potable, from what I understand local governments are encouraging people to drink toilet water.
  35. Replies
    13
    Views
    233

    Re: Currency textbox

    Oh ok, I misunderstood the question. You can set the CultureInfo to en-US:

    Dim us As New CultureInfo("en-US")
    If Decimal.TryParse(TB7.Text.Trim(), value) Then TB7.Text = value.ToString("C2", us)...
  36. Replies
    4
    Views
    143

    Re: Reverse List of T

    LINQ is slower, but that is because it does the work for you only in a more clear and concise way. If you're wanting this to be as fast as possible then LINQ would not be the way to go, however you'd...
  37. VS 2012 Re: Get details from 2 combos and use to fliter SQL view

    There are a few things you will want to do. First you will want to set the enabled property of the button to be if the text in both ComboBox controls are not empty as if it is nothing then it could...
  38. Replies
    13
    Views
    233

    Re: Currency textbox

    Use the letter 'C' in your ToString rather than C2. C2, I believe, is specific to the US:

    If Decimal.TryParse(TB7.Text.Trim(), value) Then TB7.Text = value.ToString("C")
  39. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    There's a bunch of shade for some good fishing.
  40. Thread: Post Race!

    by dday9
    Replies
    59,729
    Views
    2,518,996

    Re: Post Race!

    That is very pretty.
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.