Click here to Skip to main content
15,907,687 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGenerating datas in GridView and export to Excel [modified] Pin
John.L.Ponratnam21-Feb-10 19:39
John.L.Ponratnam21-Feb-10 19:39 
AnswerRe: Generating datas in GridView and export to Excel Pin
Paramu197321-Feb-10 23:05
Paramu197321-Feb-10 23:05 
Questionpause and resume the execution upon finding a certain character in a textfile. Pin
xiah_junsu21-Feb-10 16:06
xiah_junsu21-Feb-10 16:06 
AnswerRe: pause and resume the execution upon finding a certain character in a textfile. Pin
Dave Kreskowiak22-Feb-10 3:15
mveDave Kreskowiak22-Feb-10 3:15 
GeneralRe: pause and resume the execution upon finding a certain character in a textfile. Pin
xiah_junsu22-Feb-10 16:42
xiah_junsu22-Feb-10 16:42 
GeneralRe: pause and resume the execution upon finding a certain character in a textfile. Pin
Dave Kreskowiak22-Feb-10 17:42
mveDave Kreskowiak22-Feb-10 17:42 
GeneralRe: pause and resume the execution upon finding a certain character in a textfile. Pin
xiah_junsu22-Feb-10 20:09
xiah_junsu22-Feb-10 20:09 
QuestionEvent Log ID Pin
Guizzardi21-Feb-10 7:40
Guizzardi21-Feb-10 7:40 
Hi,

starting from Microsoft example I have wrote a very little clase to write into the eventlog.

Public Class frmEventWrite

    Public Function WriteToEventLog(ByVal Entry As String, _
                                    ByVal AppName As String, _
                                    ByVal EventType As EventLogEntryType, _
                                    ByVal LogName As String) As Boolean

        ' Create the source, if it does not already exist.
        If Not EventLog.SourceExists(AppName) Then
            EventLog.CreateEventSource(AppName, LogName)
        End If

        ' Create an EventLog instance and assign its source.
        Dim myLog As New EventLog()
        myLog.Source = AppName

        ' Write an informational entry to the event log.    
        myLog.WriteEntry(Entry, EventType)

        Try
            Return True
        Catch Ex As Exception
            Return False
        End Try

    End Function


Everything works BUT, I can't change the EventID, can be possibile it?
I mean change for example the numerber inside the EventiID, to insert numbers like 1042, etc. and not always 0.

Thanks.
AnswerRe: Event Log ID Pin
Dave Kreskowiak21-Feb-10 8:26
mveDave Kreskowiak21-Feb-10 8:26 
QuestionVisual Studio 2005 and Windows 7 Pin
KreativeKai19-Feb-10 3:03
professionalKreativeKai19-Feb-10 3:03 
AnswerRe: Visual Studio 2005 and Windows 7 Pin
Dave Kreskowiak19-Feb-10 3:49
mveDave Kreskowiak19-Feb-10 3:49 
QuestionForceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
for120619-Feb-10 0:41
for120619-Feb-10 0:41 
AnswerRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
Dave Kreskowiak19-Feb-10 3:28
mveDave Kreskowiak19-Feb-10 3:28 
AnswerHow to link Edit Menu selector to keyboard shortcut Pin
Richard MacCutchan19-Feb-10 3:59
mveRichard MacCutchan19-Feb-10 3:59 
AnswerRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
Dave Kreskowiak19-Feb-10 4:08
mveDave Kreskowiak19-Feb-10 4:08 
AnswerRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
Anubhava Dimri19-Feb-10 20:20
Anubhava Dimri19-Feb-10 20:20 
GeneralRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
for120620-Feb-10 18:31
for120620-Feb-10 18:31 
AnswerRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
Mark Hurd21-Feb-10 17:58
Mark Hurd21-Feb-10 17:58 
GeneralRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
Anubhava Dimri21-Feb-10 18:09
Anubhava Dimri21-Feb-10 18:09 
GeneralRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
for120621-Feb-10 20:45
for120621-Feb-10 20:45 
GeneralRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
Anubhava Dimri21-Feb-10 21:22
Anubhava Dimri21-Feb-10 21:22 
GeneralRe: Forceful use of My.Computer.Keyboard.CtrlKeyDown set to true from Edit Menu Pin
for120621-Feb-10 23:57
for120621-Feb-10 23:57 
RantVisual Studio Websites Pin
εїзεїзεїз18-Feb-10 23:44
εїзεїзεїз18-Feb-10 23:44 
GeneralRe: Visual Studio Websites Pin
Luc Pattyn19-Feb-10 0:34
sitebuilderLuc Pattyn19-Feb-10 0:34 
GeneralRe: Visual Studio Websites Pin
εїзεїзεїз19-Feb-10 2:51
εїзεїзεїз19-Feb-10 2:51 

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.