|
In fact, if you write an app that has a web browser control, it will get events for any web browser on the PC, so you could log it that way.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
so tanks sir.
really my control can handle mouse click and keyboard of all open pages in browser?
not need to use any hook to windows event?
can you introduce me some simple example.
sepel
|
|
|
|
|
Hi firends,im working with webform of C#.I would like to send mail with or without smtpserver.please kindly send me the code with explanation.Thank you in advance.
Hi,Im Razana
|
|
|
|
|
Hey Razana. YOu need to specify what version of C# you're using. But, you'd do better to type it directly into google. There are tons of examples on this on the web. Of course, without a server, you can't send mail, it's not possible.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi friends this is the error what im receiving in my application.
Server Error in '/afxisityro' Application.
--------------------------------------------------------------------------------
The transport failed to connect to the server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.
Source Error:
Line 35:
Line 36: SmtpMail.SmtpServer="afxisi.com"; //your real server goes here
Line 37: SmtpMail.Send(mail);
Line 38: // Put user code to initialize the page here
Line 39:
Source File: c:\inetpub\wwwroot\afxisityro\sendmail.aspx.cs Line: 37
These are the code what im using in my web application
MailMessage mail=new MailMessage();
mail.From ="rinooza@gmail.com";
mail.To="razanabanu@gmail.com";
mail.Subject ="HI";
mail.Priority =MailPriority.Normal ;
mail.BodyFormat =MailFormat.Html ;
mail.Body="Hi! ";
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "465");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "rojabanu.m@afxisi.co.in"); //set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "8A4904"); //set your password here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "false");
SmtpMail.SmtpServer="afxisi.com"; //your real server goes here
SmtpMail.Send(mail);
// Put user code to initialize the page here
Hi,Im Razana
|
|
|
|
|
razanabanu wrote: SmtpMail.SmtpServer="afxisi.com"; //your real server goes here
Gee - did it occur to you to read the comments and put a real mail server in there ? Like I said, you cannot send mail without a server.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Have a chat with your mail server administrators to ensure you have the correct mail server name and port. Also check that traffic on this port is not blocked from PCs in your organisation. Where I work, I cannot connect to the SMTP server from my PC, I have to use a development server when I want to test the sending of emails.
|
|
|
|
|
I have a Custom Control Listbox L1 and a panel P1. I need to handle Mouse Wheel movement on Panel P1 without giving it focus. I cannot use MouseWheel Event as it fires ONLY when the underlying control has focus.
Any suggestions?
Sukhjinder
|
|
|
|
|
I guess you need to catch the event where you have focus and pass it to your control.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi, One of my controls is a Custom ListBox L1 which handles MouseWheel Events for itself so I cannot intercept its mouse wheel events and use it. Also this does not look & feel elegant. Also I have few Push Buttons and I dont want to handle their mouse wheel events...
|
|
|
|
|
Well, if mouse wheel events only get sent to the control that has the focus ( as all mouse events do ), the only other solution I can think of is if there's an API you can call to get the wheel pos, on a timer. That's not elegant, it's ugly. And, I don't think it works, from memory, the mouse wheel events pass a number that tells you the direction the mouse moved in and how fast, not a number that defines a finite position.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to add flash to my Application plz provide a good link or suggestion.
|
|
|
|
|
No one will help you if you just demand link and don't search yourself.
There are several articles which show to embed and play swf files in winforms application. All the articles can be easily found by a quick google search.[^]
|
|
|
|
|
Hi All,
I am working on the project using c# 2.0. I am using the browser control in this project.
I need to get the contents of status bar of the browser and save into string variable.
Please help if you can.
Thanks in advance.
A.Asif
|
|
|
|
|
Hi,
WebBrowser class has a ProgressChanged event, and WebBrowserProgressChangedEventArgs
offers current and max byte counts.
|
|
|
|
|
Hi
I have a requirement to get the Word Document as BLOB(Binary Large OBject) and send this value to Message Queue and also save it back to another Word Document with another name.
The problem is I am not getting the Data correctly into a string and while saving it back to Queue or Word Document, the data is coming as some encoded characters.
Somebody please help me in solving this. If possible please give me a sample code in C#.
With Regards,
Abraham Chethuvelil
|
|
|
|
|
I have so many rows in thr grid
the cells contains 1.raja 2.raja 3.raja
I want to merge these raja into single cell raja
How to do it in .net 2003 grid
|
|
|
|
|
How to merge the cells in the grid of .net 2003
|
|
|
|
|
A datagrid ? You mean so that you have a layout where some rows have different size columns ? You can't.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi I have for quite some time used the below code to check if a computer was connected to the internet for my apps, but recently found out that that solution came short in companies using proxy servers. Is there any who know how to implement that in the below code?
Basically I thought of trying to get the proxy settings from the default browser or like. But what is "normal" standard? and do any have an easy solution to this below here.
public static bool CheckInternet()
{
try
{
System.Net.IPHostEntry objIPHE = System.Net.Dns.GetHostEntry("www.google.com");
return true;
}
catch
{
return false; // host not reachable.
}
}
|
|
|
|
|
Hi,
I am using a DataGridView and i want it to be always expanded to the whole control. I've set it as fill, but it never fills the whole screen like the error list in vs2005. Is there a property or do i need to manually work out the size and set it that way?
Regards,
Gareth.
|
|
|
|
|
hi,
I believe its a form that u have put your grid on. Now, when you go to the properties window of the grid, locate Dock property of the grid and set it to Fill,i.e., select the big central square shown in the dropdown list.
the result of this change is instantly updated on the form and now u wud be able to see the grid stretched to the entirety of the form, now at runtime, even if u resize the form, the grid would be always auto-resized to cover up the entire form.
|
|
|
|
|
moreover, if u want to stretch the grid to the whole screen, then set the FormBorderStyle of the form to None and WindowState to maximised alongwith the Fill of the dock property of grid. but be careful to provide an exit point on the form or grid somewhere, otherwise, u wud really be annoyed if u see the entire screen covered up by the silly grid and u r unable to access any other program.
|
|
|
|
|
Hi gladiatron,
I don't use a form, its in a panel. And when i said i had set "it to fill", i meant i had docked it already.
Regards,
Gareth.
|
|
|
|
|
Hi,
AutoSizeColumnsMode = Fill;
Regards,
Gareth.
|
|
|
|