Jump to content
Xtreme .Net Talk

Voldron

Members
  • Posts

    4
  • Joined

  • Last visited

Voldron's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. what you could do is setup a switch statement that listens for a certain value, say groupNumber, so for instance groupNumber gets assigned a value the switch statment will be triggered and so on. So what I am suggesting is something like this. int groupNumber; switch(groupNumber) { case 1: <buttons visible for this group> break; ... default: <default buttons to be visibile for anonymous users> break; } I use this method mostly for user levels and permissions in my applications. Cheers
  2. Create a login screen. Write a simple if statment for a login method(this will use a bool). Create some way to compare username with a username in some sort of db or file and then make sure that the password is in relation to username, then return a boolean. If it makes a match, return true, otherwise return false. boolLogin = LoginMethod( txtUsername.text, txtPassword.text); if(boolLogin == true) { //Successful login } else { //Failed Login } Something like that, it is fairly simple as you can tell. If you are doing a db thats, SELECT * FROM <dbName> WHERE username = '<username>' AND password = '<password>'. Hope this helps, John
  3. Check the normals on the model itself, this is often the case.
  4. Try using a dataset and fetching a row from it, when a row is selected then bind each value to its appropriate combo box.
×
×
  • Create New...