Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: CarlMartin

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Display highlighted data from Listbox in Textboxes

    Did that, and it does compile. I knew where the errors were, I am just not proficient in C# to do what I need to do. That was my attempt at whet I thought would be the proper code, but I was...
  2. Re: Display highlighted data from Listbox in Textboxes

    here you go. File attached.
  3. Re: Display highlighted data from Listbox in Textboxes

    How about this:


    public struct Contacts
    {
    public string FirstName;
    public string LastName;
    public string Street;
    public string City;
    ...
  4. Re: Display highlighted data from Listbox in Textboxes

    ok, thanks, be back when I get some progress happening.
  5. Re: Display highlighted data from Listbox in Textboxes

    thanks. Yes, the code has no errors, it compiles, and it works pretty much. The reason I am storing the structures into an array is because that's what the directions ask for. Basically, I want each...
  6. Re: Display highlighted data from Listbox in Textboxes

    OK, I started all over. Here is what I have so far:


    public partial class frmAddressBook : Form
    {
    public frmAddressBook()
    {
    InitializeComponent();
    }
  7. Re: Display highlighted data from Listbox in Textboxes

    Thanks for the advice, I am working on this right now, and I will update if I get confused, have an issue, or get it done. We shall see. Thanks.
  8. Re: Display highlighted data from Listbox in Textboxes

    I am new to C# as a language. I am more familiar with VB, but by no means an expert. I am working on this as we speak, so I will keep you all updated. I wish this book explained how to do some of...
  9. Re: Display highlighted data from Listbox in Textboxes

    I guess I could do that.
  10. Re: Display highlighted data from Listbox in Textboxes

    There are lots of errors, too many to post. I am going to start all over on this and use an array of structures, then go from there.
  11. Re: Display highlighted data from Listbox in Textboxes

    I just started working on this again. I created a structure, as you can see in the code. When I change the Array data type to the structure name, I get like 5 errors in the code, even if I change all...
  12. Re: Display highlighted data from Listbox in Textboxes

    wow, ok, thanks. I will let you know how it goes. This is one I should just skip, lol.
  13. Re: Display highlighted data from Listbox in Textboxes

    I have a question on this method you have here. I see where you declare the number of contacts. In this problem, I need to have a MAXIMUM of 20 contacts, but it may be any number between 1 and 20....
  14. Re: Display highlighted data from Listbox in Textboxes

    I will give this a shot. I guess I can then try to store each contact (instance of the class) into an array. Maybe an array of structures would be easier. I don't know. I will see. This problem...
  15. Re: Display highlighted data from Listbox in Textboxes

    The class I created was striking similar to yours, but I tried to substitute the "text" you have here with variable names, and the names of the textboxes, and I got errors. I don't know how to get...
  16. Re: Display highlighted data from Listbox in Textboxes

    My issue is adding the contact info INTO the Class FROM a textbox, not getting the info out and displaying it into a textbox. And I need to use an array to store the data, also.
  17. Re: Display highlighted data from Listbox in Textboxes

    Wow, this is super complicated. After reading the chapter in the book on Classes, I am super confused. What I do not understand is how does the class get the data input into the textboxes by the...
  18. Re: Display highlighted data from Listbox in Textboxes

    Yeah, there have been many lessons in this book that are designed to illustrate the material, but are way more complicated to use than other methods...many lessons! I guess it is good to learn how to...
  19. Re: Display highlighted data from Listbox in Textboxes

    Thanks for the advice. I was trying to avoid going to class by teaching myself, as you can see, for some of the same reasons. I like how the directions can still be followed, but it can still be done...
  20. Re: Display highlighted data from Listbox in Textboxes

    I agree with you there, I just hate to not follow directions. It's just me. Anyway, let me ask you a question. Do you think the better way to do this, and still use an array to store the data, is...
  21. Re: Display highlighted data from Listbox in Textboxes

    I think that, if I can use classes, but use an array to store the data (per the requirement), then thic will still technically be correct. It does say simply that an array must be used to "store" the...
  22. Re: Display highlighted data from Listbox in Textboxes

    I understand that. I did do it his way after reading the post, but I will not be able to let it go without doing it the original way, just to be able to do it. I need to prove to myself that it can...
  23. Replies
    1
    Views
    1,698

    Re: Combobox ListIndex

    Got it to work. Here is the code.



    Private Sub cbxAccounts_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cbxAccounts.SelectedIndexChanged

    ...
  24. Re: Display highlighted data from Listbox in Textboxes

    If you read my post, I am trying to learn C# on my own, so I bought a book, and I am trying to do the problems in the book as I go through it. I need to learn C#, so I thought I would do it this way.
  25. Re: Display highlighted data from Listbox in Textboxes

    Wow, that is going to make it complicated, lol. Thanks.
Results 1 to 25 of 32
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center