티스토리 뷰
private void validateUserEntry()
{
// Checks the value of the text.
if(serverName.Text.Length == 0)
{
// Initializes the variables to pass to the MessageBox.Show method.
string message = "You did not enter a server name. Cancel this operation?";
string caption = "Error Detected in Input";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result;
// Displays the MessageBox.
result = MessageBox.Show(message, caption, buttons);
if (result == System.Windows.Forms.DialogResult.Yes)
{
// Closes the parent form.
this.Close();
}
}
}
기타 관련 자료
MessageBoxButtons 열거형
MessageBoxDefaultButton 열거형
MessageBoxIcon 열거형
MessageBoxOptions 열거형
- Total
- Today
- Yesterday
- jsp 오픈 소스
- 스프링 프레임워크(spring framewordk)
- jstl(java standard tag library)
- java.sql
- await
- system.io
- React
- .submit()
- nl2br
- 스프링 시큐리티(spring security)-http basic 인증
- 제품 등록
- System.Diagnostics
- java-개발 환경 설정하기
- 메이븐(maven)
- java 키워드 정리
- jstl(java standard tag library)-core
- REST API
- 표현 언어(expression language)
- error-java
- 인텔리제이(intellij)
- 스프링 프레임워크(spring framework)
- 특정 문자를 기준으로 자르기
- 람다식(lambda expression)
- 스프링 시큐리티(spring security)
- java web-mvc
- MainActor
- 진수 변환
- docker
- In App Purchase
- 문자 자르기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |