|
check this
http://www.c-sharpcorner.com/1/send_mai1l.asp
http://deedee.brainstream.net/SimpleSmtpMailCExampleASPNET.aspx
|
|
|
|
|
Hello
I have found some information on another post that told me that you cannot directly send e-mails from the outside to hotmail, yahoo, etc. In order for you to do this you have to send a username and password to be authenticated for hotmail, yahoo, etc. I thought it was possible to send e-mails to these accounts.
I did what you suggested and my code is similar to yours. I deleted the mails from inetpub/mailroot/queue and restarted IIS. But still did not work.
Any other suggestions about this I would be most grateful.
Thanks,
Steve
|
|
|
|
|
I am interested in playing around with some IO in C#. Could someone point me out to some articles about IO with a USB port in C# 2.0?
Thanks,
Sean
|
|
|
|
|
The only thing I've come across is IC#Code's #usblib
But I don't think it's been updated in a long time.
Another alternative is to use the SerialPort class and specify a usb port to open (this works in the old MSComm control). I'll try and remember how the ports are named , this will allow you to use the USB port like a Serial Port
Ed
|
|
|
|
|
Thanks
|
|
|
|
|
QuickUSB is what I used. But, it's driver interface was only exposed/documented/exampled in C++. SO, I made a handy C# wrapper class. But of course, this only works with quickusb usb 2.0 chips...
/\ |_ E X E GG
|
|
|
|
|
Anyone know of anything that causes a window form to lose its handle and regenerate it? Got a form whose handle changes after form load and wondering if there is any common cause?
Thanks
Aj
|
|
|
|
|
If I am not mistaking a form's handle does not changes. It represents a global unique id of a window, allocated at the creatin of the window. But if you use a static field and compare it withe various instance hadles you will have variations. (ie. create a form, dispose it, and recreate it).
But this is theoretically, meaning that Microsoft may do whatever wishes with all the resources.
-- modified at 14:21 Sunday 5th March, 2006
It proves that actualy a handle may change in the lifetime of a form. Quoting MSDN[^]:
IWin32Window.Handle Property
Remarks
Depending on the implementer, the value of the Handle property could change during the life of the window.
-- modified at 15:01 Sunday 5th March, 2006
It proves that I was kind of right... Here are some other usefull infos about the way a handle can change : MSDN Link[^]
protected internal static readonly ... and I wish the list could continue ...
|
|
|
|
|
Thanks for the reply. That was my understanding of a forms' handle too - a new handle per form instance and it's fixed. But for some strange reason this form gets two during form load (during and after).
If i subcribe to the Handle created and destroyed event its illustrated. I do have some old ActiveX interop controls on the form perhaps they are responsible, also the form becomes an MDI child. However i was just wondering whether there was some kind of common reason why this would occur. I am pretty certain the MDI aspect isn't the issue.
I'll have a read of the MSN resource - will let you know if i get to the bottom of it.
Thanks again
Aj
|
|
|
|
|
Could you please email me your project (or the part of your project integrated into a smaller one) that changed the hwnd of the form here : vlastanciu@yahoo.com?
You have startled me
protected internal static readonly ... and I wish the list could continue ...
|
|
|
|
|
Windows allocates a static handle whenever you create a window, that is valid for the lifetime of the window.
At what point are you setting the form as an MDI client? When you set the MdiParent property .NET has to recreate the form from scratch as it changes it's underlying class type - hence the new handle - the OS treats MDI clients differently to normal Windows and has to process extra messages etc.
In short, if your using a form as an MDI client do it before anything else as it will only cause you grief if your depending on the handle being constant.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Look at the Handle related events in the Form class.
|
|
|
|
|
Hi dear friends.
I've ported a native (Unmanaged) C++ DLL to managed and used in .Net 2003.
Now I'm going to use this ported DLL it in .Net 2005. I change the compiler option /clr to /clr:oldSyntax and compile with no error.
But at run-time I get a exception when I want to use the DLL in a C# client.
The error message is:
MyDLL.dll is attempting managed execution inside OS loader lock. Do not attempt to run managed code inside a DLLMain...
Anyone can help me?
|
|
|
|
|
I have a small doubt about Serialization in a scenaio.
When a WebPage is accessed, with its url (like http://xyz.aspx),
does any kind of serialization happen in the process of the accessing the webpage ?
I have read that objects will undergo serialization when accessed across boundaries. But not sure of this scenario.
Please clarify.
ThankYou,
Regards.
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Have a doubt with the functionality of 'string' type.
As String types are immutable we should not use string types, when large string manipulations are involved. This is understood.
But I assume StringBuilder as a class will use either of two .NET types,
char or string to store the data. Then how is StringBuilder mutable?
Please clarify how StringBuilder works internally.
ThankYou,
Regards.
|
|
|
|
|
Please don't cross post.
The string builder uses string methods not publically available to change the contents of a string. As the string builder never exposes the string it uses internally for storage, it can safely change the contents of the string.
You can download .NET Reflector[^] and examine the code of the string builder.
---
b { font-weight: normal; }
-- modified at 8:09 Sunday 5th March, 2006
|
|
|
|
|
The StringBuilder can be used with WinAPI in getting string values from parameters.
For Example:
<br />
[DllImport("user32.dll", EntryPoint="GetClassNameA")]<br />
private static extern int GetClassName ( <br />
int hwnd,<br />
Text.StringBuilder lpClassName,<br />
int nMaxCount);<br />
Regards,
1tg46
Check out 3D Game Development with Dark Basic Professional [^]programming.
|
|
|
|
|
Hi all,
I am going to run my windows application in touch screen, i want to change the scroll bar width. so that the user can operate through their hands. there is one setting available in windows where we can change the scroll bar size but it is applied to all programs. i want to have a change on my application. also user has to manually set this settings. is there any alternative way to increase the size of scroll bars?? If i go for the custom scrollbar how can bind it with listbox, textbox and all other controls?? (any sample code)
if Changing windows settings is the only way, then is it possible to change the settings using C# code. so that when the user install my application i will automatically set the scroll bar width to some size.
i saw one class SystemInformation.VerticalScrollBarWidth but this gives a readonly properties.
Please help.
TIA
Regards,
Srini
|
|
|
|
|
As far as I know the folks in Redmond added some support for skinning to Windows Forms application created for the .Net framework. Most of the controls have a FlatStyle property and there are some settings that you have to enable in the assembly manifest. Unfortunately none of these things are anywhere near well documented. I might suggest using the MS managed forums to get some "professional" assistance as this may prove to be a tedious task to implement.
I wish you the best of luck and in case you learn of an elegant solution, don't hestiate to *share*
Mik
www.muzikstor.com
|
|
|
|
|
Helo every one,
I have devoleped an application in C# .Net through which I trasfer the data through Com Port. But the data can be easily captured using com port monitoring tools. Can any one help me to know how can we block the Com Port monitoring tools from capturing the data.
regards,
Sandeep
|
|
|
|
|
Just for a hint Why dont you Use Encryption...
Although You still need to fire wall your port or protect it.
|
|
|
|
|
Cbhkenshin's suggestion to use encryption is probably the best bet - There are so many ways a COM port monitoring tool could work it isn't feasible to make a program which would block them all.
Steve
|
|
|
|
|
You really can't. It's kind of like plugging hole in a pipe with your fingers. You've only got 10 of them and there are about 20 holes...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there an event having something to do with a tab change(organizational tab)? I need to update a list box when the user changes to a specific tab.
Thanks for the help!
|
|
|
|