|
Hi Giorgi,
I know the phenomenon, and I havent found any cure yet. My best guess is you would
have to send some message to each individual icon in the notification area.
You can aleviate the problem by increasing the chance the icons get disposed of
(e.g. in a finally block in Main) but you cant stop them piling up while debugging
and aborting in Visual Studio !
|
|
|
|
|
|
Thanks for the reply. Actually I have found an article about it here: http://www.codeproject.com/tools/ShellTrayInfo.asp but it will take quite some time and effort to convert it to c# so I'd like to find either easier way or another kind of workaround.
As for visual studio, if visual studio can't do it will we be able to do that then?
|
|
|
|
|
Thanks for the link, it will certainly allow me to create clean-up code; the
main problem remaining is when to run such code. Here are current ideas:
1. periodically, as a service; disadvantage is icon area changes independent of
user actions
2. a .NET app that is going to use a notifyicon could first try and remove
same icon(s); that solves the Visual Studio debug pile up.
I guess I'll go for 2; if it looks OK I'll probably write an article...
Giorgi Dalakishvili wrote: As for visual studio, if visual studio can't do it will we be able to do that then?
I dont think they are interested in such details, it wont make them sell
more software ...
|
|
|
|
|
|
I would try a web browser, either the new WebBrowser class or the old docviewer
(which needs files Interop.SHDocVw.dll and AxInterop.SHDocVw.dll but also works under .NET 1.x).
|
|
|
|
|
TNKS
kobkob
|
|
|
|
|
HI MAN
where do i find
Interop.SHDocVw.dll and AxInterop.SHDocVw.dll ??
kobkob
|
|
|
|
|
Hi,
I recommend you use WebBrowser class (I havent, my solution dates from years back);
if you must have something that runs (also) on older .NET versions, shdocvw is the way to go.
I guess my code is based on some CodeProject article although strangely enough
it does not refer to one; it does refer to chapter 3 in the book
"Professional Windows GUI Programming Using C#"
by Jay Glynn, but I dont have it at hand.
I suggest you search CodeProject for "shdocvw.dll", without a good article on it
you wont manage, there are quite some issues; also according to my notes the two
files mentioned can be built by using AxImp.exe (part of .NET SDK)
onto file ...\system32\shdocvw.dll (should be present in XP)
Good hunting !
|
|
|
|
|
again
TNKS MAN
kobkob
|
|
|
|
|
Hi I am currently using servel pins (CTS and RTS) of my serial port for data transfer with a program I wrote in Visual C# 2005 under Windows XP.
I would like to write a program to send data over the unused pins.
Is it possible to write to individual pins (independently) using Visual C#? How is this done because I am stumped?
|
|
|
|
|
Hi,
I have a web form in C# and I am using SmtpMail to send the form information to a bunch of recipents. I have been asked to add the sender/requester e-mail address to the list of recipents. Is this possible?
Thanks in advance,
Jenn
Below is a sample of the code that I have to work with:
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
using System.Data;
public class myEmail:Page
{
// Declare variables
protected Label lblMessage;
// this event retrieves form variables and sends email
protected void sendmail(object sender, EventArgs e)
{
try
{
MailMessage objMailMessage;
string strHTMLBody;
// Create the HTML Message Body
strHTMLBody = "<title>FORM TITLE" +
"Writer's E-mail: " + HttpContext.Current.Request.Form.Get("name") + " " +
"QA E-mail: " + HttpContext.Current.Request.Form.Get("QAname") + " " +
"Manual Title: " + HttpContext.Current.Request.Form.Get("title")+ " " +
"Version/Release Number: " + HttpContext.Current.Request.Form.Get("version")+ " " +
"Number: " + HttpContext.Current.Request.Form.Get("dn")+ " " +
"";
// Create the Mail Message
objMailMessage = new MailMessage();
objMailMessage.From = HttpContext.Current.Request.Form.Get("name");
objMailMessage.To = "Recipent1@work.com;Recipent2@work.com";
objMailMessage.Cc = "Recipent3@work.com;Recipent4@work.com";
objMailMessage.Subject = " Form - " + HttpContext.Current.Request.Form.Get("dn");
objMailMessage.Body = strHTMLBody;
objMailMessage.BodyFormat = MailFormat.Html;
// Send the Mail Message
SmtpMail.SmtpServer = "workstmp.ibi.com";
SmtpMail.Send( objMailMessage );
lblMessage.Text="Record has been sent.";
}
catch
{
lblMessage.Text="Oops! Did you enter your e-mail address? ";
}
}
}
Jenn
|
|
|
|
|
As long as HttpContext.Current.Request.Form.Get("name") is a valid email address, or can be resolved by the server, then yes.
only two letters away from being an asset
|
|
|
|
|
Thanks Mark.
Yes, it is a valid e-mail address. The only question I have is, how? I have tried a combination of code, but no good. For instance:
objMailMessage.To = "person1@work.com;person2@work.com";
objMailMessage.Cc = "person3@work.com;[person2@work.com" + HttpContext.Current.Request.Form.Get("name");
OR
objMailMessage.To = "person1@work.com;person2@work.com";
objMailMessage.Cc = "person3@work.com;[person2@work.com" + ("name");
Thanks again,
Jenn
|
|
|
|
|
objMailMessage.Cc = "person3@work.com;[person2@work.com" + HttpContext.Current.Request.Form.Get("name");
Typo or are your forgetting the ; after "person2@work.com"?
only two letters away from being an asset
|
|
|
|
|
Yup, it was a typo! Got it to work. Thanks again for your help.
-Jenn
|
|
|
|
|
So I have a treeview that has 3 root nodes. We'll call them Root1-3.
All other entries that will be put in the treeview within the nodes have no order.
Now, if I have something that looks like this in that treeview:
Root1<br />
<\t>Node1<br />
<\t>Node2<br />
<\t>Node3<br />
Root2<br />
<\t>Node4<br />
<\t>Node5<br />
Root3<br />
<\t>Node6
If I were to select Node3, how can I determine what the index (3 I would think, r 2, depending if it's 0 based or not...) of my selected item is??? Is that easily possible?
|
|
|
|
|
TreeView.SelectedNode returns the node which node is selected. If that is not enough you can get it all nodes by TreeView.Nodes and then find out index of selected node.
|
|
|
|
|
Yeah... about that finding of the index of the selected node... THAT is the part I'm having issues with. And for whatever reason, I simply can NOT figure out how to do it...
Is there an easy way to do so??? Or is it slightly more complex???
|
|
|
|
|
So I feel like a total retard now...
Ever lose your keys, spend like, 30mins looking for them, only to find them in your pocket? I just did the same kind of thing.
I was looking for:
treeview.SelectedNode.Index
so there ya go... all done...lol...
|
|
|
|
|
Hi people,
I need set the SetIr bit, this bit i manipulate when creat a file, but if i have the object SerialPort in dotNet and a d´nt change acess this bit! If anybody nose change this bit in this object?
This example i use to change this bit, but is very complicate make settings to the creat file to comunicate 19200 in baud rate...etc..
<br />
EscapeCommFunction(IntPtr, CommEscapes.SETIR)
Thanks people
|
|
|
|
|
hi all
i was wondering if there was a way that i could make a C# front end to send unix commands to a remote server. We have a few things were we need to unlock files in a db or change a users password but the rest of the staff forgets what the commands are wand what to do.
i was wondering if i could just have it as a textbox for entering text then send the command to the session
thanks
Crash
|
|
|
|
|
C# is putty in your hands
If you can establish communications with the remote system I don't see why it wouldn't be possible.
only two letters away from being an asset
|
|
|
|
|
putty is a telnet program that supports ssh
i guess i should have asked if anyone knows how to telnet or ssh into a server useing C#
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
|
|
|
|
|
anyone or should i start a new tread?
|
|
|
|