User Profile

Collapse

Profile Sidebar

Collapse
Assam
Assam
Last Activity: Dec 31 '07, 09:40 AM
Joined: Aug 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Assam
    replied to Are these objects equal?
    in .NET
    Object.Equal method is a virtual method. So if you call the base class method it will compare the references of both objects(i.e. both objects referring to same memory location).
    You can override this method in your class to give your own functionality. One possible reason could be to compare the state of both objects as you require.
    If this is not helpful let me know i will provide the sample code.
    See more | Go to post

    Leave a comment:


  • As the way i look after each state there's space and after a group of cities there is another space. So the solution is quite simple i suppose. I hope your file starts of with state name as first line. Read the state name first and then you find second space in the following line and after that you know its cities. Now read the cities till you don't find another space. I hope this resolves your logic issue.
    If this doesn't help i will provide...
    See more | Go to post

    Leave a comment:


  • Assam
    replied to Inserting string value into string[]
    in .NET
    Please replace double quotes with single quotes :) and the code would work fine. Actually split method takes character which is represented by ' ,' and when you give in double quotes it acts as string

    string[] COABANKS;
    StreamReader SR3 = File.OpenText(p ath);
    string linestring;
    linestring = SR3.ReadLine();
    COABANKS = linestring.Spli t(',');//Remove double...
    See more | Go to post

    Leave a comment:


  • Is there a way to change the position of the child control on scrolling

    I am developing a custom control which would act as a PDF viewer. I am extending this control from the Panel control(Please note i have enabled double buffering of controls). I am not using the auto scroll property i.e. i am manually controlling the scrolling. The control works fine if there are no controls. But when there are controls in it then i have to change the poistion of the controls when the scroll bar value changes. The problem is there's...
    See more | Go to post
No activity results to display
Show More
Working...