|
Hi all,
I am writing a program that can notify users of certain event
by showing up a pop up window of the notifying message on the
desktop. The notification can be set to be triggered at a preset time.
The notification message can be triggered even that the program is not running, once it is set to be triggered at certain time by the program and then the program is shutdown. Is it possible ?
Thanks
Patrick
|
|
|
|
|
There are obviously 2 ways to do it (or there are 2 I know of).
You could use the Windows-Scheduler and have it start a program at a certain time. That program could then "notify" the user.
Or you could create a little "Taskicon"-Application which would be launched by the program and do your notification.
Basically, that is the way Real (RealScheduler/RealPlayer), ICQ and others do it: they have a small app running, which reacts to certain events.
Cheers
Sid
|
|
|
|
|
Venerable sir,.
I want a two dimensional matrix of boxes on my fom. what is the best way to do this ?. Also I need to add some text to each box and these boxes must be accessible from any button click event ? Please response to this thread as soon as possible.
thank you,
|
|
|
|
|
By your requirements, there's nothing special here. All you do is drag the boxes you want onto the form and arrange them how you want. All the properties and methods of the boxes are available to any code behind any of the controls on the form after that.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Where can I get Windows XP and Office 2003 graphic icons which I need to use in my application?
Brendan
|
|
|
|
|
|
Found a weird bug in an app that we are writing, and I narrowed down to this special case:
<br />
double a = double.NaN;<br />
Console.WriteLine("a = {0}", a);<br />
Console.WriteLine("(int)a = {0}", (int)a);<br />
Console.WriteLine("Math.Round(a) = {0}", Math.Round(a));<br />
Console.WriteLine("(int)Math.Round(a) = {0}", (int)Math.Round(a));<br />
We just moved to 1.1 so this appears to be a 1.1 issue.
For debug build, the output is:
<br />
a = NaN<br />
(int)a = 0<br />
Math.Round(a) = NaN<br />
(int)Math.Round(a) = 0<br />
For release build, the output is:
<br />
a = NaN<br />
(int)a = 0<br />
Math.Round(a) = NaN<br />
(int)Math.Round(a) = -2147483648<br />
It seemed for some reason Release does not behave the same and that was causing my problem. Granted I shouldn't depend on the cast to be 0 because it is NaN (should never depend on undefined behaviour ), but at least give me a consistent answer or throw an exception if NaN is used in Math.Round()?
Again when my runtime was 1.0 it seemed fine, so could this be just a weird bug?
|
|
|
|
|
Correction: I have verified and this happens on both 1.0 and 1.1. Looks like an issue that no one has noticed before?
|
|
|
|
|
Since Nan is not a real number, I wouldn't expect int casting to work predictably anyway. The easiest way around it is to check if a IsNaN before attempting the Round and int cast operations.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Venerable Sir.,
How can I have any array of Labels on windows form? If I could Can I change them at form design ? Please any one knows kindly explain to me with example code.
Thank you,
|
|
|
|
|
You can't have control arrays on a form, however you can have an event handler that fires on multiple events from multiple controls providing they have the same signature:
this.button1.Click += new System.EventHandler(this.button_Click);
this.button2.Click += new System.EventHandler(this.button_Click);
this.button3.Click += new System.EventHandler(this.button_Click);
this.button4.Click += new System.EventHandler(this.button_Click);
private void button1_Click(object sender, System.EventArgs e)
{
}
To change multiple controls at the same time at design time, click on the first, hold down CTRL and click on the other in turn, hit F4 and you'll get the properties that can be changes for all the selected controls at the same time.
Hope this helps
Tom
|
|
|
|
|
Venerable Dr.,
How can I have any array of Labels on windows form? If I could Can I change them at form design ? Please any one knows kindly explain to me with example code.
Thank you,
|
|
|
|
|
Hello techies,
I used DataGridControlButtonColumn to embed a button in datagrid.But the button is visible only if the focus goes to that particular column. I want the button to be visible all the time in all the rows.Any pointers to how to go about this problem wud be of utmost help.
Thanks
Jagan
|
|
|
|
|
Hi friends,
I would like to pass a combox.Items to other dialog form, because the dialog will have a combo which contains the same item collections of pervious form.
Suppose I have loaded all data classes from a folder to a combo, then now I going to pass the collection of data to other combo, what is the data type to pass then ?
e.g. using(SetupUIasf = new SetupUI(this.comboBox2.Items))
to ....
public SetupUI(ICollection datas)
am I right? or using ArrayList is better ?
thanks
|
|
|
|
|
Why not using ComboBox.ObjectCollection as that is what the ComboBox.Items property returns.
|
|
|
|
|
How could I call a c++ function from c# code, and pass a list of PointF data to the c++ function?
Thanx
|
|
|
|
|
I noticed that if I opened up a particular solution the properties tab in the designer would just show a blank white page. If I go to another solution the page is still blank. I found that if I close .net and open up a different solution the properties tab is ok, but once I go to the other solution the tab is always blank even if i go back to the first solution. This is a pain in the ass. I redid my solution and remade the projects by adding the old source files and soon enough the properties tab would go blank and once it goes blank it always is blank for that particular solution. I am doing work that relies heavily on UI so I will need the designer. I am using .Net Enterprise edition, this is just unacceptable for a $2000 program. I know this is definitely a bug in the Visual Studio .net, especially since I have various other controls that are not showing right in the designer but they are showing correctly when I run the program. Does anybody know a fix for this?
|
|
|
|
|
hello
how can use smtp server yahoo
and send emaile anuder emaile adrees
tankyou
|
|
|
|
|
hello
how i can creat smtp srever for yahoo
and sen email anader camputer
tankyou for replye
|
|
|
|
|
|
You should not use that unless you're running on a server or the machine has the SMTP Virtual Server installed with CDO configured correctly. SmtpMail uses a CDO server (CDO is a COM wrapper for MAPI, basically) and, thus, a CDO server must be installed. Currently Microsoft Exchange and Microsoft SMTP Virtual Services are two such CDO servers. Neither of those will run on Windows 9x/Me.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Heath Stewart wrote:
SmtpMail uses a CDO server (CDO is a COM wrapper for MAPI, basically) and, thus, a CDO server must be installed.
I didn't know that. Sorry!
But, if my app will run only on Win2K and WinXP, is it ok? even on a Windows Forms application?
Thanks!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Luis Alonso Ramos wrote:
But, if my app will run only on Win2K and WinXP, is it ok?
You need to make sure that Exchange/SMTP Virtual Server is configured right. If you need to forward to an external SMTP server, for example, you need to configure your local SMTP service to forward and make sure the other end accepts forwards for your host. There's a lot to consider when using an SMTP server.
Out of the box it may work for any code that uses SmtpMail but it really depends on your setup, which is outside the scope of this forum.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Do not use SmtpMail for the reasons I gave to the person who first replied to your question. It relies on CDO which is not available on every machine and you're application would not be portable.
Instead - if you'd have clicked on "Search comments" to search for similar questions and answers first - you should've found many alternatives, such as connecting to the SMTP server yourself and sending mail. It's actually quite easy.Sending SMTP yourself is actually very easy and many of the articles above will show you how. It's a matter of connecting to the domain's SMTP server (that's what the MX record is for) on port 25 using a TcpClient connection and sending commands and data in a particular sequence.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
If you set the font to "MS Gothic" and enter the text by hold down ALT and type "127" with the numeric keypad (not the keys along the top of the keyboard) and then release the ALT key, the caret postion is not moved forward, where as in MS WORD, NOTE PAD, TEXT PAD the caret position moves forwards.
Similarily for ALT + "128", ALT + "65376", ALT + "65440", the result for the richTextBox differs from others.
1.I need info regarding the reasons for showing different output for the same kind of input, among the editors.
2.Can RichTextBox editor output be made same as that of NotePad?
|
|
|
|