Files
ECO2/ArinWarev1/Forms_Basic/Frm_WebManual.vb
LGram16 6cd2abe560 .NET Framework 4.8 업그레이드 및 WebView2 통합
- 모든 프로젝트를 .NET Framework 4.0 → 4.8로 업그레이드
- WebView2 NuGet 패키지 추가 (v1.0.3537.50)
- 사용자 매뉴얼 폼 추가 (Frm_WebManual)
  * WebView2 컨트롤 통합
  * localhost:58123 자동 로드
  * MDI 메인 메뉴에 Manual 항목 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 15:37:23 +09:00

29 lines
1.0 KiB
VB.net

Public Class Frm_WebManual
Public Sub Navigate(url As String)
Try
If WebView21 IsNot Nothing AndAlso WebView21.CoreWebView2 IsNot Nothing Then
WebView21.CoreWebView2.Navigate(url)
End If
Catch ex As Exception
MessageBox.Show("웹페이지 이동 중 오류가 발생했습니다: " & ex.Message,
"오류", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
Private Async Sub Frm_WebManual_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Try
' WebView2 초기화
Await WebView21.EnsureCoreWebView2Async(Nothing)
' 로컬 웹서버 페이지 로드
WebView21.CoreWebView2.Navigate("http://localhost:58123/")
Catch ex As Exception
MessageBox.Show("웹페이지 로드 중 오류가 발생했습니다: " & ex.Message, _
"오류", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
End Class