|
That's why I say "is most likely" instead of "is"
But if you're making so many spelling errors.. well.. I would be surprised if it's even possible to detect the language..
|
|
|
|
|
|
Hi Guys,
In Windows, I have to stop the collapse and expand of treeview,when i double clicks on any node.Collapse and Expand should be fire on clicking the + or - sign in the treeview.
Please give the needful answer.....
Regards,
Lalit Narayan
|
|
|
|
|
|
Hi peoples,
I have to display a string in the label, i will concatenate and pass the same to the label,
but my need here is i want to do some part of the string as bold, i.e
for example the concatenate string is
Website Code project
and i need is that
Website Code project
can any one help me??
thanks in advance
|
|
|
|
|
for web project.
Label2.Text = @"<b>Website</b> Code project";
happy coding...
|
|
|
|
|
it can be done via graphics.DrawString but might not work on labels. try that one.
format string part using some font and display it.
|
|
|
|
|
The label doesn't support different font settings for part of the text.
Use the Paint event of the label and draw the text yourself.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
is it possible for that to do in the text field display only??
|
|
|
|
|
when a PDF file is opened during navigation from one page to other page in browser (IE),
how the PDF file is attached to internet explore?
How can I get the Information about the PDF file opened in internet explorer using c#?
I had googled for this, but I doesn't get enough information such that I can do this in c#.
If anyone knows something regarding this, reply here
|
|
|
|
|
Hello,
I need to write an event (or method) that will be raised once a day at a particular time (5PM) and it will do something.
How can i do it?
|
|
|
|
|
Use TimerCallBack delegate to schedule a method.
जय हिंद
|
|
|
|
|
michaelgr1 wrote: I need to write an event (or method) that will be raised once a day at a particular time (5PM)
Do you want your application to run all the time? If yes, you need a thread which checks the time frequently and do job when it is 5PM. If you don't want to run this application all the time, efficient method would be to schedule this application using windows scheduler.
|
|
|
|
|
No,
The application will work all the time and only at 5pm it will raise the method.
Do i have to check every for example couple of minutes if it's 5PM and it will raise the method or is there other way?
|
|
|
|
|
The application does something else (can do many things) ,
But i want the event will raise only once a day at 5PM .
Is there a way to do it not using a code that will check every some time for the current hour and will raise the event (method) only at the particular time?
|
|
|
|
|
You can create a timer, and set the time interval to be 5 PM - current time. You would have to do that again in the timer callback as well.
|
|
|
|
|
Hello Friends
My application wants to download Folder(folder and sub folders with files) from Web Server using HTTP. Can guide me to do this.
Downloading from FTP is done, for that I have used FtpwebRequest and FtpWebResponse...
But how to download using HttpWebRequest...
I have able to download a file from WebServer but I want to download a folder and files.
Thanks in advance...
|
|
|
|
|
You don't download folders. You have to create them, download files and put into the created folder. Of course, a recursive function is required which can travel through the directories and sub directories.
|
|
|
|
|
Ok..but how to get list of files and folders available on WebServer.
like FTP we can get list of Directories and files using "WebRequestMethods.Ftp.ListDirectory ;"
|
|
|
|
|
Hello,
I have created word document using Microsoft.Interop Library,for that i have to insert text which is contain html tags,now i need to formatt that text and putup that html text on word document,means need to put up html formatted text on word document using c#.
Thanks,
nikunj padaliya
modified on Tuesday, May 26, 2009 12:44 AM
|
|
|
|
|
it is late answer i know ))
Create a word doc, and insert a bookmark into that, then you can paste your string to that bookmarked place wit trhe code below
private void button2_Click(object sender, EventArgs e)
{
WordApp = new Word.ApplicationClass();
fileName = @"yourworddocname";
Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref Format, ref realencode, ref isVisible, ref missing, ref missing, ref missing, ref missing);
WordApp.Visible = true;
WordApp.Visible = true;
bookmarkdene(aDoc, "yourbookmarinworddoc", yaz);
}
private static string HtmlClipboardData(string html)
{
StringBuilder sb = new StringBuilder();
Encoding encoding = Encoding.GetEncoding("utf-8");
string Header = @"
Version: 1.0
StartHTML: {0:000000}
EndHTML: {1:000000}
StartFragment: {2:000000}
EndFragment: {3:000000}
";
string HtmlPrefix = @"
!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//TR""
html
head
meta http-equiv=Content-Type content=""text/html; charset={0}""
head
body
!--StartFragment--
";
HtmlPrefix = string.Format(HtmlPrefix, encoding.WebName);
string HtmlSuffix = @"
<!--EndFragment-->
</body>
</html>
";
// Get lengths of chunks
int HeaderLength = encoding.GetByteCount(Header);
HeaderLength -= 16; // extra formatting characters {0:000000}
int PrefixLength = encoding.GetByteCount(HtmlPrefix);
int HtmlLength = encoding.GetByteCount(html);
int SuffixLength = encoding.GetByteCount(HtmlSuffix);
// Determine locations of chunks
int StartHtml = HeaderLength;
int StartFragment = StartHtml + PrefixLength;
int EndFragment = StartFragment + HtmlLength;
int EndHtml = EndFragment + SuffixLength;
// Build the data
sb.AppendFormat(Header, StartHtml, EndHtml, StartFragment, EndFragment);
sb.Append(HtmlPrefix);
sb.Append(html);
sb.Append(HtmlSuffix);
MessageBox.Show(sb.ToString());
//Console.WriteLine(sb.ToString());
return sb.ToString();
}
public void bookmarkdene(Word.Document aDoc, string bookmarkName, string yourhtmlstring)
{
try
{
object bookmark = bookmarkAdi;
object missing = System.Reflection.Missing.Value;
object pasteType = Word.WdPasteDataType.wdPasteHTML;
DataObject clipDO = new DataObject();
if (aDoc.Bookmarks.Exists(bookmark.ToString()))
{
Word.Range rangeTbl = aDoc.Bookmarks.get_Item(ref bookmark).Range;
clipDO.SetData(DataFormats.Html,HtmlClipboardData(yourhtmlstring));
Clipboard.SetDataObject(clipDO, true);
rangeTbl.PasteSpecial(ref missing, ref missing, ref missing, ref missing, ref pasteType, ref missing, ref missing);
}
else
{
}
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
}
thanks for everything i have...
|
|
|
|
|
Hi,
I am intending to write a simple OCR engine. How should I go about doing it? Are there any source codes available for me to use and alter it according to my need? I am a newbie to this OCR thingy. Pls help.
Please reply at e-mail: phoiphapham@gmail.com
|
|
|
|
|
First thing you do is some research clickety[^] amazing stuff the interweb
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Search the articles for "OCR". One of the better examples I've seen is this article[^].
BTW, there is no such thing as a "simple" OCR Engine. Unless, of course, you find neural networks "simple".
Phoiphapham wrote: Please reply at e-mail: phoiphapham@gmail.com
The only people who want to see your email address are spammers. Noone here is going to reply to your email address. All answers are posted here so that future readers will see the answer too, not just you.
|
|
|
|
|
I'm sorry, this's the first times i post question at here.
Now, i don't know the way to implement a neuron network on computer.
do i use Matlab?
please help me.
|
|
|
|