Is it possible to ownerdraw the entire column header section of a listview? (including the region to the right of the column headers)? ListView is in Details View.
An answer here indicates that the remaining space can be drawn along with the last column header: http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windows...
I'm writing a WinForms app that will need to be able to play an AVI video. This video is stored encrypted so I will decrypt it prior to playing.
What kind of approach could I use to play the video straight from memory? Is there a special WinForms control? Some 3rd-party library? Would DirectShow be my only choice?
...
Hello Members,
I need your help in C# code. I need to create 5 buttons dynamically on windows form and each button should respond to click event. I tried it but all buttons are responding to same event.
...
I am working on developing a form to allow a user to create a master \ detail record.
I want to display the detail values as text fields so I use the details view of the DataViewGrid together with a binding navigator to add \ detail detail records.
The problem is getting the primary key from the master record stored on each detail recor...
I have a User Control for typical CRUD like actions on my WinForm app.
Validate, Insert, Update, Clear, Cancel, and Delete.
On every form I put this on I end up adding the click event, ucPersonNav.btnValidate.Click += new EventHandler(btnValidate_Click);, for every button.
What I am wondering is can I have the Events be on the User C...
I'm trying launch an application using c#, and have been experimentiing with the following line, if I run this from a cmd prompt it's ok but when running in my forms app it fails.
Process.Start(@"C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe","+connect 91.192.210.47:2304");
The Error is Win_Improper_quit_b...
I want to create a property off a WinForm custom control that I can browse to an object in my solution and set a string. I am thinking that there is already a browser editor control but I could not find any example on Google.
Example (see the question marks):
[Browsable(true),
Category("Custom"),
Description("Specifies the obj...
I would like the converse of RichTextBox.GetLineFromCharIndex()
I have a line number and I want to retrieve the char index for that line.
The method might be called RichTextBox.GetCharIndexFromLine().
Is it possible, simply?
...
In my WinForms app, I have a few textboxes that the user typed some data into. I want to store the data, but I don't want to use a database. In my stone-age C++ days, I'd just use a .ini. Somehow, app.config doesn't seem like the right place to store this data, though.
What are my other options?
...
I have a masked textbox on my winforms application where if a user clicks inside of the masked textbox, the cursor will start out in that location. For example, if they click in the middle of the masked textbox there will be a blinking cursor in the middle. How can I get the cursor behavior to be such that it will default at the left-mos...
I have a WinForm app with multiple DataGridViews bound to SortableBindingLists.
Under some circumstances, I need to programmatically delete an item from the list that grid is bound to.
I can't seem to get the DGV to recognize that it's data has changed, or, specifically, that it has fewer rows. I'm calling dataGridView1.Invalidate(), a...
I am using a set of DataGridViews (dgv) to display a class's members via properties. I use the dgv so that the user can edit the value of the member right in the view (so I dont have to display a form or a textbox for editing that value).
The structure of the class I am displaying is as follows
Class1 (Displayed in a list view)
...
I've read a number of examples on using BackgroundWorker objects to handle executing time-intensive tasks which generate results which are used to populate a DataGridView. However in my case it seems as though the act of populating the DataGridView is what's taking the most time. I'm wondering if this is because I need to format the re...
Using c# / windows forms. Trying to make a form's background transparent, without it losing its ability to receive clicks.
this.Opacity makes the whole form transparent (not just the background
BackColor = Color.Red;
TransparencyKey = BackColor;
makes the background of the form transparent and click through-able. I want the form t...
Hello:
I'm developing a Windows Form application that will typically minimize to the system tray. Being new to .net, what would the easiest approach be for packaging/deplopyment that allows:
The application ensure it puts itself into the startup menu, or something equivalent to this.
Easy updates—like those apps that periodically che...
I have a textbox that does autocompletion like so:
txtName.AutoCompleteMode = AutoCompleteMode.Suggest;
txtName.AutoCompleteSource = AutoCompleteSource.CustomSource;
txtName.AutoCompleteCustomSource = namesCollection;
It works, but only at the beginning of a textbox. I'd like autocomplete to kick in for any word the user is entering, ...
Hi, I've an html page index.html in my windows application folder. now i want to set as a url of webbrowser in form1. how can i do it? is there any syntax like server.mappath() in web application in windows?
ex:
Uri repuri = new Uri("index.html");
webBrowser1.Url = repuri;
how can i map it?
...
Hi, I've created a setup file in winforms application. After installing that setup file i want to run that file at a specific time in a day only.
Ex : every day 12 PM that program automatically popups
how can i do it? any idea?
...
Greetings Stackers,
I have a simple little application that performs some analysis of all our corporate clients, and generates a score for each one based on their activity (think "traffic light" happyness system).
Now, the score that's generated gets it's information from a variety of metrics, and spits out what can appear to be an arb...
I'm trying to change the mouse pointer as it moves over the outer borders of a component. Sort of the same way it changes when moved over the borders of a resizable form. Any ideas?
...