Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. YOu can use ADOX for some routines then use ADO.NET for others.
  2. It doesn't matter if it's homework or not, we are here to help with specific problems. To get you started on the basics of CSS ... http://www.w3schools.com/css
  3. Robby

    Arrays

    Use the Random class in .NET instead of rnd(). Dim r As New Random() you can aslo seed the constuctor with Ticks from the TimeDate.
  4. I haven't attempted this nor have I thought much about it, I suppose you could have pre-defined Panels, then upon user selection move things from one panel to another.
  5. You can enter the value manually or though code, it really depends on your design, at least now you're on the right track.
  6. Can you share the rest of your code?
  7. That's why in my second post I mentioned Binding, creat a Dataset with the following SQL Select.... Dim strSQL As String = "SELECT SomeIdColumn, '[' + str(CandidateID) + ']' + ' ' + LastName + ' ' + FirstName AS " & _ "FullName, LastName + ' ' + FirstName AS SortName " & _ "FROM tblCandidates ORDER BY LastName, FirstName" With cboFullName .Datasource = myDataSet.Tables(0).DefaultView 'This uses the dataview of the first table of your dataset .ValueMember = "SomeIdColumn" .DisplayMember = "FullName" End With
  8. In tblContacts add a column named lets say company_id, this would be your FK (foreign key) you would enter 22 in this column. This will work without any further action, however you can take it to the next step and place constraints in place so that no one can enter an invalid ID into company_id. These constraints can be done with scripts in Query Analyzer or Enterptise Manager, I'm not sure if it can be done with VS.NET IDE (Actually a script can be run from a batch file too). Before you place constraints in your DB you may want get familiar with the rest of your application first.
  9. This helps with no additional tags are added but the indenting still gets messed up. I usually don't go back to the designer once I've fixed the indents, if I do then I don't save it. Go to Tools | Options | Txt Editor | HTML/XML | Format | uncheck the first two items.
  10. IF you don't DataValueField or DataTextField then you must be using a Win Form, then you can achieve the same thing with the following... myCombo.ValueMember = "SomeIDColumn" myCombo.DisplayMember = "SomeFullNameColumn" 'Then to retrieve the ID when a user selects an item... someVar = myCombo.SelectedValue
  11. While in design view of the table, goto to the bottom section and change Identity= NO to YES
  12. I gather from your name you can afford it. :) Sorry it never happened to me.
  13. Maybe I'm missing something here but it probably is looping the number of times you expect but it happens so fast that you don't see it. I think that you need to move the Refresh into your Timer Event, so that it refreshes on each Interval. Also, wouldn't Net.WebClient() do what you need (instead of the ActiveX)
  14. Does your line .... MsgBox(data) ever get raised? Also, if you place a MessageBox at the last line of your sub will it ever trigger? (maybe replace the "Exit While" with "Exit Sub" for this test)
  15. I don't have .NET right now but are you sure that 0 (zero) is Running
  16. Check the server_process.ThreadState before going into the loop and see what it returns.
  17. Hog, you're make things too complicated for yourself, if all you want is to get the ID field from the selelcted combo then do something like this during binding... myCombo.DataValueField = "SomeIDColumn" myCombo.DataTextField = "SomeFullNameColumn" Then to retrieve the ID when a user selects an item... someVar = myCombo.SeletectedItem.Value
  18. Your delimiter should be the right bracket ] , because you don't have any [] without numbers in between, do you? Then remove the left bracket once in the array. Why not use DataValueField and DataTextField so that the Selected Item is the ID number?
  19. Or IndexOf since we're using .NET :)
  20. This is to followup on VoltFaces' idea, are you running this from the IDE or by entering the LocalHost URL in your browser?
  21. no, don't Use Exit Sub, try this instead.. 'place this in your page load event If not ispostback then LoadDropdownFunction() end if
  22. They don't need Access installed as long as you don't make references to the Access object. (ADO/ADO.NET does not count). Simply ship your program with the MDB file and a copy of MDAC 2.5 or higher.
  23. Are the other properties Public?
  24. Is that code called every time you load the page? or do you check for IsPostBack? Also, you might want to get rid of the "SELECT * FROM..." and try this instead ..."SELECT artistID, name FROM ..."
  25. I cannot think of a legitiate reason for doing this. Even for a game, if the user wants to focus on another application then they should have every chance to.
×
×
  • Create New...