![]() Private void pictureBox1_LoadCompleted(object sender, AsyncCompletedEventArgs e)ĭebug.WriteLine("\tCanceled " e.Cancelled.ToString()) ĭebug.WriteLine("\tError " (e.Error = null ? "No error (null)" : e.Error.ToString())) ĭebug.WriteLine("\tUserState " (e.UserState = null ? "No userstate (null)" : e.UserState.ToString())) Using (Graphics g = ())įor (int xPos = 1 xPos < columnCount xPos )įor (int yPos = 1 yPos < rowCount yPos ) Private void button1_Click(object sender, EventArgs void pictureBox1_Paint(object sender, PaintEventArgs e) The grid keeps on disappearing (after being drawn). I don't want te resize the loaded image to the size of my picturebox.Īfter the image has been drawn on the canvas of the picturebox, I draw my grid. I want the grid to be visible at all times and I want the thickness of the lines to be the same at all times. Now it's working as intended for me.I want to draw a grid on a picturebox. After that I looked for write executed by softMCCS for switching to HDMI but value was the same - 17. setMonitorInputSource(3) worked but I couldn't switch back to primary, I've figured that the case was incorrect handle and modified code to use handle based on mouse position. I scooped over softMCCS logs and found out that even though getMonitorInputSource() returned 0 for DVI source softMCCS used 03 while changing to that source( write 03 60 00 03 ). I tried changing source through softMCCS and it worked properly. I used setMonitorInputSource(0) but monitor just went black for a moment like while normally changing source but went back to the primary. I got 17 for primary display(HDMI) and 0 for other. At first I tried reading values for input sources using getMonitorInputSource(). I'm using extended desktop with 2 gpus plugged to same BenQ E2220HD, one using DVI and other HDMI port. I made it work for me with very slight modification. ![]() Msgbox % capabilities "`n`n=`n" supportedColours If (pdwSupportedColorTemperatures
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |