|
|
If you have the web site open in Frontpage it will watch for file changes. It doesn't matter how you write the file, you can't change it without changing it...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Frontpage is not running, and I am simply editing a .css document (text) in a RichTextBox. I doesn't make any sense that Frontpage opens after the file is saved in the RichTextBox control!
Mark
|
|
|
|
|
No, that doesn't make sense. Applications doesn't start by themselves, so it seems that you start the css file somehow, causing Frontpage to open...
Do you do anything more when loading or saving the file? I suppose that you create the css file for some reason, so what do you do with it?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
After the text file was saved a webbrowser control attempted to navigate to the local document path. Since it's css Frontpage opened the file by default. This error was not readily apparent at first.
>>>>>>>>
Mark
|
|
|
|
|
hello ,
i am using a combobox which is bound to a dataset with a bindingsource
i have set the displayMember to one of the dataset columns ,
what i want to do is add some additional text to the elements displayed text in the combobox ,
for example to the first element i would like to add '1'
and to the 2nd element '2' ....
any idea how i might do that ?
thank you very much in advance!
Net
|
|
|
|
|
hi friend...
i got one solution dt...
dn't set displymember and datasouceid property...
just fill adapter and dataset...
code:.
Adapter.Fill(datset.xyztable);
for(int i=0;i<datset.xyztable.rows.count;i++)>
{
combobox1.Items.Add(i+"-"+datset.xyztable.Rows[i]["columnname"].Tostring());
}
|
|
|
|
|
Hi there.
I am newbie so please bear with me..
I found a universal remote control application for PDA on this site itself.
The link to the application in C# is below
http://www.codeproject.com/KB/miscctrl/UniversalRemoteControlPDA.aspx[^]
I tried posting comments on the application page but since no one replied for over a month i tried putting my questions here.
1: Is this a "real" universal remote control for all ir devices or just for Phillips ir devices?.
2: How do i run this application? I downloaded the source code and "deployed the solution" using pocket pc 2003 emulator on visual studio 2005 but could not find the application on the emulator....
Please help...
Thanks in advance
|
|
|
|
|
Hi,
I have weird problem with SmtpClient class. When I send email using gmail SMTP-server and port 587 it works fine in my own computer but if I install my program to other computer no emails received when I run my program.
Same issue in every other computer. I tried to turn off firewall but still it doesn't work. It doesn't matter what method I use (SendAsync or Send).
Best regards,
Janne Kekki
|
|
|
|
|
Tengo el mismo problema, estoy probando con enviar con puerto 25 y clienteSmtp.EnableSsl = false;
Yo verifico antes que tenga conexion de internet.
|
|
|
|
|
Hi every body
i want to write a program to control one of my windows drives, for example i want to know when and by who (windows user), it is clicked.
i think that, there should be a windows service to control it, but i do not know the way to install a service and the registry key(s) which i should work with.
thanks
|
|
|
|
|
Hi friends
there is nobody to know this? i really want to understand the answer
|
|
|
|
|
amiralimadadi wrote: control one of my windows drives
I do not understand "windows drives"...
amiralimadadi wrote: when and by who (windows user), it is clicked.
U mean to trace the mouse actions?
I Love KongFu~
|
|
|
|
|
yes, i mean the hard drives.
|
|
|
|
|
there is no one who know this!!??
|
|
|
|
|
hi friends...
am stored graphic objects(such as line,rectanle etc...)in arraylist..so now i want to paste the graphic object to screen...please help me..
|
|
|
|
|
Please check this article:
<a href="http://www.codeproject.com/KB/cs/copycustomclasstoclipbrd.aspx">http://www.codeproject.com/KB/cs/copycustomclasstoclipbrd.aspx</a>[<a href="http://www.codeproject.com/KB/cs/copycustomclasstoclipbrd.aspx" target="_blank" title="New Window">^</a>]
Natza Mitzi
|
|
|
|
|
|
Hi.
I'm making an application and have a lot of problems.
First of all, i had trouble figuring out - how to get all the items to lower case.
Ok, i fixed that... but the program doesnt work the way it should.
So, the program should work this way:
You start the app. Then u click the button to get all the files from directory and all subdirectories. This goes ok. Ok, but then, i want to remove all doubles in the list.
If theres a file "BeBack.JPG" the app. should check if there's also "BeBack.PDF" or if theres "BlackWhite.PDF" and "BlackWhite_1.PDF" it should remove both entries from the listbox.
My code doesnt do that i dont know why It also deosnt remove all .gif files
Where did i go wrong? Please help?
Here's the code:
private void button1_Click(object sender, EventArgs e)
{
string[] fajli = Directory.GetFiles(Application.StartupPath,"*.*",SearchOption.AllDirectories);
string[] VsiFajli = Array.ConvertAll<string,>(fajli, delegate(string s) { return s.ToLower(); });
listBox1.Items.AddRange(VsiFajli);
for (int i = 0; i < listBox1.Items.Count; i++)
{
if (listBox1.Items[i].ToString() == listBox1.Items[i].ToString().Remove(listBox1.Items[i].ToString().Length - 4, 4) + ".pdf")
{
if (File.Exists(listBox1.Items[i].ToString().Remove(listBox1.Items[i].ToString().Length - 4,4) + "_1.pdf"))
{
string temp = listBox1.Items[i].ToString();
listBox1.Items.Remove(temp);
listBox1.Items.Remove(temp.Remove(temp.Length - 4,4) + "_1.pdf");
}
}
else
{
if (File.Exists(listBox1.Items[i].ToString().Remove(listBox1.Items[i].ToString().Length - 4,4) + ".pdf"))
{
string temp = listBox1.Items[i].ToString();
listBox1.Items.Remove(temp);
listBox1.Items.Remove(temp.Remove(temp.Length - 4,4) + ".pdf");
listBox1.Items.Remove(temp.Remove(temp.Length - 4, 4) + "_1.pdf");
}
}
}
MessageBox.Show("Done!");
}
private void listBox1_DoubleClick(object sender, EventArgs e)
{
if(listBox1.SelectedItem!=null)
System.Diagnostics.Process.Start(listBox1.SelectedItem.ToString());
}
private void button2_Click(object sender, EventArgs e)
{
if(listBox1.Items.Count != 0)
for (int j = 0; j < listBox1.Items.Count; j++)
{
if(listBox1.Items[j].ToString() == (listBox1.Items[j].ToString().Remove(listBox1.Items[j].ToString().Length-4,4) + ".gif"))
listBox1.Items.RemoveAt(j);
}
}
private void button3_Click(object sender, EventArgs e)
{
if (listBox1.SelectedItem != null)
Clipboard.SetText(listBox1.SelectedItem.ToString()) ;
}
Thanks in advance.
Regards,
Matjaž
modified on Sunday, February 1, 2009 7:30 AM
|
|
|
|
|
The code is almost unreadable, please use the <pre> tags and use proper temporary variables instead of calling listBox1.Items[j].ToString() and others a hundred times. Also, did you know there's a EndsWith method?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Not until now, i didnt know about ends with. Thank you.
Anyway... yes, the code is a mess here in CP... but still, can sombody give me a clue for a better algorythm or something?
Regards,
Matjaž
|
|
|
|
|
Perhaps you can make a tiny demo and debug the code. That will be faster to find out the problem.
I Love KongFu~
|
|
|
|
|
i want to check my modem status every 5 mints.can somebody help with a c# code for that.
|
|
|
|
|
You can use timer object to run method every 5 minutes. As for modem what do you mean by checking it? You can send at commands to the modem.
|
|
|
|
|
i want to check mdoem status..status means..i heva lots of AT commands and i want to execute the methos which has all these commands evry 5 mints...can u help me with c#
|
|
|
|