Category : winforms

I have HTML the Contain Action Half Path. But It is not working but when provided for Full Path in Action Code is Working fine. So is there any property to Set in Web Browser control for Windows Application? Not Working Code: form method="post" action="/_abc/xyz?re_url=kn" id="formSubmit" Working Code: form method="post" action="**URLFullPath**/_abc/xyz?re_url=kn" id="formSubmit" Source: Windows..

Read more

I have HTML that contains a form with a relative URL in the action, which is not working. But when is uses a full URL it works fine. So is there any property to set in the WebBrowser control for Windows Application? Not Working Code: form method="post" action="/_abc/xyz?re_url=kn" id="formSubmit" Working Code: form method="post" action="https://somesite.local/_abc/xyz?re_url=kn" id="formSubmit" ..

Read more

I’m a writing window management app in c# winforms to reposition other windows on the desktop. My issue came when I started using user32.dll calls to get the other windows size and position: [DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr hWnd, out Rect lpRect); There’s 2 problems with this method. Most (but not all) windows the ..

Read more

I’ve made a WindowsForms program: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace FormChooseFolder { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog { InitialDirectory = ..

Read more

I’m trying to delete all references to Facebook in my registry. Most of them I was able to delete using regedit. RegEdit merely tells me "Error while deleting key" on the last one so I’m trying to delete it using VB. The full path for the key I’m trying to delete is "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAppModelStateRepositoryCachePackageFamilyIndexPackageFamilyNameFacebook.Facebook_xxxxxxxxxxxxx" (x’s replace ..

Read more

I am using a Graphics to draw an Ellipse and I want to return a Bitmap that contains that ellipse. Does my code make sense? private static Graphics ChipCanvas = Graphics.FromImage(new Bitmap(60, 60)); public override Bitmap GetImage() { if (Color == PieceColors.Black) ChipCanvas.FillEllipse(Brushes.Black, 0, 0, 5, 5); else ChipCanvas.FillEllipse(Brushes.White, 0, 0, 5, 5); return new ..

Read more