Click here to Skip to main content
15,890,882 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionplay wave file Pin
Kiran Pinjala13-Aug-07 21:00
Kiran Pinjala13-Aug-07 21:00 
AnswerRe: play wave file Pin
Tom Deketelaere13-Aug-07 21:11
professionalTom Deketelaere13-Aug-07 21:11 
GeneralRe: play wave file Pin
Dave Kreskowiak14-Aug-07 3:05
mveDave Kreskowiak14-Aug-07 3:05 
QuestionProgrammatically Scroll Pin
dBrong13-Aug-07 17:58
dBrong13-Aug-07 17:58 
AnswerRe: Programmatically Scroll Pin
Tom Deketelaere13-Aug-07 21:08
professionalTom Deketelaere13-Aug-07 21:08 
AnswerRe: Programmatically Scroll Pin
dBrong15-Aug-07 3:50
dBrong15-Aug-07 3:50 
GeneralRe: Programmatically Scroll Pin
Tom Deketelaere15-Aug-07 20:42
professionalTom Deketelaere15-Aug-07 20:42 
QuestionHow can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
vbDigger'z13-Aug-07 15:47
vbDigger'z13-Aug-07 15:47 
How can i call a form to show only one at a time or i mean not more than one instant of form without committing this error:

SystenNullReferenceException: object reference not set to an instance of an object.

**************************************************************
here's my form1 which is default mdiParent frmMain.vb:
Note: I just omitted some sub,functions and events code to minimize this code
**************************************************************************

Imports ADODB
Imports System.Diagnostics

-Public Class frmEmployeeProfile
Inherits System.Windows.Forms.Form

+ Windows Designer generated code

'there are some subs,functions and events i just omitted to minimize this code
- Private Sub menuEmployee_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuEmployee.Click

If frmEmployee Is Nothing Then

frmEmployee.Focus() 'My error occur here!

Else

frmEmployee = New frmEmployeeProfile

With frmEmployee

.MdiParent = Me.MdiParent
.ShowDialog()

End With

End If

End Sub

End Class

**************************************************************
here's my form2 which is non mdiParent frmEmployeeProfile.vb:
**************************************************************

Imports ADODB
Imports System.Diagnostics

-Public Class frmEmployeeProfile
Inherits System.Windows.Forms.Form

+ Windows Designer generated code

'there are some subs,functions and events i just omitted to minimize this code

End Class

*******************************
and this is my vb code in module.vb
***************************************

Imports System.Diagnostics

-Module mdlModule

Public frmParent As New frmMain
Public frmEmployee As frmEmployeeProfile

'there are some subs,functions and events i just omitted to minimize this code

End Module

*********************************

Please Help!!...

Please understand im a newbie in VB.NET
and this is my 1st question posting.. ahehe

Any reply shall be appreciated...

Thanks! Smile | :)
AnswerRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Luc Pattyn13-Aug-07 16:30
sitebuilderLuc Pattyn13-Aug-07 16:30 
AnswerRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Michael Sync13-Aug-07 17:52
Michael Sync13-Aug-07 17:52 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Christian Graus13-Aug-07 20:34
protectorChristian Graus13-Aug-07 20:34 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Michael Sync13-Aug-07 20:56
Michael Sync13-Aug-07 20:56 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Christian Graus13-Aug-07 22:18
protectorChristian Graus13-Aug-07 22:18 
JokeRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Luc Pattyn13-Aug-07 23:49
sitebuilderLuc Pattyn13-Aug-07 23:49 
GeneralRe: How can i call a form to show without committing an error: SystenNullReferenceException: object reference not set to an instance of an object. in VB.NET Pin
Michael Sync14-Aug-07 0:09
Michael Sync14-Aug-07 0:09 
Questionto import raw data and sort it accordingly from excel to vb Pin
miss naz13-Aug-07 15:39
miss naz13-Aug-07 15:39 
AnswerRe: to import raw data and sort it accordingly from excel to vb Pin
Andy_L_J14-Aug-07 23:19
Andy_L_J14-Aug-07 23:19 
QuestionMessage Box Pin
ejaz_pk13-Aug-07 12:43
ejaz_pk13-Aug-07 12:43 
AnswerRe: Message Box Pin
Christian Graus13-Aug-07 13:00
protectorChristian Graus13-Aug-07 13:00 
QuestionListview Column Width Pin
ejaz_pk13-Aug-07 12:28
ejaz_pk13-Aug-07 12:28 
QuestionFileSystemWatcher vb.net Pin
Cory Kimble13-Aug-07 10:25
Cory Kimble13-Aug-07 10:25 
AnswerRe: FileSystemWatcher vb.net Pin
Luc Pattyn13-Aug-07 10:46
sitebuilderLuc Pattyn13-Aug-07 10:46 
Questionlistivew subitem image Pin
ejaz_pk13-Aug-07 8:19
ejaz_pk13-Aug-07 8:19 
AnswerRe: listivew subitem image Pin
Christian Graus13-Aug-07 9:10
protectorChristian Graus13-Aug-07 9:10 
QuestionAdding events to webbrowser control Pin
Ahmad Zaidi13-Aug-07 7:49
Ahmad Zaidi13-Aug-07 7:49 

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.