25.7.10

Use Colors with Console Application


Hi Everybody,
I would like to discuss one of the most FAQs regarding how we can use colors with VB.NET Console application ? If you have any questions, please feel free to contact me y_turkeli@yahoo.com or yenerturkeli@v-basic.net.

1-) We are creating a new Console Application Project (colored_console)



2-) We are writing this code

Sub Main()
Console.BackgroundColor = ConsoleColor.Blue
Console.ForegroundColor = ConsoleColor.Red

Console.WriteLine("Hi This is very useful example for us Background Color Blue")

Console.BackgroundColor = ConsoleColor.White
Console.ForegroundColor = ConsoleColor.Blue

Console.WriteLine("Hi This is very useful example for us Background Color White")

Console.BackgroundColor = ConsoleColor.Black
Console.ForegroundColor = ConsoleColor.White

Console.WriteLine("Hi This is very useful example for us Background Color Black")

Console.WriteLine("Have a great day")

Console.ReadLine()
End Sub


3-) Lets start application


22.7.10

VB.NET 2010 Email Sending

Hi Everybody,
I would like to discuss one of the most FAQs regarding how we can send email with VB.NET 2010 Windows application ? If you have any questions, please feel free to contact me y_turkeli@yahoo.com or yenerturkeli@v-basic.net.

1-) We are creating a new Windows Application Project (VBNET2010_email)



2-) We are changing Form1 Text properties (Email Sending)



3-)We are designing this windows form in a similar way to the picture bellow




4-) We are writing this code

Private Smtp_Server As New SmtpClient()

Private Sub email_send_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles email_send.Click
Try

Dim e_mail As New MailMessage()
Smtp_Server.Credentials = New Net.NetworkCredential("yener.turkeli@v-basic.net", "password")
Smtp_Server.Port = 25
Smtp_Server.Host = "mail.v-basic.net"
e_mail = New MailMessage()
e_mail.From = New MailAddress(from_txt.Text)
e_mail.To.Add(to_txt.Text)
e_mail.Subject = "VB.NET Email Sending"
e_mail.Body = text_txt.Text
Smtp_Server.Send(e_mail)

Catch error_t As Exception
MsgBox(error_t.ToString)
End Try
End Sub

5-) Please click Send Email button in order to send email





6-) Lets Check Email Box



Have a great days


Yener Turkeli
yenerturkeli@v-basic.net


13.7.10

VB.NET SAP Integration

Hi Everybody,
I would like to give some information about SAP R/3, ABAP , RFC and VB.NET SAP Integration. It is very important to establish connection between SAP and other systems. Hence, VB.NET is most important tool for integration(office, oracle, business object, mysql , mssql server etc).

If you have any question, please feel free to contact me y_turkeli@yahoo.com or yenerturkeli@v-basic.net.

What is SAP?

SAP R/3 is the name of the enterprise resource planning(ERP) software which have been developed by SAP AG. It is an enterprise-wide information system designed to coordinate all the resources, information, and activities needed to complete business processes such as order fulfillment or billing.

SAP architecture of R/3 on a three-tier client/server

Presentation Server(SAP GUI-Graphical User Interface)
Application Server
Database Server

What is ABAP?

ABAP (Advanced Business Application Programming) is a Advanced-level programming language developed by the SAP Company. Abap is similar to Cobol.


What is RFC?

SAP R/3 provide connection between SAP systems and non-sap systems. RFC(Remote Function Call) is the standart interface for communication between SAP Systems.

Sample RFC Function at SAP R/3




If you have any question, please feel free to contact me

I look forwad to hearing from you about your questions.


Yener Turkeli
yenerturkeli@v-basic.net