Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalprinting html file Pin
pnpfriend22-Jul-03 8:18
pnpfriend22-Jul-03 8:18 
GeneralRe: printing html file Pin
Ian Darling22-Jul-03 12:53
Ian Darling22-Jul-03 12:53 
GeneralRe: printing html file Pin
pnpfriend23-Jul-03 3:23
pnpfriend23-Jul-03 3:23 
GeneralRe: printing html file Pin
Bo Hunter23-Jul-03 12:20
Bo Hunter23-Jul-03 12:20 
GeneralRe: printing html file Pin
Anonymous27-Aug-03 13:08
Anonymous27-Aug-03 13:08 
GeneralRe: printing html file (correction to previous post)... Pin
Anonymous27-Aug-03 13:18
Anonymous27-Aug-03 13:18 
GeneralRe: printing html file (correction to previous post)... Pin
pnpfriend28-Aug-03 3:15
pnpfriend28-Aug-03 3:15 
Generalemail Pin
Cristian_Dior22-Jul-03 3:39
Cristian_Dior22-Jul-03 3:39 
can someone help exporting from .Net to Visual Basic 6.0??
I'm new to Visual Basic so i created a visual basic code in .net


Imports System.Web.Mail.MailMessage
'Imports CDO
Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents buttonSend As System.Windows.Forms.Button
<system.diagnostics.debuggerstepthrough()> Private Sub InitializeComponent()
Me.buttonSend = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'buttonSend
'
Me.buttonSend.Location = New System.Drawing.Point(104, 88)
Me.buttonSend.Name = "buttonSend"
Me.buttonSend.TabIndex = 0
Me.buttonSend.Text = "Button1"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(292, 273)
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.buttonSend})
Me.Name = "Form1"
Me.Text = "Form1"
Me.ResumeLayout(False)

End Sub

#End Region



'These 3 were added while I was debugging the problem, but they don't seem to help


Dim MailMsg As System.Web.Mail.MailMessage
Dim MailSrvr As System.Web.Mail.SmtpMail


Private Function mail()

MailMsg = New System.Web.Mail.MailMessage()
MailMsg.From = "from@email"
MailMsg.Body = "Test Message!"
MailMsg.Subject = "HI"
MailMsg.To = "person@test.com"


Try
MailSrvr.SmtpServer = "server.com"
MailSrvr.Send(MailMsg)
MsgBox("erfolgreich")
Catch err As Exception
Debug.WriteLine(err.Message)
End Try
End Function


Private Sub buttonSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonSend.Click
mail()
End Sub
End Class

i can't use this code in vb 6.0 like this.
can someone help me find a way to export this code?


Thanx
GeneralRe: email Pin
Nic Rowan22-Jul-03 3:48
Nic Rowan22-Jul-03 3:48 
GeneralRe: email Pin
jspano22-Jul-03 5:32
jspano22-Jul-03 5:32 
GeneralRe: email Pin
Cristian_Dior22-Jul-03 20:48
Cristian_Dior22-Jul-03 20:48 
GeneralRe: email Pin
jspano23-Jul-03 1:50
jspano23-Jul-03 1:50 
GeneralRe: email Pin
Cristian_Dior23-Jul-03 4:36
Cristian_Dior23-Jul-03 4:36 
Generalsending email Pin
Cristian_Dior22-Jul-03 1:00
Cristian_Dior22-Jul-03 1:00 
GeneralRe: sending email Pin
Cristian_Dior22-Jul-03 2:37
Cristian_Dior22-Jul-03 2:37 
GeneralCrystal Reports Pin
Emile Jacobs21-Jul-03 2:35
Emile Jacobs21-Jul-03 2:35 
GeneralRe: Crystal Reports Pin
Ian Darling21-Jul-03 2:44
Ian Darling21-Jul-03 2:44 
GeneralRe: Crystal Reports Pin
Martin Gibson29-Jul-03 13:04
Martin Gibson29-Jul-03 13:04 
GeneralRe: Crystal Reports Pin
Nic Rowan22-Jul-03 3:10
Nic Rowan22-Jul-03 3:10 
GeneralRe: Crystal Reports Pin
Emile Jacobs22-Jul-03 3:18
Emile Jacobs22-Jul-03 3:18 
GeneralRe: Crystal Reports Pin
Nic Rowan22-Jul-03 3:32
Nic Rowan22-Jul-03 3:32 
Generalshuffle cards Pin
Gozorr20-Jul-03 16:18
Gozorr20-Jul-03 16:18 
GeneralRe: shuffle cards Pin
Ian Darling21-Jul-03 2:36
Ian Darling21-Jul-03 2:36 
GeneralRenaming a file Pin
Anonymous20-Jul-03 16:02
Anonymous20-Jul-03 16:02 
GeneralRe: Renaming a file Pin
Heath Stewart21-Jul-03 3:01
protectorHeath Stewart21-Jul-03 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.