It is a bit of a trial and error, but with the links, I am able to slowly figure out which parts fit where. Thanks for the help!
nik121
Posts
-
How to use CSS template with MVC 3 applications? -
How to use CSS template with MVC 3 applications?Hello everyone, I am not much of a designer so I lack the artistic ability to make a crisp looking website for anyone. And so in that case, I use templates made by actual designers. I am trying to use a template for my MVC 3 application from this website: http://www.freecsstemplates.org/[^] Anyways, the template comes with the folder of images, the index.html file, and the style.css txt file. I would really like to use this template for my application. I've looked around for similar topics on the internet and none of the tutorials I found really helped me. I would really appreciate any help you could give me. :) Thanks, Nik
-
Taking variables from other classes.Yea characterClass was the string for the Constructor in the class CharClasses. But the characterClass says that it doesn't exist in the current context.
-
Taking variables from other classes.public class CharClasses { public int healthPoints = 0; public int manaPoints = 0; public int strength = 0; public int dexterity = 0; public int speed = 0; public int intelligence = 0; public CharClasses (string characterClass) { if (characterClass == "Warrior") { healthPoints = 100; manaPoints = 10; strength = 10; dexterity = 5; speed = 3; intelligence = 0; } if (characterClass == "Archer") { healthPoints = 75; manaPoints = 10; strength = 3; dexterity = 10; speed = 5; intelligence = 0; } if (characterClass == "Assassin") { healthPoints = 75; manaPoints = 10; strength = 5; dexterity = 3; speed = 10; intelligence = 0; } if (characterClass == "Mage") { healthPoints = 50; manaPoints = 50; strength = 0; dexterity = 5; speed = 3; intelligence = 10; } } } public class Leveling { public int level = 1; public int experience = 0; public Leveling() { if (experience == ((experience + 100) * 1.5)) { level++; } } } I'm trying to take the constructor named "characterClass" from the class CharClasses and use it in the class Leveling. CharClasses Class = new CharClasses(characterClass); I'm trying to make this code work but the characterClass part of it does not seem to work...
-
Taking variables from other classes.So I am trying to make a class that uses a constructor of a different class. I use the code (Name of class) Class = new (Name of class(constructor variable)) But oddly the constructor variable won't appear. Could anyone please help?
-
Icon problemsWell thank you so much! It turns out that with IcoFX the icon works well. :)
-
Icon problemsFor a very long time now I've been having a problem with making an icon appear on the top-left part of my form. I have created a .ico file and it works for my .exe icon but whenever I try it on my icon property of my form it doesn't work. Anyone have any ideas why I'm having this problem?
-
An odd predicament with windows formsWow I can't believe I didn't think of that. Thank you very much you helped me greatly!!! :)
-
An odd predicament with windows formsWell I thank you greatly for that much of help and I must say that it helped but I am not sure how to set the X and Y variables. I have tried newButton.Location.X, but when I try setting it equal to an int it says that I can't modify the return variable of Location because it is not a variable. Do you know a way to go around it?
-
An odd predicament with windows formsHello I'm new to C# so you might have to bear with me a little bit but here is my problem. I am trying to make a windows form so that when you press a button, all the buttons disappear from the form. When that happens I am trying to make a different button take its place. You might find this a strange thing to do... but I have my reasons ;P. This is as far as I have gotten. Making a new button... Button newButton = new Button(); (tell me if this is even works, because I'm not really all that sure if it does). And that's all I can come up with. I've tried really hard to make that button appear after the others ones are disposed and I THINK it might have something to do with newButton.Location.X/Y. But that's just a guess. So it would be greatly appreciated if anyone could offer me any help. I do not ask for code I simple ask for a little guidance to my next step. Thanks, Nik!