User Profile

Collapse

Profile Sidebar

Collapse
sajjadlove
sajjadlove
Last Activity: Sep 13 '10, 09:23 AM
Joined: Apr 15 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • do you want to use from button for searching(push button)?
    or when you enter a keyword in the TextBox(TextBox Text Changed)?

    for using button:
    not problem.you can write a query for searching.for example:
    Code:
    select * from tb where tb.name like '%txtText%'
    for entering keyword:
    you can use from TextChanged event of the TextBox.and then use from Select method in the DataTable that you fill.for...
    See more | Go to post

    Leave a comment:


  • I found a solution for this problem.i created a folder like last project folder and copied the database in it.it worked and data displayed, but i can't detach it...

    when i use from below query:
    Code:
    EXEC sp_detach_db 'D:\last folder\dbName.mdf','true'
    give me an error that this database doesn't exists, whereas when i used from following ConnectionStrin g, data displayed:
    Code:
    Data Source=.\\SQLEXPRESS; Initial
    ...
    See more | Go to post

    Leave a comment:


  • sajjadlove
    started a topic Detach database that deleted in SqlExpress

    Detach database that deleted in SqlExpress

    Hi
    I attached a database to SqlExpress.then moved the project to another place and deleted the last project(with it's mdf file).now, i can't attach database in new address to SqlExpress.
    when i use from following connection:
    Code:
    Data Source=.\\SQLEXPRESS; AttachDBFileName=|datadirectory|dbName.mdf; Initial Catalog=dbName; Integrated Security=True;User Instance=true
    it thrown an exception: 'Database already...
    See more | Go to post

  • sajjadlove
    started a topic Error when using from absread()
    in C

    Error when using from absread()

    Hi
    this subject discussed already but not resolved for me....

    i'm using from borland c++(old version) and i want to access to disk by absread() function.but using from this function gives an error to me that i can't access directly...

    i used from c++ builder 2009(Rad Studio) and visual studio 2008 also to resolve this problem but their compilers not recognized this function...

    how can i solve this...
    See more | Go to post

  • sajjadlove
    replied to save a xml file to the internet
    but don't work this way like a ftp manager??

    --------
    sorry for bad english
    See more | Go to post

    Leave a comment:


  • sajjadlove
    started a topic save a xml file to the internet

    save a xml file to the internet

    Hi
    i want to share a xml file between some companies.for this reason i uploaded this file to the internet and use it for sharing and set its permission to 777....

    don't problem for reading that....
    Code:
    XmlTextReader reader = new XmlTextReader(carDBPath);
    XmlTextWriter writer = new XmlTextWriter(url, Encoding.UTF8);
    
    while (reader.Read())
    {
        writer.WriteNode(reader, true);
    }
    ...
    See more | Go to post

  • sajjadlove
    replied to Using DialogResult for Label
    My class inherit from Label.how can it inherits from Dialog??
    Do you can give me an example???
    See more | Go to post

    Leave a comment:


  • sajjadlove
    started a topic Using DialogResult for Label

    Using DialogResult for Label

    Hi
    i am using a label instead of a button control and now i want to use from DialogResult in my class...
    Code:
        public class GA5_Button : System.Windows.Forms.Label
        {
            [Browsable(true),
            DefaultValue(typeof(System.Windows.Forms.DialogResult))]
            public System.Windows.Forms.DialogResult DialogResult
            {
                get;
                set;
    ...
    See more | Go to post

  • e.TotalBytesToR eceive is -1 and e.ProgressPerce ntage is 0.....
    with override GetWebRequest doesn't work too.......

    Code:
        class MyWebClient : WebClient
        {
            protected override WebRequest GetWebRequest(Uri address)
            {
                FtpWebRequest request = (FtpWebRequest)base.GetWebRequest(address);
                request.UsePassive = false;
                return request;
    ...
    See more | Go to post

    Leave a comment:


  • excuse me for my bad english.....
    my problem is in its progressChanged event.

    Code:
            void manager_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
            {
                lblUpDownStatus.Text = FormatSize(e.BytesReceived) + " from " +
                    FormatSize(e.TotalBytesToReceive) + " recieved... " +
                    e.ProgressPercentage.ToString() +
    ...
    See more | Go to post

    Leave a comment:


  • sajjadlove
    started a topic Download file from ftp with webclient class

    Download file from ftp with webclient class

    Hi there
    i use from following code for download a file from ftp server but it doesn't work......
    what's that problem ?!......
    Code:
    //FTP Class
            public event DownloadProgressChangedEventHandler DownloadProgressChanged;
            public event AsyncCompletedEventHandler DownloadFileCompleted;
    
            public void Download(string fileName,string savePath)
            {
    
                WebClient
    ...
    See more | Go to post

  • sajjadlove
    started a topic get value from resident programs

    get value from resident programs

    hi all
    notepad is open and not saved in disk yet......
    how can i get whatever wrote into it....
    i think that we should work by its handle and api but how?

    Code:
    Process[] p = Process.GetProcessesByName("Notepad");
    .
    .
    what is resumption..?
    See more | Go to post

  • sajjadlove
    replied to Attribute problem
    i don't understand ur meaning.what's profit of cheating in this case?
    See more | Go to post

    Leave a comment:


  • sajjadlove
    replied to Attribute problem
    it's ok.i find its solution.
    very very thanks.....
    See more | Go to post

    Leave a comment:


  • sajjadlove
    replied to Attribute problem
    thanks.i override the ToString() method but it is readonly now.
    for example size property is changeable but my property is not.(problem is attached....)...
    See more | Go to post

    Leave a comment:


  • sajjadlove
    started a topic Attribute problem

    Attribute problem

    Hi there
    How can i solve this problem??

    P Property is here...
    Code:
        public partial class combo : ComboBox
        {
            public combo()
            {
                InitializeComponent();
            }
    
            private MyClass p = new MyClass(2, 4);
            public MyClass P
            {
                get { return p; }
                set { p = value; }
    ...
    See more | Go to post

  • sajjadlove
    started a topic insert picture in db

    insert picture in db

    hi,
    i'm working with sqlserver2000.i want to insert a picture in database.follow ing code used in my project but have an error:
    Code:
    using (SqlConnection con = new SqlConnection("server=(local);database=pubs;integrated security=true"))
    {
    SqlCommand cmd = new SqlCommand("insert into tb (name,val) values (@name,@val)", con);
    
    MemoryStream ms = new MemoryStream();
    pictureBox1.Image.Save(ms,
    ...
    See more | Go to post

  • sajjadlove
    replied to search in listview
    thanks.i already tested this way.
    but is it best? in my project performance is very important and must be very high......
    See more | Go to post

    Leave a comment:


  • sajjadlove
    started a topic search in listview

    search in listview

    I want that search in the listView by enter a text in the TextBox and use the textBox_TextCha nge event then refresh listView items.....

    please F1.....
    See more | Go to post
No activity results to display
Show More
Working...