Results 1 to 21 of 21

Thread: What is This?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    What is This?

    What is this? It looks like a table to me. I would like to know, (A) What is this? and (B) How do I get it to fill with data? Also, How do I get the starting row to have the labels with the room numbers.

    It may be hard to see as I was only limited to 500KB for the attachment. You can probably download the pic, and then make it bigger. Any help on this would be terrific.
    Attached Images Attached Images  

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    Also, I would guess that it populates data from many sources. It populates room reservations, in house guests, checked out. So, how would I need to do this as well?

  3. #3
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: What is This?

    Thats a fairly loaded question. Just to let you know, thats like throwing up a picture of MS Word and asking, "How do I do this?"
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    OK, then answer what you can, other then that, do not post. The problem with this forum is there is not very much learning, just talking. I simply asked (A) What that was, was it a DataGridView, A Table, What? (B) I guess I should have said, if it was a table, how do I load databound data into it.

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: What is This?

    It doesn't look like any standard control that I am aware of. Quite likely it is a third party control, in which case you either get to make your own, or pay some dough.

    The left column looks a bit odd (it may just be that the image is shrunken). Are those labels functioning the same as buttons (they look vaguely like buttons in a variety of states)? Or are they just labels? If they are just labels, then the thing is probably subclassed off of a DataGrid. I don't know of any obvious way to get the cells divided into quarters (which may also be a visual artifact of the image). If that isn't important, then I think you can get the bulk of the appearance from a datagridview.

    If the left column is buttons, then I can suggest a way to get the effect, though there may be a better solution.
    My usual boring signature: Nothing

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    they are just labels. However, The labels across the top are dates, and when you enter in a date criteria, the data table or what ever it is, fills in the dates across the top in sequential order. (how do you do that in any case?), the white squares, you click on that, and then at the bottom, you can click the "Make Reservation" button to load the reservation form. (Still don't know how to load a form with data populated from the previous form).

  7. #7
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: What is This?

    OK, then answer what you can, other then that, do not post.
    I was seriously trying to help. The real problem with forums (and ims, and texting, and...) is that you can't really inflect and stress correctly. I was not trying to come across as an *******.

    To be more specific:
    From your question, I thought you were asking how to keep up with all that data and how to get it. That would depend on the table structure, which is something you would have to come up with, since it specific to how you want to deal with the info. I can't see the pic very well, but (as Shaggy Hiker said) it looks like a third party control. Since we may not all have that, it would be very difficult to demonstrate to you how to populate it.

    I just thought it was a pretty loaded question to be asking from a screenshot. I understand how it could've sounded like I was trying to jab you, but I was only trying to let you know how I felt about it, because it is possible many others could feel the same way. And I felt like I wasn't given enough info, so I thought maybe my response would prompt you to provide more so I or someone else could help you.

    EDIT: Also, I was getting called to a meeting right when I was posting, so my judgement wasn't at its best and I cut it a bit short. Looking back on it, I could've been more helpful.
    Last edited by 18experience; Apr 13th, 2007 at 04:55 PM.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  8. #8
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: What is This?

    Those are labels? They are funky looking labels. If those are dates across the top, then I'm thinking that I ought to change my suggestion. This sounds like a custom calendar control, but that depends on what is in the left columns.

    I don't use databound controls, so I can't say anything about that, but depending on what is in the left column, this could probably be re-created based on a ListView in detail mode. This would make the column headings easy to deal with. I still think this is probably a third party control, but that doesn't mean that the same functionality couldn't be created using off the shelf controls.

    Take a look at the calendar control that comes with .NET. I have only used it in some very narrow applications, so I don't know whether it has anything like that.
    My usual boring signature: Nothing

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    Those labels on the left are room numbers, It looks like this:

    101-NK1-$59.99

    The NK1 is the room type, and the other is the price for that day. I really wish I had a bigger picture, maybe an email, and I will send a bigger one.

  10. #10
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: What is This?

    Oh, ok, that makes sense. In that case, a bound control doesn't make sense to me, because I can't think of a way to store that information in a database so that it would look anything like what is being shown. Any kind of grid display of tabular data would look like that, but the reservations aren't really tabular data. You certainly wouldn't have an underlying database that would have a field for every day, or anything of the sort. You'd have a database with a starting day and an ending day for a room. The control, then, has to take a bunch of records, and graphically display that on a grid, which is not really like any databound control I am aware of.

    If I were to do that, the first thing I would try would be looking around for existing, free, calendar controls that had some of that functionality. However, I'm not sure that that would work, so next I would be inclined to use a ListView in Detail mode. The columns would be set when the person decided on the first date. The number of rooms (rows) is fixed (unless you added a field for "Out of Service", such that rooms that were not available ro be let were not shown in the grid.

    This would work, but it would require that whenever the dates changed, the whole ListView would have to be re-populated almost entirely. In the background, a query would be run on the database to return all rooms that were let during any of the visible days. This would be in a DataReader because you would only want a fast, forward-only recordset. For each record, the set of visible days the room was let would be indicated on the ListView. I have no obvious solution for that, because I would have to try various things to get a really obvious color or graphic based visual cue.

    I think that is all the suggestion I can provide. Perhaps somebody else can suggest a control that would be more suitable, but the ListView would work....with a bit of effort.
    My usual boring signature: Nothing

  11. #11
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: What is This?

    what's shown in the picture might not be all in one control, that picture could be a panel with a bunch of labels, etc... on it, with the panel being the control to scroll the other controls
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  12. #12
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: What is This?

    Yeah, I've used that technique for smaller things. You can do quite a bit with cleverly overlaying controls on controls. However, with the exception of the apparent bisection of each row and column, that looks mostly like a ListView. There are some things arguing against that, though, so an overlay of various other controls is also a possibility.
    My usual boring signature: Nothing

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    Everyone is saying a ListView, but gridlines on a list view is horizontal only, so I don't know what it is. Part of it looks like a DataGridView, but they're not that functional.

  14. #14
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: What is This?

    Quote Originally Posted by DL1600
    It may be hard to see as I was only limited to 500KB for the attachment. You can probably download the pic, and then make it bigger. Any help on this would be terrific.
    Did you save the pic as a JPG before downloading it?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    Yes, of course, why?

  16. #16
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: What is This?

    Run the app, use MS Spy++ and drag the window finder tool over the desired control, drop it, see what the window specifics tell you its class is. Thats the only sure fire way to determine what it is. Appearance is only a guess at what it is at best.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  17. #17
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: What is This?

    Quote Originally Posted by DL1600
    Yes, of course, why?
    I just did a Ctrl/Alt/Prt Sc - went into MSPAINT - pasted it - saved it as a JPG.

    The file is 240 kb

    And it's this size...
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  18. #18
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: What is This?

    and when I do properties on your posted image it's bitmap data - mine is JPEG data...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  19. #19

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    I did the MS Spy++ and it said that it was an AcuGridClass, what ever that is.

  20. #20
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: What is This?

    A google search turned up 0 results. Do you have the third party control(s) installed and showing in your Add/Remove Programs list?

    So no way to know unless we had the control.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  21. #21

    Thread Starter
    Addicted Member
    Join Date
    Nov 2006
    Posts
    131

    Re: What is This?

    This is a program that I downloaded, for which I am getting ideas (not copying) for my program. This program that I downloaded was written in COBOL. So, this is why it's an unfamiliar control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width