Click here to Skip to main content
15,897,371 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Encryption Pin
Mark Churchill20-Aug-07 21:39
Mark Churchill20-Aug-07 21:39 
QuestionHow to avoid html tag in body of mail while saving to db. [modified] Pin
rahul.net1120-Aug-07 5:12
rahul.net1120-Aug-07 5:12 
AnswerRe: How to avoid html tag in body of mail while saving to db. Pin
nlarson1120-Aug-07 17:00
nlarson1120-Aug-07 17:00 
Questionhelp Pin
padbindu20-Aug-07 4:06
padbindu20-Aug-07 4:06 
AnswerRe: help Pin
Christian Graus20-Aug-07 12:17
protectorChristian Graus20-Aug-07 12:17 
QuestionHelp with aScheduling grid/Table Pin
Mr Oizo20-Aug-07 2:07
Mr Oizo20-Aug-07 2:07 
AnswerRe: Help with aScheduling grid/Table Pin
Johan Hakkesteegt31-Aug-07 3:01
Johan Hakkesteegt31-Aug-07 3:01 
QuestionHow to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 1:49
rahul.net1120-Aug-07 1:49 
Hi In my application i am creating a text file and write some text to
it then i am checking if file exist or not if exist i want to write
to a new line but while doing i am getting an error.
Object reference not set to instance of an object.How can i do this.
Plesae guide me to do this. my Code is as follow.
for i=  to Count<br />
Dim id As String = xMsg.MsgId()<br />
                    Dim sFileName As String<br />
                    sFileName = "C:/text1.txt"<br />
                    Dim newline As String = String.Empty<br />
                    'Dim tw As TextWriter<br />
                    If Not IO.File.Exists(sFileName) Then<br />
                        MessageBox.Show("File Not Found")<br />
                        Dim TextFile As New StreamWriter(sFileName)<br />
<br />
                        TextFile.WriteLine(id)<br />
                        TextFile.Close()<br />
                    Else<br />
                        MessageBox.Show("File Found. File was created on: ")<br />
                        'Dim TextFile As System.IO.TextWriter<br />
                        Dim TextFile As  StreamWriter<br />
<br />
                        TextFile.WriteLine(id)<br />
                        TextFile.Close()<br />
<br />
                    End If<br />
                   <br />
                Next


Thanks.

Rahul

AnswerRe: How to write to new line using streamwriter. Pin
Rami Said Abd Alhalim20-Aug-07 2:21
Rami Said Abd Alhalim20-Aug-07 2:21 
GeneralRe: How to write to new line using streamwriter. Pin
Rami Said Abd Alhalim20-Aug-07 2:25
Rami Said Abd Alhalim20-Aug-07 2:25 
GeneralRe: How to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 4:32
rahul.net1120-Aug-07 4:32 
AnswerRe: How to write to new line using streamwriter. Pin
Rupesh Kumar Swami20-Aug-07 2:28
Rupesh Kumar Swami20-Aug-07 2:28 
GeneralRe: How to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 4:31
rahul.net1120-Aug-07 4:31 
AnswerRe: How to write to new line using streamwriter. Pin
Luc Pattyn20-Aug-07 2:33
sitebuilderLuc Pattyn20-Aug-07 2:33 
GeneralRe: How to write to new line using streamwriter. Pin
rahul.net1120-Aug-07 4:30
rahul.net1120-Aug-07 4:30 
AnswerRe: How to write to new line using streamwriter. Pin
Csharp™20-Aug-07 20:22
Csharp™20-Aug-07 20:22 
AnswerRe: Help me to create SYNTAX TREE according to our own created grammar Pin
Dave Kreskowiak20-Aug-07 2:16
mveDave Kreskowiak20-Aug-07 2:16 
QuestionPrint Report Without preview in Microsoft Reporting Service Pin
Rupesh Kumar Swami19-Aug-07 23:54
Rupesh Kumar Swami19-Aug-07 23:54 
Questionany one help for sum(fld,condfld) function in crystal report Pin
Senthil S19-Aug-07 23:44
Senthil S19-Aug-07 23:44 
AnswerRe: any one help for sum(fld,condfld) function in crystal report Pin
Christian Graus19-Aug-07 23:52
protectorChristian Graus19-Aug-07 23:52 
AnswerRe: any one help for sum(fld,condfld) function in crystal report Pin
ChandraRam20-Aug-07 0:10
ChandraRam20-Aug-07 0:10 
QuestionHow to get unread mail from server using pop3 protocol Pin
rahul.net1119-Aug-07 22:51
rahul.net1119-Aug-07 22:51 
QuestionWindows XP remote connection limit. Pin
Jwalant Natvarlal Soneji19-Aug-07 22:30
Jwalant Natvarlal Soneji19-Aug-07 22:30 
AnswerRe: Windows XP remote connection limit. Pin
Craster20-Aug-07 0:50
Craster20-Aug-07 0:50 
AnswerRe: Windows XP remote connection limit. Pin
Dave Kreskowiak20-Aug-07 2:19
mveDave Kreskowiak20-Aug-07 2:19 

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.