.NET 2.0 WinForm print screen
I would like to print an image of a dialog, as if [alt][Print Scrn] were used. Does the framework allow for this to be done programmatically? ...
I would like to print an image of a dialog, as if [alt][Print Scrn] were used. Does the framework allow for this to be done programmatically? ...
I have to display a PDF inside a winform (c# on .net 2.0 framework). For now, I am using the ActiveX PDF control provided by Adobe. I have to disable the entire control so that a user can't print or save via right-click or hotkeys. Unfortunately, many of the documents need to be rotated (just viewed, not permanently saved that way). ...
I'm working with an ActiveX control placed on a winform. I'd when the user tries to save or print, it will always show a dialog box first; I'd like to either immediately close the dialog box or keep it from displaying in the first place. The control in question does not raise any events that would let me know what button they pushed, ...
Hey All, I've got a strongly typed dset, w/two datatables: Parent and Child, w/a relation linking them in the way you'd expect (e.g. parent-has-many-children). On my Child Detail form, I show lots of info on the current child, w/binding calls like so: me.txtBirthDate.DataBindings.add(New Windows.Forms.Binding("Text", MyDataset, "Child...
I have two controls which are both contained within a user control. Panel location: 49, 400 Panel size: 787, 70 Picturebox location: 25, 0 Picturebox Size: 737, 700 Picturebox is seen underneath panel. I could use some advice on the best way to determine the area of the PictureBox image covered by the panel, so I can copy the...
In my .Net app, I keep running into the issue of a particular form/control which I expected to receive a keyboard event does not actually receive it. My debugging of this has not progressed much beyond caveman, eg setting breakpoints in all my controls, and seeing who ate a keyboard event that shouldn't have. There must be a better way...
Is there a way to center-align the text in a WinForms form? Also known as the title bar caption or title bar text? So far the only way I can see to do it is pad the string with spaces. I am setting the title bar caption using the Form.Text property. I should add that I am using a 3rd party ribbon form, so the app looks like a Microsoft ...
I have a Form object with a title bar displayed. I need a pure managed way(P/Invoke-free, both Mono and .NET compatible, preferrably a .NET 2.0 API) to detect when the FORM itself starts being dragged, changes location and when it is dropped(not any content). I did this in the past in Mono but I don't remember how anymore and I don't k...
In Windows Vista, all standard window borders are translucent with some sort of a glass distortion effect on whatever is under them. This glass effect can permeate other areas of the window--such as surrounding the address and search bars in Windows Explorer or the playback controls in Windows Media Player. What if I want to do this in m...
Hello, I am struggling to find a way to create the Forms functionality that I want using C#. Basically, I want to have a modal dialog box that has a specified timeout period. It seems like this should be easy to do, but I can't seem to get it to work. Once I call this.ShowDialog(parent), the program flow stops, and I have no way of c...
I have created an application that can save data both local drive and isolated storage. Then I have tested it by deploying via ClickOnce with FullTrust. This worked correctly, but when I set it to PartialTrust (Internet zone), the application cannot start up. How to solve this problem? Thanks, Ek Add Information #1: I have tried to cr...
I am developing an application in which I need to extract the audio from a video. The audio needs to be extracted in .wav format but I do not have a problem with the video format. Any format will do, as long as I can extract the audio in a wav file. Currently I am using Windows Media Player COM control in a windows form to play the vide...
The question is simple: how to do it? I've a couple of MaskedTextboxes which are filled by some indirect user actions (so not by typing in values directly). The text within the textboxes is colored red when the input is being rejected by the mask. Fine so far. However, I don't want the end-user to be able to edit the boxes directly. So,...
I'm creating a control with properties of type System.Net.IPAddress. The designer shows these as read-only, and seems to be matching them up with resources. Is there a way to make it so that the user can edit these properties in the designer properties window, rather than having to open up the resource editor? ...
I am using Wndows XP SP3 x86 + VSTS 2008 to write a simple Windows Forms application using C#. There is a button called button1 and here is the event handler for its click event, when executing the if statement, there is Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException. Does anyone have any good ideas what is wrong? ...
Hello, I have 3 forms in my project form1 , form2 , form3 and it was running smoothly now i have added one more in my project form4 . The first three forms are already linked up through ShowDialog(). I don't want to touch Program.cs file. How can i call form 4 first as start up form ? Earlier form 1 was the first form to appear in my...
Hi, I'm looking for WinForms .NET interactive chart control that will support timeline. By interactive I mean - something that will allow user to grab a top of a bar and change the value just by dragging it up and down. In some way the bar will behave like a horizontal slider By timeline I mean something that will allow user to scro...
How can I allow selected rows in a DataGridView (DGV) to be moved up or down. I have done this before with a ListView. Unfortunetly, for me, replacing the DGV is not an option (curses). By the way, the DGV datasource is a Generic Collection. The DGV has two buttons on the side, yes, UP & Down. Can anyone help point me in the right di...
I've got two list boxes, one a master, the other a child. When the index changes on the master, the child listbox gets filled appropriately with records relating to the master. My problem is coming up when one master takes a long time to get all the records and before it has completed getting the records, a user clicks a different mast...
Winforms / .Net 3.5 I am using a combobox with the dropdownstyle set to dropdown (allows users to enter data). The problem I am having is with how to setup the combobox so it updates my bindingsource with values from the list and also when a user enters data. For example the combobox may contain the following values: "Red", "White",...