|
You should save your public and private keys somewhere, otherwise how can you use them again later?
Their usage is to make the public key available to everyone you want to exchange encrypted informations with you, and hold the private key somewhere where only you are able to access it
|
|
|
|
|
Then, what does KeyContainer have to use?
the KeyContainer can not store cipherkey ,
Why MS provided it?
What is KeyContainer practical significance?
|
|
|
|
|
jason_mf wrote: What is KeyContainer practical significance?
It's all explained here[^].
It's time for a new signature.
|
|
|
|
|
From the code below, I am trying to get my media player to play or pause. When I click on the button the media plays fine, however the pause does not work it simply starts playing from the start again. How to I get it to pause athen resume?
try
{
if (btnPlay.Content.ToString() == "Play")
{
//Play the media...
mediaElement1.LoadedBehavior = MediaState.Play;
btnPlay.Content = "Pause";
}
else
{
//Pause play back
mediaElement1.LoadedBehavior = MediaState.Pause;
btnPlay.Content = "Play";
}
}
catch (System.IO.FileNotFoundException err)
|
|
|
|
|
I have developed a .Net desctop application, and is planing to create an android application that functions lika a data collecting application.
I have already created a Windows Mobile application and the synchronisation there is through the RAPI, and is planing to make a Android version, since we all know that windows mobile are loosing the mobile-war.
The problem is that I am not sure how to make the .Net desktop applicatin<->Andoid device communication,
The task for the synchronisation feature will be:
1) lockate the data folder for the android application
2) download those files from the android application into a MemStream
3) Delete the files on in the data folder of the android application
I have googled around, but haven't found anything worthwile, so if somebody could point me in the right direction, I would be very grateful.
|
|
|
|
|
Hello everyone,
I have an app that loads an url into the webbrowser control, and then load the source into an object of HTMLAgilityPack, let's call it hap. All of this is working fine, and I can query hap using xpath to find certain items.
What I'd like to do is to add some sort of item selection in the webbrowser control, much like the IE developer tools (F12) has, of item selection by click (Ctrl + B), in a manner I can get the path of this item in the HTML structure.
Does anyone has any idea/tip/link on how to achieve this?
It's a Windows Form app written in C#, but can be converted to other languages, if necessary.
Thanks a lot for help
Marcelo
E O Preço? - Looking for the lowest price? We already found it for you. Price comparision.
|
|
|
|
|
Does this[^] article help?
/ravi
|
|
|
|
|
Hello,
Thanks a lot. It works fine, only struggling to get the selected object.
regards
|
|
|
|
|
Usually as below if you want to check the result of a open file dialog you use the following code:
if (fDialog.ShowDialog() == DialogResult.OK)
{
MessageBox.Show("User clicked on OK / Open");
}
However this does not seem to work when developing a Windows Presentation Foundation based application, any suggestions ?
|
|
|
|
|
In WPF you cannot do that because it returns only Nullable<Boolean>.
So, a code like this should do the trick:
fDialog.ShowDialog();
if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
{
MessageBox.Show("User clicked on OK / Open");
}
|
|
|
|
|
file web.config makes the following settings for sending:
system.net
mailSettings
smtp
network
host="smtp.mail.ru"
port="25"
userName="username"
password="password"
smtp
mailSettings
system.net
Button "Send"
protected void send_Click(object sender, EventArgs e)
{
try
{
const string ToAddress = "mymail@mail.ru";
MailMessage mm = new MailMessage(UsersEmail.Text, ToAddress);
mm.Subject = Subject.Text;
mm.Body = Body.Text;
mm.IsBodyHtml = false;
SmtpClient smtpClient = new SmtpClient();
smtpClient.Send(mm);
}
catch (Exception exc)
{
L_message.Text = exc.Message.ToString();
}
}
Can not send email.
I use the internet via a proxy server.
Could the reason why this is not the mail is sent?
What can advise me in this situation?.
I tried different ways but not sent.
The exception, "Failed to send e-mail."
|
|
|
|
|
First, please format any code you post here properly. Read the guidance at the top of this forum.
The problem could be the proxy not allowing the traffic. You should look at the details of the exception, not just the message generated.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
how to send a message using a proxy?
|
|
|
|
|
Look at this Example
How to send an email in asp.net
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
modified on Saturday, August 7, 2010 5:00 AM
|
|
|
|
|
Since All the same, I send mail through a proxy.
|
|
|
|
|
Hi - I am trying to get my application to automatically select the item that was last added to my list box but am not sure how to get this done. My code so far is as below. Please bear in mind that I am using Windows Presentation Foundation.
private void btnLoad_Click(object sender, RoutedEventArgs e)
{
//Declare an instance of the open file dialog...
OpenFileDialog dlg = new OpenFileDialog();
dlg.ShowDialog();
string fileName = dlg.FileName;
lstBxList.Items.Add(fileName);
//Once the file has been loaded, select it...
????????
}
|
|
|
|
|
dlg.ShowDialog();
string fileName = dlg.FileName;
lstBxList.Items.Add(fileName);
lstBxList.SelectedIndex = lstBxList.Items.Count -1;
should do the trick.
V.
|
|
|
|
|
Try this
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog dlg = new OpenFileDialog();
dlg.ShowDialog();
string fileName = dlg.FileName;
lstBxList.Items.Add(fileName);
lstBxList.SelectedIndex = -1;
lstBxList.SelectedIndex = lstBxList.Items.Count - 1;
}
|
|
|
|
|
how do i do then when i load a form it check the checkbox rather than showing true or false next to it
chkIsFavourite.text = gvdPizza.Rows.[e.Rowsindex].Cells[0].value.tosring()
|
|
|
|
|
Use chkIsFavourite.Checked = True ?
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
How can i passing information from the datagrid to datagrid code i used
Collapse | Copy Code
clName.text = dgvSubs.Rows.[e.RowsIndex].Cells[0].Value.Tostring()
error says cannot covert system.windows.form.DatagridViewCell to system.windows.Form.DatagridColumnTextboxes
ClName- is the datagridViewtextboxes that in the datagrid that i want to pass the field to
|
|
|
|
|
Hi Peeps
I created a desktop App and published it with click once, I have a mdf with the published files and I am saving that mdf to a location on my c drive.
I tested the app on 2 different pc's and it works fine but on another pc I get an error, the pc where the error is on does not have SQL installed...
here is my error please help,
Error : a network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Thanks
|
|
|
|
|
You can't just access mdf file. You need to install MSSQL Server on the machine you're installing application or provide access to the server somewhere in the LAN/WAN.
Or if you don't use advanced SQL Server features you can try SQL Server Compact Edition (3.5 or 4.0). This is light version of the SQL Server. It has some limitations, but for some uses it is enough. It can be provided to the end user as 3 or 4 dll libraries.
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
Thanks for the reply, I understand that but I'm using the prerequisites in the publish properties and I've selected SQL Server Compact 3.5 and SQL Server 2005 Express Edition, isnt that suppose to sort that out for me?
|
|
|
|
|
Aaaa. It should. You didn't mention it in first post Maybe firewall is blocking access to the server?
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|