CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: SpecialK

Search: Search took 0.03 seconds.

  1. Thread: pass values

    by SpecialK
    Replies
    8
    Views
    1,474

    Re: pass values

    public partial class frmOne : Form
    {
    // Constructor
    public frmOne(){}

    // Button click event but the code could go anywhere
    private void btnSearch_Click(object sender,...
  2. Replies
    2
    Views
    633

    Re: Loading Content in same folder of exe

    using System.IO;

    string exePath = Directory.GetParent(System.Reflection.Assembly.GetExecutingAssembly().Location));
  3. Thread: RandomDice

    by SpecialK
    Replies
    9
    Views
    1,406

    Re: RandomDice

    I created a card game and had better results getting a "more" random number this way:



    Random randGen = new Random();
    int randomCard = randGen.Next() % 13; // 0 base
  4. Re: Regarding what to type in to the parameter of this function

    hhmmm...Didn't know optional values worked like that, or in that syntax anyways in C#. Can someone give an example of a code that will compile which uses optional param?

    As a rule of thumb, for...
  5. Replies
    1
    Views
    861

    Re: Reading and Writing to another file

    string AceFormatString = "";
    int[] AceFormatPoints = { 114, 15, 27, 44, 44, 316, 356, 99, 74, 591 };

    foreach (int i in AceFormatPoints)
    {
    if (i == 114)
    AceFormatString =...
  6. Replies
    2
    Views
    766

    Re: Problem with cookies and HttpWeRequest

    try this



    string curMethod, curUserAgent;

    HttpCookie myCookie = Request.Cookies["CookieName"];

    // gets the value of this key in cookie: Method = GET
    // curMethod = "GET"
  7. Replies
    2
    Views
    785

    Re: Data classification

    You'll have to write which animal belongs to which column eventaully. Maybe you could use the switch statement



    private void LoadAnimals(string Animal)
    {
    switch (Animal.ToUpper())
    {...
  8. Replies
    2
    Views
    20,355

    Re: XmlDocument.SelectNodes()

    This is most likely because you're not following the structure of the xml. XPath won't handle XML nodes out of order.

    Try:



    XmlNode barNode =...
  9. Replies
    5
    Views
    790

    Re: Class Instantiation

    Ya, you're right. You could shove anything in an object but when it comes to using the object for what it is, it's only gonna know that it's a "generic" object and you won't have access to your...
  10. Replies
    5
    Views
    790

    Re: Class Instantiation

    In the end, you'll have to code for both objects (JET and SQL) anyways. I've built an app, similar to what you're trying to do. I, also, only have 2 types of db(JET and SQL). I made a class called...
  11. Replies
    5
    Views
    7,599

    Re: DataGridView WriteXml() not saving

    Code?
Results 1 to 11 of 12





Click Here to Expand Forum to Full Width

Featured