My WinForms app uses Process.Start() to open files in their native app. I want to split the screen in half, showing my WinForms app on one half and the new process on the other. I know I can use Process.MainWindowHandle to get the window handle, but how can I set its size and position?
I imagine I have have to use some kind of Windows ...
I have this code for an ownerdrawn list box that is repainting too frequently. It seems to be related to trying to scroll an event with a different height than normal.
Here is the 'smallest code to reproduce the problem' that can be pasted into a blank form (erase the designer file) - VB version (c# of course does the same thing):
Publ...
I'm using Web Browser Control in a windows form (vb.net) to display one of our website (ASP.NET) as a part of the windows application. Everything works fine, but when I've a popup window from the website page, I'm loosing the ASP.Net session. I've used extended version of web browser control to have Navigate2 event to catch the popup win...
I am currently developing a system that has need for a session time out like subsystem. It is a compact framework 3.5 application, but the principles are very similar to WinForms, so most Winforms solutions will likely work.
Here is the deal, I would like a way to throw an event which lets the MainForm, which is controlling the show, kn...
In winforms .net controls if we set Enabled property to false the control will be grayed out.
In this case it will become unreadable for many color combinations (because i am giving options to change color of a form for user at run time).
I can use ReadOnly property but it is available only to TextBox controls not for other controls li...
When using asynchronous code to read from streams etc using the BeginXXX / EndXXX pattern, I believe that any exceptions that occur during the process will be thrown when the call to EndXXX is made.
Does this mean that the initial call to BeginXXX will never throw an exception, it will always be thrown by EndXXX?
Or to put it another w...
I doubt this is even possible. So your app is running and user decides to End Process via Task Manager. Is there a method/action to save data during process.kill? I doubt there is but I had to ask.
Also, if a user shuts down/restarts PC (as in windows update/manual restart), what action would the app execute? Window_Unloaded? On this s...
Why is there a difference in the way the Application object is created in WinForms and WPF?
-> In WinForms we never created the Application object. It was always available (I believe it was Singleton pattern). In WPF, although hidden in App.g.cs we need to instantiate one.
-> In WinForms it was a sealed class, but in WPF the way to go ...
Hi,
I have a winform app that is writing to console and it seems to work well. I'm using this code:
AttachConsole(-1)
Console.Out.WriteLine("Hellow world")
FreeConsole()
The question is:
If I run the app's exe file from command line, and try to redirect the output into a file. It doesn't work.
For example:
C:\ > myapp.exe > c:\out...
i need to know what happen when i press esc key on datagridview conrtrol & can i simulate esc key behavior progrmmatically ,please any one help me
...
Winforms ComboBox Shows {value=value, key=key} even if I already set the DisplayMember and ValueMember. Is this a known bug?
I have 2 Comboboxes, lbSelectedGroups and lbAvailableGroups, both of them are bound to List<Role> and List<UserRole>, respectively, through a BindingList.
Both of them will be populated in the constructor, but ...
How do I prevent multiple form opens
FormTanımlama frmTanimlama = new FormTanımlama();
FormRapor frmRapor = new FormRapor();
frmTanimlama.Close();
frmRapor.Close();
FormIslem frmIslem = new FormIslem();
frmIslem.MdiParent = this;
frmIslem.Show();
Other forms doesn't close When I open a new form
...
I seem to be having trouble with Threading.
First let me explain how the application is built.
I have a class that extends ApplicationContext, witch is my core class for the whole application, within this class I load new windows such as the login window.
then each window talks back and forth to the application context class.
I have ...
I want to show a print preview dialog for a WebBrowser control that I have in a WinForms application. I am using .NET framework 3.5. I am aware that I can show a print preview dialog as follows:
webBrowser1.ShowPrintPreviewDialog();
But I would like to perform some operations on that dialog, namely specify its size. In order to do this...
I'm looking for a winforms control that can output text like in a console window (output is appended to the bottom, color formatting, etc.) Much like the "output" window in most IDEs.
I tried making one myself but it didn't work the way I wanted, so I'm wondering if there is some existing control out there.
This is for an open-source p...
How to send/receive a HTTP request (it is good to give me a link)
...
We have a VCL Delphi 2005 application, and would like to use DevExpress's XtraReports components, which is for .NET. Is it possible to use it without converting the VCL Delphi application?
Perhaps by converting the components as COM objects, or creating a WinForms application, and somehow embed the form into a VCL form?
Doesn't sound t...
Hello,
I am new to ADO.net and have this problem:
Let's assume I have these two tables in a SQL Server 2005 database, with these columns:
[Orders]
OrderID
OrderDate
ShopID
TotalAmount
TotalTaxAmount
etc...
[OrdersDetails]
OrderID
ShopID
ItemID
Quantity
Amount
TaxAmount
etc
I have started a WinForms application to get myself st...
This is a Kiosk application. I need to block the user with a form, such that he cannot pass through it. I am doing this using WindowsSetPos() function. Which is working fine.
The problem is, There are two 4 Textboxes in the form which i block.
TabIndex is not working !!!
Every time is enter a value in the textbox, i need to click usin...
private void screensaverWindow_Load(object sender, System.EventArgs e)
{
this.BringToFront();
this.Focus();
this.KeyPreview = true;
this.KeyDown += new KeyEventHandler(onkeyDown);
}
onKeyDown() is never called. Any idea why?
EDIT
This works in release ...