|
If it returns -1, it ain't there.
Are you sure there's no Text property in the myRich object?
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
I set a watch for the value of myRich.Text property. Then I noticed that an earlier called method cutoff part of the <head> element's starting tag so naturally the Find method did not find it.
Thanks,
Mark
|
|
|
|
|
This worked OK for me. I put the following text into a RTB and it found the details with no problem.
<html>
<head>
<some tesxttlkajsdlfj asdf>
</head>
</html>
If you debug your application, what does myRich.Text contain when you step into this method?
|
|
|
|
|
Hi,
I want my program to close a MessageBox automatically after x seconds, whether the user answers to MessageBox or not.
How is that?
thanks
|
|
|
|
|
Write your own messagebox (just create a dialogform)
Put a timer on it and close the form after x seconds has past.
There might be a better way but this is how I would do it.
|
|
|
|
|
so how can i assign my icon to that as easy as MessageBoxIcon.Information or MessageBoxIcon.Error ... does?
should i use my own PictureBox for it and make all fundamentals from the begining, or is there any other way that i use right that enum (MessageBoxIcon) instead?
|
|
|
|
|
AFAIK, you have to create your own form and use some methods to draw the icon on it. This form can return a DialogResult as message box does.
|
|
|
|
|
If you decide to create it yourself I recommend doing it from scratch.
But the other reply has a link to a nice article that does exactly what you want.
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
Hi,
please send me code sample for uploading a video in c# .net
|
|
|
|
|
This is NOT rentacoder.com
Nobody is just going to give you code.
You need to do your own research, write your own code, try to get it working and then when/if you get stuck on a certain piece of code you can post it here (with the error message if any) and people will try to help.
That goes for both your posts.
|
|
|
|
|
Manilipa wrote: please send me code sample for uploading a video in c# .net
Sure.
public interface IUpload
{
void UploadItem(Stream value);
}
public class UploadVideo : IUpload
{
public void UploadItem(Stream value)
{
SaveStream(value);
}
private void SaveStream(Stream value)
{
}
} There - all you have to do is provide some code to write the stream to whatever medium you're saving it to, oh and a mechanism to get the data into your UploadVideo class, but that's trivial implementation detail. I'm sure a rocket scientist like yourself won't have any problem with this.
|
|
|
|
|
Maybe you should read the first article and adapter yourself to ask question properly.
LuckyBoy
|
|
|
|
|
Hi,
please send me code sample of email functionality with attachment in c#.net
|
|
|
|
|
Is Google on holiday today?
only two letters away from being an asset
|
|
|
|
|
|
|
While that is seriously cool, I don't think you're doing him any favors by further automating it.
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
Oh, that's simple, all you need to do is to write a system mouse hook, then just grab the mouse, open a mail client, attach a file and click the send button.
But hey, that's all in code
Regards,
Lev
|
|
|
|
|
Hi,
I'm writing a c# application that imports a c++ dll.
The next code is in the c++ dll:
// Maximal size of allowed log
#define ASTRO_MAX_LOG_LENGTH 1000
I need to use this defined value in my c# code.
How can I do that? Is there some way to use DllImport for a defined value?
Thnks
|
|
|
|
|
No, there isn't. You'll have to define these constants in your C# code yourself.
|
|
|
|
|
I want enumerate list of files and folders of intranet network folder, I tried using directoryInfo and fileInfo, but unable to get list.
I tried with following code
DirectoryInfo di = new DirectoryInfo(@"\\officepc\myprograms")
This code doesnt works.
when i paste \\officepc\myprograms in windows explorer i can see files.
RN Softech is a goan software development company, based at Goa, India.
|
|
|
|
|
|
Hi
I am able to access the shared folders fromn the same.When u access it from explorer ,whether it asks any password or not?
One more thing,After instantiating DirectoryInfo use exists property to check whether it has read the folder or not as
di.Exists
if true then enumerate it else there is some problem in reading.
Cheers!!
Brij
|
|
|
|
|
Rajesh Naik Ponda Goa wrote: This code doesnt works.
A little more explanation might helpful. It doesn't return results, it throws and exception, "doesn't work" is a bit vague?
only two letters away from being an asset
|
|
|
|