Click here to Skip to main content
15,900,108 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: now a can read text file line by line but how to split it Pin
Christian Graus12-Nov-07 23:43
protectorChristian Graus12-Nov-07 23:43 
GeneralRe: now a can read text file line by line but how to split it Pin
abdullah Hejory13-Nov-07 0:22
abdullah Hejory13-Nov-07 0:22 
GeneralRe: now a can read text file line by line but how to split it Pin
Christian Graus13-Nov-07 0:24
protectorChristian Graus13-Nov-07 0:24 
GeneralRe: now a can read text file line by line but how to split it Pin
abdullah Hejory13-Nov-07 19:14
abdullah Hejory13-Nov-07 19:14 
QuestionDetecting a system shutdown from a windows service Pin
StephenBlack12-Nov-07 22:23
StephenBlack12-Nov-07 22:23 
AnswerRe: Detecting a system shutdown from a windows service Pin
StephenBlack12-Nov-07 22:42
StephenBlack12-Nov-07 22:42 
QuestionHow to Write Text in currently opened cmd window Pin
JothiMurugeswaran12-Nov-07 22:16
JothiMurugeswaran12-Nov-07 22:16 
Questionprinting directly from notepad Pin
briogene12-Nov-07 21:37
briogene12-Nov-07 21:37 
i have the following string that i have passed to notepad

Private Sub PrintNotepad()

Dim MySecurity As New MajiDll.Security
Dim strCode As String
Dim myNum As Integer
strCode = strCode & " NYERI WATER AND SEWERAGE COMPANY LIMITED {ENTER}"
strCode = strCode & " P.O Box 1520 {ENTER}"
strCode = strCode & " TEL 2034548,2034617,2034623{ENTER 2}"
strCode = strCode & " DATE : " & Format(Date, "dd-mm-yy") & "{ENTER}"
strCode = strCode & " TIME : " & Format(Time, "hh:mm:ss") & "{ENTER}"


strCode = strCode & " NAME: " & lblname.Text & "{ENTER}"
strCode = strCode & " ACCOUNT NUMBER: " & txtAccNo & "{ENTER}"

strCode = strCode & " PAYMENT FOR : " & cboFundType & "{ENTER}"

strCode = strCode & " AMOUNT RECEIVED : " & txtAmntReceived & "{ENTER}"
strCode = strCode & " AMOUNT CHARGED : " & txtAmountApply & "{ENTER}"
strCode = strCode & " CHANGE : " & lblbal & "{ENTER}"

strCode = strCode & " The Sum of Kshs: " & MySecurity.numConverter(txtAmountApply, "Shillings") & ""


Shell "Notepad.exe", vbNormalFocus
SendKeys strCode, True
End Sub

Could some one out there help me in printing it directly to a printer as it first opens the notepad then u have to click print for it to print


briogene
AnswerRe: printing directly from notepad Pin
Cameron Marsden12-Nov-07 21:52
Cameron Marsden12-Nov-07 21:52 
AnswerRe: printing directly from notepad Pin
AliAmjad12-Nov-07 21:55
AliAmjad12-Nov-07 21:55 
Questionhow to change language of system? Pin
birajendu12-Nov-07 21:22
birajendu12-Nov-07 21:22 
QuestionVPN connection in vb.net Pin
~V~12-Nov-07 20:06
~V~12-Nov-07 20:06 
AnswerRe: VPN connection in vb.net Pin
~V~13-Nov-07 20:39
~V~13-Nov-07 20:39 
QuestionEnumeration Pin
danasegaranea12-Nov-07 19:49
danasegaranea12-Nov-07 19:49 
AnswerRe: Enumeration Pin
Paul Conrad28-Nov-07 15:16
professionalPaul Conrad28-Nov-07 15:16 
QuestionInstaller issue vb2005 : Need urgent help Pin
nishkarsh_k12-Nov-07 19:19
nishkarsh_k12-Nov-07 19:19 
AnswerRe: Installer issue vb2005 : Need urgent help Pin
Christian Graus12-Nov-07 19:59
protectorChristian Graus12-Nov-07 19:59 
GeneralRe: Installer issue vb2005 : Need urgent help Pin
nishkarsh_k12-Nov-07 20:10
nishkarsh_k12-Nov-07 20:10 
QuestionCombobox Column In Datagridview [modified] Pin
~V~12-Nov-07 18:43
~V~12-Nov-07 18:43 
AnswerRe: Combobox Column In Datagridview Pin
Paul Conrad28-Nov-07 15:14
professionalPaul Conrad28-Nov-07 15:14 
QuestionCAPTION Pin
PRIYA (P)12-Nov-07 18:30
PRIYA (P)12-Nov-07 18:30 
AnswerRe: CAPTION Pin
Christian Graus12-Nov-07 19:58
protectorChristian Graus12-Nov-07 19:58 
GeneralIt's a dead language Pin
Steven J Jowett13-Nov-07 0:51
Steven J Jowett13-Nov-07 0:51 
GeneralRe: It's a dead language Pin
Paul Conrad28-Nov-07 15:15
professionalPaul Conrad28-Nov-07 15:15 
GeneralRe: CAPTION Pin
Irfan Baig29-Jan-08 18:13
Irfan Baig29-Jan-08 18:13 

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.