Capture http data using System.Windows.Forms.WebBrowser
I'm writing an app with the WebBrowser control and wanted to know how to retrieve the http traffic via the WebBrowser control. post, gets, etc. Thanks ...
I'm writing an app with the WebBrowser control and wanted to know how to retrieve the http traffic via the WebBrowser control. post, gets, etc. Thanks ...
I have a MDI container form, and some child forms that update their title bar texts themselves, independently. After the Text property is changed on the child form, the new title bar text from the child is not updated in the window list menu when the menu is opened. This is the auto-generated window list provided by .NET via the MdiWindo...
Ok, I was deciding between a thread or BackgroundWorker process and based on the responses from this thread I decided to go with the BackgroundWorker. Here is the thing though, when I started the worker process it stopped half way with a connection timeout error to the database. This is normal when the process is run directly on the DB s...
How do you find out the height of the task tray in vb.net, programmatically? I created an application which Windows 7 users complain about, because it always overlaps their task tray. I know its 32 px on windows XP, but how do I know how large it is elsewhere? I am making a winforms app in vb.net 2008. Thanks! ...
I get the error "Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on." when I run this code: using System; using System.ComponentModel; using System.Data; using System.Text; using System.Windows.Forms; using System.Timers; namespace WindowsFormsApplication1 { public part...
I'm not good at C# at all, I just don't get the logics. But VB I seem to understand alot better since it seems much more logical. Atleast to me. So I'm run into something which isn't a problem at all in VB, accessing controls on a different form then the one you're currently in. In VB, if I want to set the state of a button say, in F...
In Windows Forms, is it possible to configure a drop-down combobox control so that the items are right justified? The default is left justified, like this: ...
Inside my control, I have: ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add(new MenuItem("&Add Item", onAddSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Edit Item", onEditSpeaker)); ContextMenu.MenuItems.Add(new MenuItem("&Delete Item", onDeleteSpeaker)); ContextMenu.MenuItems.Add( ??? ); ContextMenu.MenuItems.Add(new Me...
Hi I want to set opacity for a form in page load. I try to set the opacity like this this.Opacity = 10; in paage load but it is not working. May i know the reason ...
C# | Winforms When we add any UI or container in winforms, the later added component comes over the earlier added components, we can say it is in a higher layer..how to change that layer order or component order after adding components ...
I have a BindingList<> of a class set to the DataSource property of a BindingSource, which is in turn set to the DataSource property of a DataGridView. 1. It is my understanding that any additions to the list will fire a ListChanged event which will propagate through the BindingSource and then onto the DataGridView, which will update it...
i want to open multiple instances of one form and display it in another form or paenel of another form. how to do it ...
I know using the follwing two methods for showing a form in another form method1 public Form1() { InitializeComponent(); Form2 embeddedForm = new Form2(); embeddedForm.TopLevel = false; Controls.Add(embeddedForm); embeddedForm.Show(); } method 2 Form1 fChild = new Form1(); fChild.MdiParent = this; fChild.Show();...
I have a form (Form1) that has a NotifyIcon on it. I have another form (Form2) that I would like to change the NotifyIcon's icon from. Whenever I use this code, I get an extra icon that shows up in the system tray, instead of changing the current icon: Form1 (ico is the name of the NotifyIcon): public string DisplayIcon { set { i...
This is in relation to this question. The proposed answers involve adding a property to "Form1" that is of type "Form2" which answers the question asked. But what if we wanted a less coupled solution. What are your suggestions? ...
how do i calculate the loading percentage of my C# application. i want to show a splash screen with a progress bar showing percentage of application loaded. Is there any standard method\library for that or i will have to just update the progress bar value at different points in my form load code. Or can any gimme a tutorial on applica...
how can i use helpprovider control, give some demo or reference ...
I am having a few memory problems with my long running application and I have been inspecting the paint methods to insure that brushes were properly disposed. In the case where the Brush is created in the argument to the functio will the brush be disposed of? such as the case below g.DrawString(valueText, Font, new SolidBrush(Colo...
While debugging a .NET Framework 3.5, WinForms application I spotted some "Worker Thread"s without a name. I know when you open an application you've got a one worker thread by default. However in the middle of debugging when I pause the debugger and take a look at the "Threads" window I see about 5+ similar threads (priority=normal)....
I want to communicate between two applications or winforms in C# using clients and server its like i want a server continiously listening to incoming messages from a client or clients and when the msg is received i want to reply back to the client that sent the information for processing can any one help with code example ...