Programming/c# & winform2020. 10. 19. 12:36

일단은 프린터 나열부터 시작

        private void button1_Click(object sender, EventArgs e)
        {
            PrintQueue printQueue = null;
            LocalPrintServer localPrintServer = new LocalPrintServer();
            PrintQueueCollection localPrinterCollection = localPrintServer.GetPrintQueues();

            //Console.WriteLine("These are your shared, local print queues:\n\n");

            foreach (PrintQueue printer in localPrinterCollection)
            {
                //Console.WriteLine("\tThe shared printer " + printer.Name + " is located at " + printer.Location + "\n");
                textBox1.Text += printer.Name + "@" + printer.Location + "\r\n";
            }
            //Console.WriteLine("Press enter to continue.");
            //Console.ReadLine();
            //System.Collections.IEnumerator localPrinterEnumerator = localPrinterCollection.GetEnumerator();

        }

 

[링크 : https://docs.microsoft.com/ko-kr/dotnet/desktop/wpf/advanced/how-to-enumerate-a-subset-of-print-queues?view=netframeworkdesktop-4.8]

'Programming > c# & winform' 카테고리의 다른 글

c# pdf itextsharp -> itext7  (0) 2020.10.22
c# print 하기  (0) 2020.10.19
c# dialog dual screen  (0) 2020.10.15
c# dialog 전체화면  (0) 2020.10.15
c# winform / 버튼클릭 이벤트 호출하기  (2) 2020.10.15
Posted by 구차니
개소리 왈왈/컴퓨터2020. 10. 19. 10:10

win10에서 자동 인식을 한다!

7.1로 잡힌것 같긴한데..

스피커 구성으로 해보니 5.1은 소리가 나오는데 7.1에서 RL/ RR은 나오지 않는것 봐서는 5.1이 최대인 것 같다.

 

내 노트북의 ubuntu 18.04 에서는 잡히는 것도 좀 이상하고

5.1 채널 설정해서 소리 테스트 하면 소리가 안나기도 하고.. 영 이상하네.. 안되는건 아니겠지? ㅠㅠ

 

[   27.335580] usb 2-1.2: new full-speed USB device number 4 using ehci-pci
[   27.446190] usb 2-1.2: New USB device found, idVendor=0d8c, idProduct=0102, bcdDevice= 0.10
[   27.446201] usb 2-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   27.446207] usb 2-1.2: Product: USB Sound Device        
[   27.478308] hidraw: raw HID events driver (C) Jiri Kosina
[   27.484227] usb 2-1.2: current rate 30464 is different from the runtime rate 96000
[   27.485858] usb 2-1.2: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   27.485861] usb 2-1.2: [9] FU [Mic Playback Volume] ch = 2, val = -6144/1921/1
[   27.486982] usb 2-1.2: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   27.486986] usb 2-1.2: [11] FU [Line Playback Volume] ch = 2, val = -6144/1921/1
[   27.493851] usb 2-1.2: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   27.493853] usb 2-1.2: [8] FU [Mic Capture Volume] ch = 2, val = -4096/2832/1
[   27.494989] usb 2-1.2: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   27.494991] usb 2-1.2: [15] FU [Line Capture Volume] ch = 2, val = -4096/2832/1
[   27.496850] usb 2-1.2: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   27.496852] usb 2-1.2: [2] FU [PCM Capture Volume] ch = 2, val = -4096/2832/1
[   27.497286] usbcore: registered new interface driver snd-usb-audio
[   27.498922] usbcore: registered new interface driver usbhid
[   27.498924] usbhid: USB HID core driver
[   27.513414] input: USB Sound Device         as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.3/0003:0D8C:0102.0001/input/input23
[   27.576116] hid-generic 0003:0D8C:0102.0001: input,hidraw0: USB HID v1.00 Device [USB Sound Device        ] on usb-0000:00:1d.0-1.2/input3

 

 

        *-multimedia
             description: Audio device
             product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 04
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:32 memory:d0720000-d0723fff

 

+

집에와서 odroid xu4 에 물려서 해보니 잘 된다(ubuntu mate)

 

다만 전방에 소리가 몰려있어서 후방으로 많이 밀어주어야 했는데 동영상 틀어봐야 확실하게 알 듯..

 

front left~ rear left~ 잘들린다!

그런데 front center와  LFE는 노이즈 처럼 작게 들리네..

 

희한하게 kodi 에서 4채널까진 괜찮은데 4.1 5.0 5.1 이런식으로 설정하면 소리가 확 작아진다.

정확하게는 center 채널이 분리되면서 다른쪽으로는 음성이 제거되는 느낌이라고 해야하나?

 

+

downmix 시 center 채널 mixing에 대한 부분이 켜지지 않을 경우 그렇다고 하는데

테스트 하기에는 너무 시간이.. ㅠㅠ

 

[링크 : https://forum.kodi.tv/showthread.php?tid=334664]

[링크 : https://kodi.wiki/view/Settings/System/Audio#Maintain_original_volume_on_downmix]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

아아 SD가 죽었습니다 ㅠㅠ  (0) 2020.10.22
lg gram 드라이버 프로그램 자동 실행 막기  (0) 2020.10.20
해외 배송은 갑작스럽다  (0) 2020.10.17
컴퓨터 득템?  (0) 2020.10.14
어쩌다 보니 득템?  (0) 2020.10.11
Posted by 구차니

만사 귀찮음 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

지치는 토요일  (0) 2020.12.05
냄비 두개  (0) 2020.10.24
평온한.. 하루?  (0) 2020.10.16
오늘은 운전을 하면 안되는 날이구만  (0) 2020.10.10
분노분노분노  (0) 2020.10.09
Posted by 구차니
개소리 왈왈/컴퓨터2020. 10. 17. 21:04

토요일인데 배송이 되려다가 쉬는 날이라 배송 못한다고 연락이 왔는데

어제 회사에서 확인할때만 해도 소식이 없다가

저녁 9시 쯔음에 국내로 들어왔는지 갑자기 다음날 그런 연락이 오네 -__

 

 

아무튼.. 5.1 채널 사운드 카드가 오는데

odroid XU4 에 외장형 사운드 카드와 사용해서 i5-2500을 대체해서

동영상 보는 용도로 쓰는게 나을까..

아니면 10만원 정도 들여서 G4400T 정도 구매하는게 나을까?

단일 코어로는 i5-2500과 거의 동급인데 펜티엄 라인업이라니 ㄷㄷ

 

DDR5가 나오려는 시대에 DDR4에

10세대 나온 시점에 6세대라.. 고민되네

[링크 : https://support.hp.com/kr-ko/document/c04864903]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

lg gram 드라이버 프로그램 자동 실행 막기  (0) 2020.10.20
USB 사운드 카드 도착!  (0) 2020.10.19
컴퓨터 득템?  (0) 2020.10.14
어쩌다 보니 득템?  (0) 2020.10.11
stormbook 14 pro 64GB 모델  (0) 2020.10.05
Posted by 구차니

지하철에서 옆자리 아자씨가

아이패드 같은데 윈도우 화면이 막 나오길래 먼가 해서

검색을 해봤더니 rdp 어플이 똭!

게다가 애플에 ms 공식?!?!

 

[링크 : https://kwonkyo.tistory.com/313]

[링크 : https://apps.apple.com/kr/app/microsoft-remote-desktop/id1295203466?mt=12]

[링크 : https://play.google.com/store/apps/details?id=com.microsoft.rdc.android&hl=ko&gl=US]

'개소리 왈왈 > 모바일 생활' 카테고리의 다른 글

에그 없애고 요금제 갈아 탈까?  (0) 2020.11.26
V50 V50s 흐음..  (2) 2020.11.21
몬스터 볼 플러스!  (0) 2020.09.22
LG V50s가 눈에 들어옴  (0) 2020.09.12
통신비도 안정화 되었고..  (0) 2020.08.12
Posted by 구차니

물론 집에오면 평화는 끝남 ㅠㅠ

이제 또 주말이네 ㅠㅠㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

냄비 두개  (0) 2020.10.24
귀찮아!!!  (0) 2020.10.18
오늘은 운전을 하면 안되는 날이구만  (0) 2020.10.10
분노분노분노  (0) 2020.10.09
애완조(?) 윙 트리밍!  (0) 2020.10.04
Posted by 구차니
Programming/c# & winform2020. 10. 15. 18:24

1번 디스플레이가 0번 스크린으로 인식된다.

 

this.Location = Screen.AllScreens[0].WorkingArea.Location;

[링크 : https://stackoverflow.com/questions/57288060/showing-winforms-on-dual-screen-setup]

 

 

+

물리적으로 가장 왼쪽 부터 하고 싶은 경우에는 어떻게 해야하려나...

'Programming > c# & winform' 카테고리의 다른 글

c# print 하기  (0) 2020.10.19
c# printer 사용하기 - printer enumeration  (0) 2020.10.19
c# dialog 전체화면  (0) 2020.10.15
c# winform / 버튼클릭 이벤트 호출하기  (2) 2020.10.15
c# webBrowser css 적용하기...?  (0) 2020.10.15
Posted by 구차니
Programming/c# & winform2020. 10. 15. 18:23

속성에서 WindowState를

Normal에서 Maximized로 하면 전체 화면 모드로 된다.

 

[링크 : https://stackoverflow.com/questions/505167/]

[링크 : https://stackoverflow.com/questions/2272019/]

[링크 : https://outshine90.tistory.com/entry/폼-FullScreen]

Posted by 구차니
Programming/c# & winform2020. 10. 15. 17:31

InitializeComponent() 직후에 호출하니 안 먹네.. ㅠㅠ

 

Button.PerformClick()

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.windows.forms.button.performclick?view=netcore-3.1]

[링크 : https://iamadeveloper.tistory.com/180]

 

 

+

2020.10.19

번개모양을 누르면 Event로 바뀌는데 거기서 Load에 추가해주면 된다.

 

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.windows.forms.form.load?view=netcore-3.1]

[링크 : https://stackoverflow.com/questions/218732/how-do-i-execute-code-after-a-form-has-loaded]

 

+

다이얼로그 비어있는데 더블 클릭하니 Form1_load() 함수가 생기면서 Load 이벤트가 등록된다.

'Programming > c# & winform' 카테고리의 다른 글

c# dialog dual screen  (0) 2020.10.15
c# dialog 전체화면  (0) 2020.10.15
c# webBrowser css 적용하기...?  (0) 2020.10.15
c# webBrowser control/class IE 버전  (0) 2020.10.15
c# webBrowser + markdig  (0) 2020.10.15
Posted by 구차니
Programming/c# & winform2020. 10. 15. 16:39

DOM을 이용해서 head 하위에 style element를 생성하고 박아 넣는것이 보이는데..

innerHTML 처럼 특정 element 안의 내용을 한번에 갈아치우는 것도 방법이 되려나?

 

HtmlElement head = webBrowser1.Document.GetElementsByTagName("head")[0];
HtmlElement styleEl = webBrowser1.Document.CreateElement("style");
IHTMLStyleElement element = (IHTMLStyleElement)styleEl.DomElement;
IHTMLStyleSheetElement styleSheet = element.styleSheet;
styleSheet.cssText = @"h1 { color: red }";
head.AppendChild(styleEl);

[링크 : https://stackoverflow.com/questions/5496549/how-to-inject-css-in-webbrowser-control]

[링크 : https://social.msdn.microsoft.com/Forums/vstudio/en-US/74e2a36a-a69b-4ea9-9242-d615968e3181/...al]

'Programming > c# & winform' 카테고리의 다른 글

c# dialog 전체화면  (0) 2020.10.15
c# winform / 버튼클릭 이벤트 호출하기  (2) 2020.10.15
c# webBrowser control/class IE 버전  (0) 2020.10.15
c# webBrowser + markdig  (0) 2020.10.15
c# 파일 읽어서 string에 넣기  (0) 2020.10.15
Posted by 구차니