User Profile

Collapse

Profile Sidebar

Collapse
charindal
charindal
Last Activity: Mar 25 '11, 12:48 PM
Joined: Dec 23 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • charindal
    replied to How can i access variable of page_load
    you neeed to declare the fromdate as public. in th other class just refrence the page_load as follows..
    page_load myrefpage = new page_load();
    myrefpage.fromd ate //this is how you call the variable.

    pay attention on how the state of the page_load is used. as my example above shows it involves instantiating a new page_load..you can try the static method so that you can reuse it
    See more | Go to post

    Leave a comment:


  • charindal
    started a topic Array Indexes

    Array Indexes

    i would like some help on how to retrieve array indexes. i have the following scenario:

    List <string> alphabet = new ....;

    alphabet.add("a ");
    alphabet.add("b ");
    alphabet.add("a ");
    alphabet.add("c ");
    alphabet.add("a ");

    i have populated a new arraylist which only identifies distinct/unique alphabet items in the firt array...
    See more | Go to post

  • charindal
    replied to Forms reloading
    I HAD TO DO IT THE LONG WAY I.E creating a constant variable for every other variable that i use. i also had to figure out the state of each combo box and list boxes. i then created a function that resets all states. i was hoping that if u load your form for the first time then you save that instance, you can always refer to it, how ever i noticed that it does not return the variable states at the time it was saved rather it throws the current ...
    See more | Go to post

    Leave a comment:


  • charindal
    started a topic Forms reloading

    Forms reloading

    I would like to know if it is possible to reload or re initialise a form and all its variables/objects to its original state. an example is as follows.

    i have a form with two public variables length and width. when the form is run for the first time it gets updated eg length set to 10 width to 20.. when in operation ther are some calculations that are done and the values of length, width changes. is it possible to call a method that...
    See more | Go to post

  • charindal
    replied to Identifying dates to specific months
    thank you

    yah i think i got the logic from your example...the trick is to get the start day then subtract it like what you showed me, then continue the process until i get to the last day which i will just take the day as the number of days for that month... thank you
    See more | Go to post

    Leave a comment:


  • charindal
    started a topic Identifying dates to specific months

    Identifying dates to specific months

    I would like some help on how best to implement this. I have a form which accepts a project's name and asks for the start day and end day. Along with this information, there is also a cost involved which is calculated on a monthly basis. say for example the start date is 15 july and end date is 25 september. it should be able to figure out that from 15 july to 31st july, they are days for july. then identify 31 days for aug,and as well identify...
    See more | Go to post

  • charindal
    started a topic Datagridview an crystal reports

    Datagridview an crystal reports

    I would like to create a report using data from my datagridview. i have tried to search the internet and what i seem to find is people advising to use the data source of the datagrid. However i have a slightly diffrent scenario to consider. i have a quotation system which populates the datagridview from the stock table. once the data is in, it is then manipulated i.e change markups, costs but i would not want these changes direct to the database....
    See more | Go to post

  • charindal
    replied to Search Strings
    thank you very much. it seems to be behaving....
    See more | Go to post

    Leave a comment:


  • charindal
    replied to Search Strings
    I seem to have found a lead. i enabled my fulltext indexing on SQL and the problem ha been greatly minimised. however ther is still one annoying problem. how do you pass wildcards from a textbox into the select statment. e.g when in sqladmin, it is easier to type a command like select * from a where contains(b,' "cem* " '), here it will list everything that starts with cem. however, when in c# how do i incorporate the wildcard * to my text...
    See more | Go to post

    Leave a comment:


  • charindal
    replied to Search Strings
    Code:
    char[] splitchar = { ' ' };
                string[] str = txtstocksearch.Text.Split(splitchar);
                foreach (string item in str)
                {
                    SqlDataAdapter adp = new SqlDataAdapter("select * from stock where stock_description like '%" + item + "%'  , connection.connect());
              
      
                DataSet ds = new DataSet();
                adp.Fill(ds);
    ...
    See more | Go to post
    Last edited by tlhintoq; Mar 9 '10, 01:58 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

    Leave a comment:


  • charindal
    replied to Search Strings
    this was an error i have re entered it below.
    See more | Go to post

    Leave a comment:


  • charindal
    replied to Search Strings
    i m trying that but its not coming alright, i might be missing something do you have a sample code?
    See more | Go to post

    Leave a comment:


  • charindal
    started a topic Search Strings

    Search Strings

    How can i search within a string say a description of items and would like the program to search for matching words in any order but they should relate e.g. consider this description: CEMENT AFRISAM 50KG SATCHETS....
    i would want a user to lets say type in the words "SATCHETS CEMENT", the search code should be able to list all descriptions that have SATCHETS AND CEMENT in one line.
    See more | Go to post

  • How do i maintain a variable that has been assigned once in a class to remain the sam

    I am developing a database system and i would want the user to be able to select the servername at login level. this information is passed into a class which holds the connection string. every function that connects to the database refrences this class. i would like to be able to assign these values once at login and then be able to re use them over and over until the user logouts.

    thank you
    See more | Go to post

  • charindal
    replied to c# house plan drawing
    i have tried to implement a class like the following please correct me if am wrong and suggest any advice


    Code:
        class wall
        {
            public double thickness = 0.0;
            public int[] startpoint = { 0, 0 };
            public int[] currentpoint = { 0, 0 };
            public double walllength = 0;
            public string walltype = "Single";
            public Graphics wallgraphic;
    ...
    See more | Go to post
    Last edited by tlhintoq; Dec 23 '09, 05:59 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

    Leave a comment:


  • charindal
    replied to c# house plan drawing
    Thank you for the advice. i really am getting the picture of wht you are saying. is it possible if you can just write me up a sample class with walls and doors, windows and one example for drawing under the override onpaint?
    See more | Go to post

    Leave a comment:


  • charindal
    started a topic c# house plan drawing

    c# house plan drawing

    i am trying to create a program that is able to draw a housing plan. the user should be able to input the required meters then upon clicking a left,right,up, down button, the system draws a line in that direction. I have managed to do this but however how do i protect my painted window when it has been obscured by another window. i also would like to be able to click on corners and be able to draw interior walls from a point marked from a corner....
    See more | Go to post
No activity results to display
Show More
Working...