본문 바로가기
728x90
반응형

C#6

[C#] Devexpress GridContorl(GridView) 가운데 정렬 방법 [ GridControl(GridView) - 가운데 정렬] ▶ gridView1를 클릭 한 후 [textoption] 검색 ▶ header : Appearance > HeaderPanel > TextOptions > HAlignment / VAlignment : Center 로 변경 ▶ row : Appearance > Row > TextOptions > HAlignment / VAlignment : Center 로 변경 ▶ 코드에서도 가운데 정렬 가능하다. dataTable.Columns["name"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; 2022. 6. 20.
[VB(C#)] 'initializeComponent' 메서드를 구문 분석하지 못했습니다. Invalid symbol kind: NamedType 오류 1. 오류내용 'InitializeComponent' 메서드를 구문 분석하지 못했습니다. 파서에서 다음 오류를 보고했습니다. 'Invalid symbol kind: NamedType'. 작업 목록에 잠재적 오류가 있는지 확인하세요. -> 잘못된 기호 종류: NamedType 2. 해결방법 1) nameof 제거 후 따옴표 붙이기 // 변경 전 this.Name = nameof(FrmShowSign); // 변경 후 this.Name = "FrmShowSign"; 2022. 4. 7.
[Unity] 클릭한 오브젝트(버튼)의 이름 가져오기 using UnityEngine.EventSystems; public class ButtonController : MonoBehaviour { public void GetButtonName(){ // 버튼 이름 가져오기 string ButtonName = EventSystem.current.currentSelectedGameObject.name; Debug.Log(ButtonName); } } 기능이 같지만 버튼 이름이 다를 경우처럼 클릭한 오브젝트(버튼)의 이름을 가져오기 위한 방법입니다! 2021. 11. 30.
728x90
반응형