|
|
Hi there,
I need some basic WinXP icons as Refresh, Open, Print etcetera.
Where can I find them?
Thanx in advance
Tom
|
|
|
|
|
Email me and I'll send you some via email, I can't find you email in your profile
|
|
|
|
|
can you possibly send me some basic win xp icons too ? email them too cuteone_97058@yahoo.com
jesse m
|
|
|
|
|
|
I send a email from a C# form.
Example below.
using System.Web;
using System.Web.Mail;
try
{
MailMessage MailMsg = new MailMessage();
MailMsg.From = "dorina@tradelabs.ro";
MailMsg.To = "dorina@tradelabs.ro";
MailMsg.Subject = "test";
MailMsg.Attachments.Add(new MailAttachment("C:\\Test\\Noutatile saptamana.htm"));
SmtpMail.SmtpServer = "name of server";
SmtpMail.Send(MailMsg);
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
It works.
BUT when Attachment file name containts ASCII extended characters
(example MailMsg.Attachments.Add(new MailAttachment("C:\\Test\\Noutaţile săptămână.htm"));)
then the mail can't be send and I get a "Could not access 'CDO.Message' object." exception.
How can be solve this problem?
Thanks, Dorina
dorina
|
|
|
|
|
Hello,
How do I do to an application when minimized flash in taskbar ?
Thanks for your help.
|
|
|
|
|
The API you should look at is Flash or FlashEx.
Here[^]'s an article on how to use the API.
Here[^]'s an article from EricG on using libraries from .NET generally.
HTH
Cheers,
Simon
"The day I swan around in expensive suits is the day I hope someone puts a bullet in my head.", Chris Carter.
my svg article
|
|
|
|
|
Does anyone know if c# has an Idle event that is called continuously while the application is in an idle state?
The Application.Idle event occurs when the application finishes processing and is about to enter the idle state.
I need one that will be called repeatedly...
|
|
|
|
|
Can any one tell me how to get to the selected text in an edit/richedit control (or any control having text that could be highlighted) of a foreground window from my own application? What about accessing a selected text in IE browser? One can see such use in Microsoft Boolshelf -- highlight any word in any window and then click on the QuickShelf icon in the system tray to get the meaning of the word! Tomasz Sowinski in the VC++ message board mentioned earlier using a combination of (1) calling the WIN32 API GETFOREGROUNDWINDOW to get a handle to the window and (2) sending the EM_GETSEL window message to get a pointer to the selected text. But this limits only the case when the foreground window is itself a edit/richedit control.
Would appreciate very much any answers to these questions!
Gene Yu - gene4yu@yahoo.com
|
|
|
|
|
I am attempting to create a piece of code that will drop through from a root directory and list all files and subdirectories within it (regardless of the directory depth)
As I see it the only way I can do this is through some sort of recursive code, which at the moment elludes me, has anybody come across anything like this before?
At the moment I have the following, which is butt-ugly and doesnt come close to what I need :
<br />
public string ARCHIVE_PATH = ".\\archive\\";<br />
private void RecurseDirectories()<br />
{<br />
listBox1.Items.Clear();<br />
DirectoryInfo dir = new DirectoryInfo(ARCHIVE_PATH);<br />
DirectoryInfo[] diArr = dir.GetDirectories();<br />
foreach (DirectoryInfo dri in diArr)<br />
{<br />
listBox1.Items.Add(dri.Name);<br />
DirectoryInfo drill_dir = new DirectoryInfo(ARCHIVE_PATH + dri.Name);<br />
DirectoryInfo[] drill_diArr = drill_dir.GetDirectories();<br />
<br />
foreach (DirectoryInfo drill_dri in drill_diArr)<br />
{<br />
listBox1.Items.Add(drill_dri.Name);<br />
}<br />
} <br />
}
|
|
|
|
|
|
|
Hi,
I wonder if there is an equivalent to __DATE__ and __TIME__ in c#?
I just want to show the compilation date/time in an about box.
Martin Leonhartsberger
mleonhartsberger@a1.net
|
|
|
|
|
Not sure how, but attributes may hold the answer
Sorry, couldn't be more vague if I tried, but its worth a shot.
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Can you please explain a little what you exactly mean with "attributes" ?
Martin Leonhartsberger
mleonhartsberger@a1.net
|
|
|
|
|
Attributes are a way to add bits to the metadata for types. For example, when you're developing an ASP.NET Web Service you use the attribute [WebMethod] to effectively mark it to be used.
So, you could develop a class like so (taken from code by Jeff Prosise):
[AttributeUsage (AttributeTargets.All, AllowMultiple=false)]
class BuildDateAttribute : Attribute
{
public string BuildTime;
public string BuildDate;
public BuildDateAttribute (string BuildDate, string BuildTime)
{
this.BuildDate = BuildDate;
this.BuildTime = BuildTime;
}
}
This allows you to include a BuildDateAttribute to the metadata (the example this is taken from is for code revisions). I'm not sure, but you may be able to include code to automatically determine the date and time.
Then you can use it as follows:
[BuildDate ("12:01","13/03/2002")]
class TestClass
{
.
}
Then you can obtain the metadata as follows:
MemberInfo info = typeof(TestClass);
object[] attributes = info.GetCustomAttributes(false);
if (attributes.Length > 0)
Console.WriteLine( attribute.BuildDate );
I've not tried the code myself but it ought to work. If you do give it a go and get it to automatically insert the current time at build then it'd be great to put as an article on CP (in my opinion).
Hope that helps, let me know how it goes.
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
There isn't anything built into the framework to get that information, but there is a formula used to create the build and revision version numbers for the the assembly. Unfortunately this means that in order to make use of this you have to let those be generated, which can be a pain in the ass if you give them a strong name.
I don't remember what the formula is, but if you check the DOTNET list archives around the last week of December 2001 and first week of January 2002 someone mentions it in reference to decoding when the 1.0 framework assemblies were built.
James
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
|
|
|
|
|
James T. Johnson wrote:
I don't remember what the formula is, but if you check the DOTNET list archives around the last week of December 2001 and first week of January 2002 someone mentions it in reference to decoding when the 1.0 framework assemblies were built.
How do you manage to remember that type of stuff James? Don't you have anything better to do? Weren't you working on a book with Tom and Nish? What about school?
Seriously man, get a life!
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
Hi!!
Ok. So we have finished coding. The app runs fine.
We want to deploy the dot net app written in c#.
It has a video control found in the visStudioNET controls.
Here is the question:
How do proceed, step by step, to produce for our app and executable
that will install the dotNET framework on win98-2k-xp
and afterwards run our program? ..you know, like normal apps should do!
Its my first, actually.
We need a smooth install, help us, please
Thanks!
Orlanda
Coding is a family business
|
|
|
|
|
Orlanda Ramos wrote:
How do proceed, step by step, to produce for our app and executable
that will install the dotNET framework on win98-2k-xp
and afterwards run our program? ..you know, like normal apps should do!
You have to make sure the .NET run-time is installed before the app can run. Usually it means redistributing dotnetfx.exe available from the MS site.
As you probably know, we have the Windows 98 special effect ( ) : you have to install a localized version of the .NET run-time instead. Look here[^] for more details. Those localized packs are available here[^].
You can pass parameters in the cmdline along with dotnetfx.exe to check against an already installed run-time, install silently, ...
Another way to make your life easier is of course to provide the customer a link to MS Windows update, where this service provides the appropriate upgrades according to the OS.
|
|
|
|
|
I have also found this helpful[^] article.
|
|
|
|
|
I am creating a networkstream and trying to send a bitmap.. ie.
NetworkStream DataWriter = m_ClientSocket.GetStream();
DataWriter.WriteLine(m_TestImage); //where m_TestImage is a Bitmap;
Is this incorrect or should i some how break it up into peices before i send it...
My problem is I don't know how to recieve it...
I have a thread that checks for DataStream.DataAvailable so I know when the stream starts. But I know it doesn't all come at once...
Could someone explain to me how to do this... I think it has something to do with NetworkStream.BeginRead();
If someone could help me that would be amazing....
Thanks for your time,
Steve Nelson
|
|
|
|
|
I'm looking for opinions here, so if the subject interests you, please reply. In the following post, runtime compilation is used to mean simple-to-use, on-the-fly access to the compiler, beyond eval statements, extending to the ability to compile full methods, classes, and assemblies.
1) Is runtime compilation worth the overhead (both in actual runtime cost and in time to implement/use)?
2) Is the ability to unload a previously loaded Assembly (possibly automatically, integrated into the garbage collector) important?
3) WARNING, Long Question: I'm building a .NET library (in C#) which gives full, optionally automated, simple, on-the-fly access to the compiler. The actual compiler access is done... However, building the complicated Remoting/AppDomain infrastructure is taking a while. Without this, there is no way to unload a runtime-compiled assembly before the main application ends. Is this final feature desirable and/or necessary for a good runtime compilation library?
Thank you for your time,
Eric Astor
|
|
|
|
|
It is now months since you posted this message. I hope you read this. Answers: 1) yes 2) not usually 3) no, not necessary. An interpreter you describe is very useful for testing. If that is the main purpose, memory leakage is not so important. Far more important is the user interface -- the command-line, or GUI.
Regards,
Frank Hileman
|
|
|
|