Home All Groups Group Topic Archive Search About

Visual Basic Express 2008 Custom Error Message

Author
12 Mar 2009 5:01 PM
Cass
I've programmed an autorun program. I would like to create a custom
error message when a person clicks on a button & the file is not in
the directory.

For example, the code for a button looks like this:
    Private Sub filename_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles filename.Click
        Shell("\file.exe", vbMaximizedFocus)
    End Sub

If I remove file.exe from the directory because they hadn't, for
example, purchased the software, I want a custom error message to
appear.

Can anyone help me with the code for this?

Author
12 Mar 2009 5:10 PM
Kevin Provance
Wrong group.

This group is for Visual Basic.  What you have is VB.NET.  Two different
things entirely.

Show quoteHide quote
"Cass" <cas***@gmail.com> wrote in message
news:21e9e691-d919-4899-99ca-31d463c4b8e5@j8g2000yql.googlegroups.com...
| I've programmed an autorun program. I would like to create a custom
| error message when a person clicks on a button & the file is not in
| the directory.
|
| For example, the code for a button looks like this:
|    Private Sub filename_Click(ByVal sender As System.Object, ByVal e
| As System.EventArgs) Handles filename.Click
|        Shell("\file.exe", vbMaximizedFocus)
|    End Sub
|
| If I remove file.exe from the directory because they hadn't, for
| example, purchased the software, I want a custom error message to
| appear.
|
| Can anyone help me with the code for this?
Author
12 Mar 2009 6:01 PM
Cass
On Mar 12, 1:10 pm, "Kevin Provance"
<Bill.McCarthy.Is.Stalking.TPASoft.***@.netblows.ms> wrote:
Show quoteHide quote
> Wrong group.
>
> This group is for Visual Basic.  What you have is VB.NET.  Two different
> things entirely.
>
> "Cass" <cas***@gmail.com> wrote in message
>
> news:21e9e691-d919-4899-99ca-31d463c4b8e5@j8g2000yql.googlegroups.com...
> | I've programmed an autorun program. I would like to create a custom
> | error message when a person clicks on a button & the file is not in
> | the directory.
> |
> | For example, the code for a button looks like this:
> |    Private Sub filename_Click(ByVal sender As System.Object, ByVal e
> | As System.EventArgs) Handles filename.Click
> |        Shell("\file.exe", vbMaximizedFocus)
> |    End Sub
> |
> | If I remove file.exe from the directory because they hadn't, for
> | example, purchased the software, I want a custom error message to
> | appear.
> |
> | Can anyone help me with the code for this?

OK.... So where do I need to post then?? I dont see a VB.NET usegroup
Author
12 Mar 2009 6:07 PM
Jeff Johnson
"Cass" <cas***@gmail.com> wrote in message
news:c83f232a-cd6f-4a66-a48f-363f321a8d5e@w9g2000yqa.googlegroups.com...

> OK.... So where do I need to post then?? I dont see a VB.NET usegroup

[Canned response]

This is a VB "classic" newsgroup. Questions about VB.NET (including VB
2005/2008 and VB Express, which have dropped .NET from their names) are
off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.

For questions specific to the VB.NET language, use this group:

microsoft.public.dotnet.languages.vb

Please note that things like controls and data access, which have their own
subgroups in the Classic VB hierarchy, are not language-specific in .NET, so
you should look for groups like these:

microsoft.public.dotnet.framework.windowsforms.controls
microsoft.public.dotnet.framework.adonet

(Note that "vb" is not present in the group name.)
Author
12 Mar 2009 6:56 PM
Abhishek
| I've programmed an autorun program. I would like to create a custom

lol .NETER

ur app wont even load on most system :D

MS gave you Express Edition to suck you into .NET BlackHole

here is a better non .nut replacement

[autorun]
open=start filetoopen.exe