Jump to content
Xtreme .Net Talk

PurpleMonkey

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by PurpleMonkey

  1. is it possible for a combobox to have a subitem? i want to be able to grab data from my database, an id and the item for that id. i don't want to have the id shown. i've done this for a listview using the Tag property. what would be a good way for assigning an id to to each item in the combobox?
  2. I'm using MS Access. Here's an example of what i've been working on. cityTable - Table name cityID as Number (Primary Key) cityName as Text ClientTable clientID as Number (Primary Key) clientName as Text ClientCityTable clientID as number ctyID as number ClientCityTable can have several of the same clients listed but with different cityIDs. i thought i kept this fairly simple, but perhaps i have it wrong.
  3. i think i'm having a major brain fart, but could you provide an example?
  4. Is there any way of finding out if, i.e. id 5 belongs to san francisco and san jose? i want to be able to find out if they belong to both, not just one or the other.
  5. i'm trying to run this query, select id from tblClientID where city = 'San Francisco' and city = 'San Jose' if i have an id that can have several cities, shouldn't it display the id? my query returns nothing. i.e., id 5 can have city san francisco and san jose and id 4 can only have san jose. what i want to do is if san francisco and san jose is chosen, that it will only return id 5. i don't want to use 'OR' because it will return both 4 and 5. what am i doing wrong? if this isn't possible, how do i fix it? i'm using MS Access.
  6. In access you can use an autonumber. Is this available in a SQL Server?
  7. i'm creating an mdi application and i would like to place a timer in my application. for example, if the user hasn't entered anything in, say 5 minutes, it will exit out of the program. my question: i'm not sure if i'm going to have any threads running the in the background. in any case, which timer should i be using, System.Threading.Timer or System.Windows.Forms.Timer ?
  8. are you trying to assign it a certain time? else it would just be timerName. enabled = true to start the timer
  9. When would i want to use application.doevents? i'm creating an mdi application and i haven't found a good explanation of application.doevents. i checked the index but i'm still unclear. does anyone have a good example of when to use this?
  10. How does application.doevents work? the explanation i found in the index seems confusing. can doevents be used if they are using showdialog? it seems like you were using it for form.show. what happened to the dispose of the dialog?
×
×
  • Create New...