Search:

Type: Posts; User: chris57828

Search: Search took 0.02 seconds.

  1. Thread: e.Graphics?

    by chris57828
    Replies
    6
    Views
    1,121

    Re: e.Graphics?

    I was hoping for a more intuitive response rather than some arbitrary C&P from an on-line resource!
  2. Thread: e.Graphics?

    by chris57828
    Replies
    6
    Views
    1,121

    e.Graphics?

    I have the following method header.


    Private Sub drawCard(ByVal g As Graphics, ByVal rect As RectangleF, ByVal curFont As Font, ByVal textX As Single, ByVal textY As Single)

    In another method...
  3. Replies
    3
    Views
    975

    Re: Dictionaries and objects?

    It is defined as Emagazine. I am using the following code on the MainForm with no success


    outputTextBox1.Text = fMagazineAdmin.getEMagazine(listBox.SelectedItem.ToString()).Title
  4. Replies
    3
    Views
    975

    Dictionaries and objects?

    Hi,
    I’ve got a dictionary that is of type (String, object)
    I can use the following method to return the object but how do I access and display the properties in the object?

    Public Function...
  5. Replies
    7
    Views
    1,206

    Re: Dictionaries?

    But surely if the dictionary is empty at first it should be returning 'true' and inserting?
  6. Replies
    7
    Views
    1,206

    Dictionaries?

    Can someone tell me why the following code is always returning false? I have to populate a dictionary but if the key is already in the dictionary I should not. A list called MagazineTitles contains...
  7. Replies
    1
    Views
    4,849

    Declaring empty lists in constructors?

    Jeez!

    I have a list which is a read only property therefore I cannot set the property directly. I have declared the list that resides in within the read only property separately and initialised...
  8. Replies
    9
    Views
    1,299

    Re: Inheritance?

    That's exactly what I thought because if I remove the MyBase.New nothing changes but I think it's just a safety feature. :wave:
  9. Replies
    9
    Views
    1,299

    Inheritance?

    Hi Guys, I'm inheriting one class to another. I know that constructors cannot be inherited however I thought that placing MYbase.New as the first line of the constructor in the sub class...
  10. Replies
    8
    Views
    1,021

    Re: Enumerated Lists?

    Hi guys,

    I've learnt how to populate the list but when I display it all I get is numbers not the actual string!

    ListBox.Items.Add(format.ToString)
  11. Replies
    8
    Views
    1,021

    Re: Enumerated Lists?

    Can you give us a clue?
  12. Replies
    8
    Views
    1,021

    Re: Enumerated Lists?

    Display string I think!
  13. Replies
    8
    Views
    1,021

    Enumerated Lists?

    Hey guys I’ve got an enumerated list problem. I have two lists, one a list of string and the other an enumerated type. I have declared the enumerated type for the list. The enum list has to be...
  14. Replies
    13
    Views
    1,371

    Re: Constructors won't work?

    Yes, but I am meant to specify a constructor in each class as properties have to have values initialised. How do I do this without constructors?
  15. Replies
    13
    Views
    1,371

    Constructors won't work?

    Can someone tell me why my constructors keep getting a stack overflow exception?
  16. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    Thanks for you help yesterday!
  17. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    Hi, I pasted the wrong thing. Thanks for helping I am now cooking with gas! :)

    Regarding a textbox, if I want to enter an integer what code do I use on the mainform?
  18. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    Just one more. I’ve got a return function with a Boolean type. In the output text box do I have to convert the Boolean value to string to output the result?
  19. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    I've done it...................

    For Each prod As String In fTicketAdmin.Productions

    listBox.Items.Add(number.ToString)
    Next
  20. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    Here it is! What's wrong?

    For Each prod As String In fTicketAdmin.Productions

    listBox.Items.Add(fTicketAdmin.Productions)
    Next
  21. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    Hey I am nearly there.

    Here is my code.

    Public ReadOnly Property Productions As List(Of String)
    Get
    Dim tiger As New List(Of String)
    For Each key As String In...
  22. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    Indeed I am and I have read through all the literature given and cannot suss it out and it’s driving me insane. If the key is a string and that is what the loop returns why can’t I create a list out...
  23. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    This is what I write:

    Public ReadOnly Property Productions As List(Of String)
    Get
    Dim one As String
    For Each key As String In fProductionDict.Keys
    ...
  24. Replies
    17
    Views
    13,245

    Re: Creating Lists from a Dictionary

    PS I know I need to use a for each loop to iterate through the dictionary
  25. Replies
    17
    Views
    13,245

    Creating Lists from a Dictionary

    Hi, I’ve just started using Visual Basic 2010 so I hope I am posting on the correct forum. I’ve created a dictionary with four key value pairs. I need to use a read only property List to create a...
Results 1 to 25 of 25



Click Here to Expand Forum to Full Width