Thanks Plater, it seems quite near to my needs. I'll try it.
Bye.
User Profile
Collapse
-
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. -
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);});Leave a comment:
-
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....Leave a comment:
-
Ok. I'm trying:
DataGridViewCol umn dgwCbClm=new DataGridViewCom boBoxColumn();
How do I set now the default datasource for the combobox?
Thanks again....Leave a comment:
-
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";... -
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'))...Leave a comment:
-
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...Leave a comment:
-
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....Leave a comment:
-
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. -
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);
... -
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... -
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... -
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? -
C# Socket: UDP checksum
Hi, How to verify the checksum of a received UDP packet? Do the TCPListener class just forward correct datagrams?
Thanks. -
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... -
Perfect, thanks. That was what I was searching for.
Thank you.Leave a comment:
-
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.
No activity results to display
Show More
Leave a comment: