User Profile

Collapse

Profile Sidebar

Collapse
Ciri
Ciri
Last Activity: Mar 31 '08, 07:19 AM
Joined: Oct 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ciri
    replied to c# shell context menu
    in .NET
    Thanks Plater, it seems quite near to my needs. I'll try it.

    Bye.
    See more | Go to post

    Leave a comment:


  • Ciri
    started a topic c# shell context menu
    in .NET

    c# shell context menu

    Hi all, I'd like to add some commands to the menu that appears when the user right-clicks on the top of the form or on the appbar.
    I'd like to implement something like emule does. In emule, for example, if the user clicks with the right button on the caption of the form it shows a context menu.
    How can i do it in C#?

    Thanks.
    See more | Go to post

  • Ciri
    replied to C# DatagridView with List<t> as DataSource
    in .NET
    Perfect! It works.

    I just had to add a .Find delegate in the set method of the JobName property
    to allow the user to change the instance of Job via the dropdownlist.
    I just wrote:

    Code:
    string JobName
    {
        get{return _job.Name}
        set
        {
                Job newJob=
                    Jobs.Find(delegate(Job myNewJob){return 
    (myNewJob.Name==value);});
    ...
    See more | Go to post
    Last edited by Plater; Feb 8 '08, 04:59 PM. Reason: added [CODE] tags

    Leave a comment:


  • Ciri
    replied to C# DatagridView with List<t> as DataSource
    in .NET
    Great, it works!
    The problem now is that it shows "WindowsApplica tion.Job".
    How do I associate the combobox to the effective value of Job property of related person?
    And how do I choose what of the property of the job to show? (example jobName, or jobTime...)

    Thanks....
    See more | Go to post

    Leave a comment:


  • Ciri
    replied to C# DatagridView with List<t> as DataSource
    in .NET
    Ok. I'm trying:
    DataGridViewCol umn dgwCbClm=new DataGridViewCom boBoxColumn();

    How do I set now the default datasource for the combobox?

    Thanks again....
    See more | Go to post

    Leave a comment:


  • Ciri
    started a topic C# DatagridView with List<t> as DataSource
    in .NET

    C# DatagridView with List<t> as DataSource

    Hi all, I've a problem with a datagridview.
    The data source of the control is a List<t> where t is type of a class I've created.
    The class (Person) has some properties like Name, Surname and so on.
    Now my datagridview is bounded to a collection of Person:

    dgwPersons=new DataGridView();
    dgwPersons.Auto GenerateColumns =false;
    dgwPersons.Colu mns.Add("Name", "Name");
    dgwPersons.Colu mns[0].DataPropertyNa me="Name";...
    See more | Go to post

  • Ciri
    replied to PHP recursive function
    in PHP
    I've tried removing the flush(): the page never loads.
    This is the complete code of the page:

    <html>
    <head>
    </head>
    <body>
    <img src="SiSeFi/SiSeFi.png" style="backgrou nd-image:url(SiSeF i/SiSeFi_bckgrd.j peg)" alt=""/>

    <?
    $dataCreazione= filectime('SiSe Fi/SiSeFi.png');
    while ($dataCreazione ==filectime('Si SeFi/SiSeFi.png'))...
    See more | Go to post

    Leave a comment:


  • Ciri
    replied to PHP recursive function
    in PHP
    Ok, thanks. I've tried your way:
    <?
    $creationTime=f ilemtime('myPic ture.png')
    while(true)
    {
    flush();
    sleep(5);
    if ($creationTime! =filemtime('myP icture.png')
    {
    echo'<script language=javasc ript> window.location .reload();</script>';
    }

    }
    ?>

    It seems to work only for one user per time.
    If I open only one instance of the browser...
    See more | Go to post

    Leave a comment:


  • Ciri
    replied to Javascript lastUpdatedDate
    Thanks for the suggestion, I'll surely try it.
    I expect it to change each 5 minutes in normal situation.
    The image shows the situation of a Wi-Fi network and, depending on the state of the network it could change even more often....
    See more | Go to post

    Leave a comment:


  • Ciri
    started a topic Javascript lastUpdatedDate

    Javascript lastUpdatedDate

    Hi all, it's possible to have a js script that checks repeatly, say once each 5 secs, the last modified date of an image file on the server and, if changed, reload the page or update the page with the new image?

    Thanks.
    See more | Go to post

  • Ciri
    started a topic PHP recursive function
    in PHP

    PHP recursive function

    Hi all, I need a PHP script that checks the creation date of a file each 5 seconds, if creation date is changed it reload the page via javascript
    I' ve tried with:

    function verificaData($d ataCreazione)
    {
    flush();
    sleep(5);
    flush();
    $datacreTemp= filectime('SiSe Fi/SiSeFi.png');
    if ($dataCreazione ==$datacreTemp)
    {
    verificaData($d atacreTemp);
    ...
    See more | Go to post

  • Ciri
    started a topic Image tag with CSS background attribute

    Image tag with CSS background attribute

    Hi, I've got an Image (a transparent png) over a background (a jpeg).
    I'd like them to stretch toghether.
    I've tried:
    <img src="MyImage.pn g" alt"foreground image" width"100%" height"100%"
    style"
    background-image: url(MyBackgroun d.jpeg);
    background-repeat: no-repeat;
    background-size: 100%;" />

    Doing so I can correctly see the...
    See more | Go to post

  • Ciri
    started a topic Page Reload and Cache
    in PHP

    Page Reload and Cache

    Hi, I have a simple html scenario:
    <html>
    <head>
    </head>
    <body>
    <img src="myImage.pn g">
    </body>
    </html>

    I want a script that forces the re-loading of the page each time myImage.png is changed via ftp.
    So i I tought to do a check with the filemtime() function once per second and then eventually force the re-load.
    I've got...
    See more | Go to post

  • Ciri
    started a topic C# Password
    in .NET

    C# Password

    Hi all, I would like to grant access to a Windows Form only submitting a password.
    For example, now I'm prompiting the user to insert the password in a textbox and checking if the text property matches with the password.
    There's a better way?
    How can I protect the form without hardcoding the clear text password?
    See more | Go to post

  • Ciri
    started a topic C# Socket: UDP checksum
    in .NET

    C# Socket: UDP checksum

    Hi, How to verify the checksum of a received UDP packet? Do the TCPListener class just forward correct datagrams?

    Thanks.
    See more | Go to post

  • Ciri
    started a topic C# Application Settings
    in .NET

    C# Application Settings

    Hi all, is it possible to have different user.config file for different
    instances of an application running on the same machine?
    I've seen that a different folder is created under Documents and
    Settings/User_name/Local setting/Application Data each time I run the
    application from a different path.
    Inside each of these folders there's a user.config file that stores a
    different set of settings.
    This...
    See more | Go to post

  • Ciri
    replied to XmlTextWriter, XmlDocument
    in .NET
    Perfect, thanks. That was what I was searching for.

    Thank you.
    See more | Go to post

    Leave a comment:


  • Ciri
    started a topic XmlTextWriter, XmlDocument
    in .NET

    XmlTextWriter, XmlDocument

    Hi all, I need to embed an image to an existing xml file. I guess this is possible using XmlTextWriter.W riteBase64() method. My problem is that XmlTextWriter writes to a new document.
    How can I edit an existing doc (for example with XmlDocument class) and write an image to it?
    I'm sorry but I'm a bit confused about the difference between XmlTextWriter and XmlTextDocument .

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