Search:

Type: Posts; User: Abelius

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Re: [VB/WPF] How to populate a Datagrid from a Dictionary Of Class

    Thank you for your help! I'll try to make use of those links tomorrow.

    About the C# overwhelming presence... well, I suppose that's the way it is now in 2016. :-D In fact, the VB course in my...
  2. [VB/WPF] How to populate a Datagrid from a Dictionary Of Class

    Hi there,

    I'm creating a simulation game with RPG and Visual Novel elements. One of its primary requirements is that it supports overlapping of alpha transparent PNG images, so I switched to WPF...
  3. VS 2010 Re: [RESOLVED] Sorting a listbox (after trying to copy class instances properties to

    Yay, works great! :-D

    Thank you so much.
  4. VS 2010 Re: [RESOLVED] Sorting a listbox (after trying to copy class instances properties to

    Thanks to the both of you.

    Now, to be extra-bitchy on my part... do you think you could suggest me how to order by last name AND THEN first name...? :rolleyes:

    I'll love you even if you don't...
  5. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    You sir, are totally and absolutely awesome. That line worked like magic! :bigyello:

    I've set the student count to 2400 and even with that number I get no more inconsistent results.

    You don't...
  6. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    Another update...

    It works with integers, but only as long it doesn't encounter two identical values (I think). That's also the reason because it doesn't work 99% of times with last names (very...
  7. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    Ha ha! Cross-firing posts here. :D

    See my edit.

    Update: Works great with integer values! Thanks!
  8. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    Oook, I understand this better, thanks. :)

    Only a problem though:



    This is what I wrote:


    Private Function CompareByLastName(A As Person, B As Person) As Integer
  9. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    Geez... my "solution" stops working when the key value of two instances are identical.

    Trying to sort .education fired that, because I have several student which shares the same value, of course....
  10. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    Bingo.

    I've resolved it with this...:


    Case "Last name / First name"
    lstSelectStudent.Items.Clear()
    Dim templist As New SortedList(Of String, String)
    For n = 1 To students_count...
  11. VS 2010 Re: Sorting a listbox (after trying to copy class instances properties to a temp list

    Thanks for replying Shaggy. :)



    Yup, it goes like this:


    Public Class Person
    Public firstname As String
    Public lastname As String
  12. VS 2010 Re: Sorting a listbox (freaky mode)

    Thank you for replying to my thread.

    Regrettably, I cannot understand what you suggested to me. :o I've taken a look at that arraylist you said, but I don't see how that data type would help me in...
  13. VS 2010 [RESOLVED] Sorting a listbox (after trying to copy class instances properties to a temp list...)

    Hi people,

    I'm trying to figure out a way to sort the entries of a listbox... but in a different way instead of the obvious one (sorted property).

    First of all, I need to explain how the items...
  14. VS 2010 Re: [RESOLVED] How to fill a "gap" after removing a KVP in a sequential string key ba

    Oh, you're right! In what I was thinking? I must need some sleep. :p

    Ok, then I think I'll try with a list after all. Is much shorter by a great deal. :D

    Thanks again. You're king.
  15. VS 2010 Re: How to fill a "gap" after removing a KVP in a sequential string key based diction

    Hi there. Thank you for your reply and advice. I really appreciate your help.

    Sorry about not being informative enough with the integer variable selected_student_index. Actually, it's a little...
  16. VS 2010 Re: How to fill a "gap" after removing a KVP in a sequential string key based diction

    Me, being a monkey armed with a machine gun and no clue about how it really works... I suspected as much. :o

    Let me explain better why I ended using the dictionary in this way...

    I started my...
  17. VS 2010 Re: How to fill a "gap" after removing a KVP in a sequential string key based diction

    I'm pretty desperate here... :(

    All I could Google about dictionaries and using them with a For Each ... Next block was about iterating thru its entries, but never for replacing a key, only for...
  18. VS 2010 Re: How to fill a "gap" after removing a KVP in a sequential string key based diction

    Thanks. :)



    OK... By looking at the "Loop" section of that web page, I've constructed this...:


    PersonsList.Remove("student" & selected_student_index)
    Dim pair As KeyValuePair(Of String,...
  19. VS 2010 [RESOLVED] How to fill a "gap" after removing a KVP in a sequential string key based dictionary?

    Hello people,

    I've been searching the forum for a while, but I couldn't find a solution for this. Sorry if it's a duplicate question already, because I suspect this must be trivial for you...
  20. VS 2010 Re: [RESOLVED] Another problem... this time with Randomize

    Funny, I didn't noticed that. :p



    Understood! Thank you so much for your explanations. Much appreciated! ;)
  21. VS 2010 Re: Another problem... this time with Randomize

    Oh my... I'm so clueless that I don't know how could I continue with my little project if not for your invaluable help, people... :o

    Worked flawless, needless to say. I'm very grateful!
  22. VS 2010 [RESOLVED] Another problem... this time with Randomize

    I don't know if it's me being stupid all the time, or this is really getting psychedelic... :(

    I have a function to 'roll' random numbers, like this...:


    Private Function Roll(ByVal min As...
  23. VS 2010 Re: [RESOLVED] What the hell??? Is this normal???!!

    Yeah, I suppose... For me (a beginner with some old experience at raw BASIC) is counter-intuitive to say 'Dim' and 'as New' in the same line.

    I'm sure there's a perfectly reasonable cause for this...
  24. VS 2010 Re: What the hell??? Is this normal???!!

    Thanks TG.

    As you were kindly writing your reply, I tried with my laptop which it has W7 32 bits) and then the exception WAS handled, telling me that the reference was null, so I figured out that...
  25. VS 2010 [RESOLVED] What the hell??? Is this normal???!!

    Ok, right now I'm very mad at VB...

    I have this (copy and pasted from a new and clean project)...:


    Public Class Form1
    Dim periodslist As List(Of String)

    Private Sub...
  26. VS 2010 Re: Ho to set a specific hour at a date variable...?

    Wow... that's long! But it will do nicely for what I need. Very nicely. :)

    Thank you so much!
  27. VS 2010 [RESOLVED] Ho to set a specific hour at a date variable...?

    ...BUT without changing the rest of the date?

    I mean... I have this...:


    'current date at my game
    Dim time As Date = #9/29/0001 12:23:00 PM#

    'another date variable
    Dim period_lunch as...
  28. Replies
    25
    Views
    1,779

    VS 2010 Re: [RESOLVED] Classes vs Structures

    It was as you said. Of course, because you rule. :)

    I didn't put a miserable IF to check if the PTAslot value was zero... :blush:

    Thanks again. You really make this forum a reliable source of...
  29. Replies
    25
    Views
    1,779

    VS 2010 Re: [RESOLVED] Classes vs Structures

    I could... but then I'll need to kill you. :p

    Man, aren't you a cunning fox! ;) My bad, I'm sorry for that, really. But let's say that the game I'm coding is not exactly about war, if you take my...
  30. Replies
    25
    Views
    1,779

    VS 2010 Re: [RESOLVED] Classes vs Structures

    I have finally realized why the executions of those lines where stopping the whole thing...

    I have found (the hard way) the difference between a "c" and a "C"... The key I was calling was...
  31. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs Structures (Please, could you recheck for a follow up question?)

    The following is the pasted Info from the About menu...:


    Microsoft Visual Studio 2010
    Version 10.0.40219.1 SP1Rel
    Microsoft .NET Framework
    Version 4.0.30319 SP1Rel

    Installed Version: VB...
  32. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs Structures (Please, could you recheck for a follow up question?)

    Same time posting Evil_Giraffe. :)

    What you say makes sense to me. I'll re-read your post tomorrow and see if I can get my hands on a complete version of VS, yes...

    Thank you so much for your...
  33. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs Structures (Please, could you recheck for a follow up question?)

    Another update... (sorry):

    If I put all of those value configuration lines at other procedure, they execute and the listbox gets filled.

    Err... again: what the hell? Anyway, I'll do that...
  34. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs Structures (Please, could you recheck for a follow up question?)

    I did that, and it didn't worked.

    Form1_Load still stops executing lines after the first myTeamMembers("key_string").property = "whatever..."

    Man, this is so freaking absurd... :sick:
  35. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs Structures (Please, could you recheck for a follow up question?)

    No very important quick update: Changed location of Public Class TeamMember to bottom... Designer didn't liked that or something... :ehh: But I'm still with the problem.
  36. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs Structures (Please, could you recheck for a follow up question?)

    Mmm, indeed I changed it from Structure to Class, but I've run and saved the project several times since then. No structure anywhere and I only have a form. Furthermore, the class is at the very...
  37. Replies
    25
    Views
    1,779

    VS 2010 Re: [RESOLVED] Classes vs. Structures... I'll end hating them both!

    Hi there again.

    I've been modifying my code to use a dictionary, but I have unexpected results...

    First of all, I have a Class:

    Public Class TeamMember
    Public gender As String
    ...
  38. Replies
    25
    Views
    1,779

    VS 2010 Re: Classes vs. Structures... I'll end hating them both!

    OMG... :sick:

    First of all, thank you SO much to all of you for the responses provided. I must admit that I barely understood the half of what you said, but that is NOT your fault, definitely.
    ...
  39. Replies
    25
    Views
    1,779

    VS 2010 [RESOLVED] Classes vs Structures

    Hello World! :wave:

    This could be considered a follow-up of the question I sent yesterday:
    http://www.vbforums.com/showthread.php?t=667195

    Well, I'll try to not wall-text you this time. In...
  40. VS 2010 Re: How to iterate through elements in Structures?

    Oooh, you're right. :o

    Ok, thank you so much for these pearls of wisdom. :D
Results 1 to 40 of 44
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width