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

Visual Basic

 
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 
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 
BlueCodeDiggerzzz wrote:

If frmEmployee Is Nothing Then


seem like this line is wrong. you can't access any properties, methods (eg: Focus() ) or events if that control is Nothing.

So, maybe. it should be something like that.

If frmEmployee IsNot Nothing Then<br />
<br />
frmEmployee.Focus() 'My error occur here!<br />
<br />
Else<br />
<br />
frmEmployee = New frmEmployeeProfile<br />
<br />
With frmEmployee<br />
<br />
.MdiParent = Me.MdiParent<br />
.ShowDialog()<br />
<br />
End With<br />
<br />
End If<br />
<br />


Note: IsNot is VB.NET 2005 code. If you are using VS 2003 then it should be like that If Not frmEmployee Is Nothing Then

Hope it helps.

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

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 
QuestionHow to code th MediaPlayer or the MS-Paint Pin
sizwe13-Aug-07 7:24
sizwe13-Aug-07 7:24 
AnswerRe: How to code th MediaPlayer or the MS-Paint Pin
kubben13-Aug-07 7:44
kubben13-Aug-07 7:44 

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.