|
I would suggest you try .NET 4.0 and use the new SmtpClient.Dispose() method (directly or through a using statement, doesn't matter). I haven't done so myself yet, but it seems to be a new enhancement by MS, and I expect it to solve your problem.
Of course, you should not disable or replace your AV.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Hi all!
I've tried to create file using File.Open(filePath, FileMode.Create) where filePath contains Unicode symbols. I can see those specific symbols in the explorer but if I try to read folder content via cmd dir I see only "Filename (??????? ???)" where question char replaces desired symbols.
Even more. When I tried to open file from the Explorer I received an error "file does not exist". But opening from cmd with (?????) is OK.
Can anybody help me? Thanks in advance
|
|
|
|
|
My advice is to not use unicode characters in paths/filenames.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
how to get the number of words in .doc OR .docx (MicrosoftWord file).
I will give the address of word file and i wanna get the number of words in it.
Thanks
|
|
|
|
|
Find the number of bytes, divide by two.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
OriginalGriff wrote: Find the number of bytes, divide by 42.
FTFY.
I don't think they have cut down on the overhead.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Tools | Word count
|
|
|
|
|
I wanna to get this in my C# project.
So Please Help or Give correct solution .
Thanks
|
|
|
|
|
Take document as string
Use regex to remove all numbers and punctuation
Split on CRLF for paragraphs, Split on space for word count
That would be my first attempt, and then I would be asking questions on any problems I had. So, maybe you should go and implement that and see if it gets you what you want, then come back and ask specific questions.
|
|
|
|
|
Thanks for you reply and solution .
Is it possible for you to give me small example .
|
|
|
|
|
Why not just ask someone to write this for you? A big part of being a developer is to know where to find knowledge and learning how to do it yourself.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Why not just ask someone to write this for you? A big part of being a developer is to know where to find knowledge and learning how to do it yourself.
I agree with you
I just found enough examples how to archive it and I sent him/her link in my previous post.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
I made a simple query on google, and I got this result[^].
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Record a macro that gets the word count using Tools -> WordCount
and transform that to C#.
Easy
That's if you're OK with interop.
Just an irritated, ranting son of ... an IT guy.
At your trolling services
|
|
|
|
|
You can use the Word API. If you open a Word Document using the API, the DocumentClass has a property called "Words". This returns a Microsoft.Office.Interop.Word.Words class that has a count property.
See this page: Microsoft Office Development.[^]
Choose the version that you're working with and read up on the API. You can retrieve that information very easily using it.
|
|
|
|
|
Are there any C# FTP client libraries or components that support the XCRC command to verify integrity of an uploaded/downloaded file?
Thanks
|
|
|
|
|
how to get pixel value from fhoto if I use C# language program?
i need it at quickly to get my test scores
please.. help me..
|
|
|
|
|
|
ayu riza kurniawati wrote: i need it at quickly to get my test scores
Does that translate to what I think it does?
"Holy crap, im in an exam right now and need this answered so I can scape a pass mark"
|
|
|
|
|
Holy crap Batman! I do believe you are correct! We had best leap into action and try and save his ass!
Do you think he can wait until tomorrow, 'cause I'm off home soon...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
OriginalGriff wrote: Holy crap Batman!
You're not quite getting the gist of this Holy 'X' Batman thing. I think you may have been after something more like:
Holy test papers Batman!
or maybe
Holy exam timetables Batman!
or even
Holy flimflam Batman!
My current favourite quote is: Punch them in the face, see what happens!
-SK Genius
|
|
|
|
|
Here you go. Pass the test, join the experts.
for(int y=0; y<photo.Height; y++) {
for(int x=0; x<photo.Width; x++) {
Color color=x==y?Color.IamLazy:Color.IamIdiot;
MessageBox.Show("color="+color.ToString());
}
}
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
you think he caught that?
|
|
|
|
|
I'm not sure. He may not notice my solution when he gets distracted by CG providing an appropriate answer here[^].
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
hi all
i have write a class with the name : DataGridViewImageButtonCell that will inherited from DataGridViewButtonCell
the main problem is:
DataGridViewCellButton will flick when cklicked
what should i do in order to prevent this problem!
bay the way at the end of pain() method it will call
ButtonRenderer.DrawButton(graphics, buttonArea, buttonImage, imageArea, false, PushButtonState.Normal);
to draw my button
i checked its paint() method to increase its performance but that`s not the case any suggestion ?
|
|
|
|