|
http://www.codeproject.com/KB/cpp/BitArray.aspx
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks i eventually used the
BitArray(byte []) cotr.
and then the Get(index) Method
Thanks anyway
Have Fun
Never forget it
|
|
|
|
|
program:
System.Web.Mail.MailMessage myEmail = new System.Web.Mail.MailMessage();
System.Web.Mail.MailAttachment attach = new System.Web.Mail.MailAttachment(path + ".zip");
// SET MESSAGE PARAMETERS
myEmail.From= "ella@yahoo.com.cn";
myEmail.To = "sellina@yahoo.com.cn";
myEmail.Subject = "Product Availability Notice";
myEmail.BodyFormat = System.Web.Mail.MailFormat.Html;
myEmail.Body = "The sunglasses you expressed interest in are now in stock.";
myEmail.Attachments.Add(attach);
myEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
myEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "ella");
myEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "123456");
//SEND THE MESSAGE
System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com.cn";
System.Web.Mail.SmtpMail.Send(myEmail);
myEmail = null;
attach = null;
error:
System.Web.HttpException: demand the name of smtp server,but don't find in configure
|
|
|
|
|
You do indeed need to set your SMTP server to be able to send mail. Do you mean you don't know the server to use, or you don't know how to set it in code ?
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 )
|
|
|
|
|
System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com.cn";
I want to use the yahoo server,but it failed when trying to link the server
|
|
|
|
|
Good Morning Everyone
Am new to C# but growing each and everyday by learning new things and different ways to do things from vb.net. i have some Books in C# and Properties are used much to Explain example. When am working with vb.net , i use Functions a lot than Properties, please tell me.
Is it a good Programming Practise to use Methods only?
Why do we use Properties, if its Simple to use Methods?
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
First and Basic , Properties help you store the Data and methods doesn't
Thanks
Develop2Program & Program2Develop
|
|
|
|
|
Navneet Hegde wrote: First and Basic , Properties help you store the Data and methods doesn't
That is rubbish. There is nothing stopping you storing data with methods.
|
|
|
|
|
my apologies for that,
How is that data saved in Class and How can I retreive that info?
Develop2Program & Program2Develop
|
|
|
|
|
Navneet Hegde wrote: my apologies for that,
How is that data saved in Class and How can I retreive that info?
The same way that you store it in a property. Use a field to store the value in. As Colin points out below, a property simply wraps hidden methods so if you have a get/set property, you actually have two methods, 1 called get_... and the other called get_...
|
|
|
|
|
Vuyiswa wrote: Why do we use Properties, if its Simple to use Methods?
Because properties describe a certain type of functionality: To set or get data.
Also, remember that properties are really methods underneath. For example, if you look at certain .NET languages like C++ with managed extensions you'll see that you access properties as if they were methods. If the property is called DateOfBirth the property method names are get_DateOfBirth and set_DateOfBirth .
|
|
|
|
|
Thanks Colin
i get your point
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
As people have mentioned, properties dont offer you anything more than a pair of get_foo, set_foo methods would.
There is a difference in the semantics. Properties are expected to be determanistic, repeatable and have no side effects.
When using... say... a grammar parsing API, I would expect the Token property to keep returning the same thing until I called "MoveNext" or something similar. I would not be surprised if a method called Token() kept moving to the next token in the stream each time I called it.
|
|
|
|
|
Thanks i get your point
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Just FYI. "OOPS" is something you say when you make a mistake like "Oops, I dropped my pen". OOP is a TLA for "Object orientated Programming".
Drop the S.
|
|
|
|
|
Thanks i will not Forget that
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
HI .,
I have a string like "[Hi All]"
and now I want to Replace Characters [,], and Space
I am Trying to Do it :
String.Replace(new Char[] {'[',']'},new Char[] (''})
But This is giving error .
Question Can we do it this way , I mean replace array of Characters with Space in one Go.
Thanks in advance
Develop2Program & Program2Develop
|
|
|
|
|
What error does it give? Looks to me like you've just got the syntax very very wrong.
What you need is something more like:
myString.Replace('x', 'y');
Which would replace all instances of x in that String with y.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Try this...
result = MyString.Replace('[','').Replace(']','')
|
|
|
|
|
here is code :
string string1 = "[Hi All]";
string1 = string1.Replace("[","").Replace("]","").Replace(" ","");
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi All,
I want to activate a form when its deactivated. I have tried with this.Activate() in Form1_Deactivate() event. This did n't work for this task.
Could any body help in this task?
Thanks,
SMARTech
|
|
|
|
|
see this
<br />
Private Function CheckExistance(ByVal strFormname As String) As Boolean<br />
'determine if the form already exists<br />
Dim frmtest As Form<br />
Dim blnFound As Boolean = False<br />
'does form already Exists?<br />
For Each frmtest In Me.MdiChildren<br />
With frmtest<br />
If .Name = strFormname Then<br />
.Activate() 'Activate Previous instance.<br />
blnFound = True<br />
<br />
<br />
End If<br />
End With<br />
Next<br />
Return blnFound<br />
<br />
End Function<br />
<br />
And use the Above Function Like this
<br />
Dim blnFormExists As Boolean = False<br />
<br />
blnFormExists = CheckExistance("Form1")<br />
If Not blnFormExists Then<br />
Dim objform1 As New Form1<br />
With objform1 <br />
.MdiParent = Me<br />
.Show()<br />
End With<br />
End If<br />
Hope it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
hmmm.... its C# forum
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
thanks for your quick response,
but its not working for me.I'l explain the case little bit clear.
Suppose, Form1 is running. If we open task manager also, the focus should be on Form 1 only but it should not allow us to access task manager,
any idea please
Thanks in advance
SMARTech
|
|
|
|
|
AFAIK, there's no way to prevent access to Task Manager. It's a separate application running in it's own process space, so there will always be a way to get to it. Similarly, you can't prevent people getting access to other applications - it would be a very poor design if you could because this would interfere with the way people want to work. In other words, if you could do this there would be nothing to stop a virus writer from ruining your program.
|
|
|
|