---
title: "MsgBox"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/55233-msgbox"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "xcalibrate"
published: "2002-10-06T12:16:32.000Z"
updated: "2002-10-09T09:41:23.000Z"
replies: 1
views: 172
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/55233-msgbox"
---

# MsgBox

## #1 — xcalibrate, 2002-10-06T12:16Z

Koden:
If Text1.Text = "" Then
MsgBox "MSG", 64, "Fyll i Alla fält tack"
End If
'Om man inte fyllt i text1 här vill jag inte att MsgBox skall komma upp efter MsgBox "MSG" kommit upp, hur gör jag?
MsgBox Text2.Text, 64, Text1.Text

Permalänk: https://www.webforum.nu/p/55233

## #2 — Viktor, 2002-10-09T09:41Z

Såhär,

```
If Text1.Text="" Then
   MsgBox "MSG",64,"Fyll i Alla fält tack"
ELSE
   MsgBox Text2.Text, 64, Text1.Text
END IF
```

Nu kommer bara 1 medelande ruta visas.

/Viktor

Permalänk: https://www.webforum.nu/p/814175

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/55233-msgbox
