|
i need to send mail from my application it's windows application vb.net 2005
i need to know what to pass to SmtpCtlient is it take parameters
this is my code i need to know why it's doesn't send mail
i have that error "the smpt was not specified "
this is my code
*****************************
Try
Dim objmessage As New MailMessage("md@gmail.com", "md@gmail.com")
objmessage.Body = "test"
objmessage.Subject = "test"
Dim t As New SmtpClient
t.Send(objmessage)
Catch ex As Exception
MsgBox(ex.Message)
End Try
md_refay
|
|
|
|
|
You have to set the Host property of SmtpClient (use the correct IP ot name,
something like "relay.skynet.be"); you can do this also thru one of the
SmtpClient constructors.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
would like to connect my computer with another on lan and perform a voice call using vb.net
|
|
|
|
|
Google for "voice chat vb.net" and you'll find a bunch of examples. Or, use something off-the-shelf, like Yahoo Messenger.
|
|
|
|
|
would like to connect my computer with another on lan and perform a voice call using vb.net
|
|
|
|
|
Not sure if this is any use but Microsoft Netmeeting SDK allowed me to do this with C++.
It is a COM object so have a look at this.
Hope this helps
Dan
|
|
|
|
|
Hello
I tried to assign the value of a formula in crystal report from vb form.
but i don't know how to do it?
So any help will be usefull
Thanks in advance
Assaf
|
|
|
|
|
Hi
can i prevent user from left the current row before check some values ..
this is a so important optoin for me ..
jooooo
|
|
|
|
|
hi
i need the code which turns back the windows speed when it changed. programs like Speeder Xp. For example when speeder xp changes the speed,the code will turn it bak.
thanks
signature
|
|
|
|
|
You have to provide a little more information about what the program actually does. What "speed" is it that it's changing, and how does it do that?
---
single minded; short sighted; long gone;
|
|
|
|
|
http://en.speederxp.com/download/speeder.exe that is program. Examine this program and understand how it works. this program changes the system speed.
|
|
|
|
|
nedracix wrote: Examine this program and understand how it works
Heck no. I wouldn't just download the .exe
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
If you think that I download and run just any executable that someone links to, you are badly misinformed.
I tried to check out the web site, but I just got redirected to some japanese (?) site.
nedracix wrote: this program changes the system speed.
No, it does't. The system doesn't have a single propery that controls the speed. The speed of the system depends on a lot of different factors, most of which doesn't have a controllable "speed" property either. The program is not changing the "system speed", it's doing something else to affect the performance of the system.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
some processors, mostly those intended for battery based systems, have a way
to reduce power consumption, basically by turning down the core frequency.
These "technologies" get fancy names, such as EIST (Enhanced Intel Speed Step
Technology). They typically let the processor run at maximum speed when on AC power,
and without AC power let them run at same or some reduced speed depending on
current work load.
It is my guess some BIOS settings may influence the behavior, and some utility
might do the same. In my experience, running a background process that consumes
all remaining CPU cycles, also helps in putting the system back to maximum speed
immediately (wich would happen if the foreground app were needing the cycles too).
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
i uploaded speeder xp my ftp .
link : http://www.loxiasuo.com/speeder.rar
this program change some settings. i want turn back to normally this settings in Visual Basic. if you up +1 in this program. you xp will be fasting or -1 down value your xp will bi slowing. i want take control in visual basic.
|
|
|
|
|
If that program runs with a command line, you can make it run programmatically
using Process.Start() and that would be it.
If it needs GUI interaction, you can start it with Process.Start, then try to
figure out how you send it mouse and/or keyboard commands, then close it again.
That's a lot of trouble that will keep you busy; start searching CodeProject
and learn the do's and don'ts of Windows messages.
No one knowledgable would even consider running an unknown EXE, so you will be
very much on your own in this.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
this programme hasnt the name of class and there are many programmes that do the same thing . this for i can' close this and this like programs .
if there is a change with the system speed, it need the code which turns the system back
|
|
|
|
|
There are NO settings that change the system speed in Windows. There's nothing in the Win32 API that supports this. This app is using some other technique or something specific in the motherboards chipset (the are NO STANDARDS for this!!) to alter the system speed. Without knowing EXACTLY what that app is doing (i.e.: you need the source code for it!), there is nothing anyone can tell you on how to do this.
|
|
|
|
|
Hello, Im not very knowledgeable to VB, but I am stuck. Im trying to add syntax highlighting to my RichTextbox. This is what I have so far:
Function doSyntax()<br />
Dim input = RichTextBox1.Text.ToString<br />
Dim thenew As String() = Split(input, vbCrLf)<br />
Dim keywords As String() = {"Dim", "As", "Integer"}<br />
For Each Item As String In thenew<br />
For Each keys As String In keywords<br />
If Item = keys Then<br />
RichTextBox1.SelectionStart = RichTextBox1.Find(Item)<br />
RichTextBox1.SelectionLength = Item.Length<br />
RichTextBox1.SelectionColor = Color.Blue<br />
RichTextBox1.SelectionStart = RichTextBox1.Text.IndexOf(Item) + Item.Length + 1<br />
RichTextBox1.SelectionLength = 0<br />
RichTextBox1.SelectionColor = Color.Black<br />
End If<br />
Next<br />
Next<br />
End Function
It only colors the first word though. Do I need a while loop or something? I call this function on the text change event of the textbox. Any help is appreciated.
|
|
|
|
|
The subject of source code parsing is quite a detailed one. It can, depending on the university, take a number of semesters to teach. Most Computer Science degree courses will give you a broad overview in one semester.
You have a number of issues with your code. A Syntax Highlighter is essentially a code interpreter of sorts. That means it has to understand what the code does.
For example, blindly highlighting the word "As" may produce incorrect results as the following code shows:
Dim mySentence As String = "As you know a good parser can interpret the string correctly"
Dave@VB wrote: It only colors the first word though. Do I need a while loop or something?
I hope you can see that you require a bit more than a while loop. You appear to have taken on a project beyond your current understanding and I would strongly suggest that you learn more before attempting to solve this problem.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
if you want to make a syntax highlighter, the way that will make it all very clear is to learn Regex, you can then specify a pattern that determins when & where to highlight & to ignore words when they don't want highlighting.
<!--my signature. -->
<font color="blue">Csharp</font> me = (<font color="blue">Csharp</font>)Dynamic_Sysop; <font color="#008000">// My Signature.</font><br><font color="#008000">$twins</font> = <font color="#008000">me.twins</font>(<font color="#800080">"Taylor"</font> , <font color="#800080">"Delta"</font>); <font color="#C0C0C0">// My twin daughters.</font><br>echo <font color="#008000">$twins</font>;
|
|
|
|
|
How to add a new item in the listview at a specific position?
I have 5 rows in listview and want to add a new row at position 2.
Thanks in advance.
Ejaz
|
|
|
|
|
Try:
listview1.Items.Insert(1, YourListViewItem)
(The index is 0-based)
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
I'm creating a VB.net application ( vb.net 2005) .The application use a Ms access 2003 database with 5 fields ( Primary key is autonumber).I have create dataset using wizard.
I have problems when insert a new record in databse. The code is :
--------------
Dim drw1 As XTDataSet.PassRow
drw1 = Me.XTDataSet.Pass.NewPassRow
drw1("name") = "xxxxx"
drw1("ALG_1") = "ccccc"
drw1("aksnot") = True
drw1("aksfin") = False
Me.XTDataSet.Pass.AddPassRow(drw1)
Me.PassTableAdapter.Update(XTDataset.Pass)
Me.XtDataset.Pass.AcceptChanges()
-------------------------
With these code the new record is added to database , but after if i try to modify the new record ( without closing the form ) i get an error : Concurrency Violation....
If i close the form end reopen i can modify the new record without problems.
And without closing the form , if i fill again the dataset after adding new record everything is ok.
But how to do without closing the form and without filling again the dataset ( this is to slow)
Please help me !
|
|
|
|
|
Hi All
I want to print a wages slip for an employees through one of my project developed in VB6. The printing will happens using DMP i am using the following code: -
Dim Fn As String
Fn = FreeFile
Open Printer.Port For Output As #Fn
Print #Fn, "Some Text"; Tab(35); "Some Text"
Print #Fn, "Some Text"; Tab(35); "Some Text"
Print #Fn, "Some Text"; Tab(35); "Some Text"
Close (Fn)
This code print the slip but i want to reduce the text size, and want to change the font and paper size.
I use the printer.fontsize but its not working
Plz help me how could i do the same.
Thanks in advance
|
|
|
|