|
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?
|
|
|
|
|
Hi ,
I use MS Word in my project , i want to write the letter "b" to the 20. row and 40. column of Word Document. Can i make this process , can you help me ?
Good coding ,
Thanks
|
|
|
|
|
What you're looking for is word automation:
http://www.codeproject.com/csharp/Simple_Ms_Word_Automation.asp
http://www.c-sharpcorner.com/UploadFile/amrish_deep/WordAutomation05102007223934PM/WordAutomation.aspx
Gideon
|
|
|
|
|
Hi,
How do I the number of a particular month with its related numbers of days??
Regards
ma se
|
|
|
|
|
System.Globalization.GregorianCalendar.GetDaysInMonth(year, month)
only two letters away from being an asset
|
|
|
|
|
[rant] WTF is with that? I can't use a property of an object as an out parameter to a method call? OK, I suppose it's because properties are actually methods. Still, that sucks, IMO. [/rant]
Marc
|
|
|
|
|
hmmmm ya know i never thought of trying that!
I always assumed it had to be a field that was being passed through.
|
|
|
|