I have a winforms 2.0 app
with a listbox in it ( OwnerDraw)
I want to detect when someone is scrolling or clicks on the scroll down thingy ,so that I can stop them from scrolling ( I have tried getting rid of the scrollbar altogether and have failed on Vista )
is there anyway to tell when my listbox is being scrolled, I cant seem to find...
How to Specify NOT with Regular Expressions for Words
I want to filter a list of event names based on a regular expression. I can create a regular express to include (or match) name, but what would be the regular express to exclude (not match) a name?
For instance, if I want to include mouse events then the pattern would be "^Mouse". I...
I've enabled the AutoComplete functionality on a DataGridView using the following code:
private void grid_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (e.Control is DataGridViewTextBoxEditingControl)
{
var te = (DataGridViewTextBoxEditingControl)e.Control;
...
I have setup file of winform. but i want to change my icon how to change please help me
...
I have an Extender component of IExtenderProvider which extends a TextBox to have a "selected color". The default value for this color is "highlight". The user can change the "default selected color" in the Extender's property grid. If no extended TextBox has "selected color" defined, it will use the specified "default deleted color" val...
Hi all,
I want to design a program contain browse button, where we can browse to the selected folder and open the file inside the folder.
I need a reference and reading where i can solve my problems? Like what methods/class should i used. I'm not prefer reading from MSDN coz hard for me to understand their theories. FYI i'm still begin...
I have listbox, button, and textbox controls in a Windows application. How can I display multiple selected values in a textbox.
this is my code
textBox1.Text = listBox1.SelectedItems.ToString();
but it display in textbox like this: (I select more than one item)
System.Windows.Forms.ListBox+Selec.
please help me
...
Sorry about the weird question title, but I don't really know what to call this. It simply makes no sense to me. Here is the code:
public partial class ParameterPanel : FlowLayoutPanel
{
...
public void SetContents(IEnumerable<IParameter> parameters)
{
if (parameters == null || !parameters.Any())
return;...
I'm trying to wrap my mind around the MVP pattern used in a C#/Winforms app. So I created a simple "notepad" like application to try to work out all the details. My goal is to create something that does the classic windows behaviors of open, save, new as well as reflecting the name of the saved file in the title bar. Also, when there are...
Hi,
Typical master - detail scenario e.g Order has many order lines
One form requests the user for an order number which then opens another form to display the order lines for that particular order.
I'd like to have a summary of order lines whereby when one is selected all the details are displayed for that order line below.
I have l...
I am working on an application that has multiple dockable panels like Visual Studio. At some point the accelerator keys for the menu stopped working. They sometimes work depending on what panel is currently active. When they are not working pressing the alt key sets the focus to the menu bar and shows the underscores under the appropriat...
There are certainly some advantages in having a selection rectangle highlighting the currently selected element which also has the focus. However an element with padding can cause the rectangle to be drawn on a totally unwanted position and therefore is hindering and not helpful. So without further ado my question is: Is there a way to h...
Hello,
I would like to open a PDF file at named destination using WinForms (C#). Here is my code:
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = "Acrobat.exe";
myProcess.StartInfo.Arguments = "/A \"nameddest=Test2=OpenActions\" C:\\example.pdf";
myProcess.Start();
It always ope...
I'm relatively new to TDD, and still trying to learn to apply some of the concepts. Here's my situation.
I've got a WinForm with a DataGridView. I'm trying to write a test for the routine to be called by a button click that will perform some operations on the selected rows of the grid.
So I will be passing in the DataGridViewSelectedRo...
Hi I am using forms in .net and i am adding lots of linked labels dynamically during runtime,
I am adding these linklabels to panel and adding that panel to the winform. When the no of linklabels increases the form puts out an auto scrollbar(vertical)...
Now when i scroll down using that autoscroll the form is not updating its view as i...
I am developing a C# application with .NET Framework 2.0.
The problem is, that on my client's PC, the controls get expanded, layout changes (positions of the controls gets changed), sometimes buttons get missed entirely. It happens even on Forms with 2-3 TextBoxes, 2-3 Buttons and some Labels. I tried a lot of investigations. I tried to...
I'm trying to build the server/network settings system for my IRC client. Because of the relational nature of the networks and servers I opted to use SQLite to store everything.
My first step is making the settings dialog, which is like you might expect; a TreeView that holds the networks and server, and a space on the side to edit thei...
I've written a small utility that I wish to sell for less than $10.
My primary concern is "casual piracy". The scenario that plays out in my mind is this:
User buys the program, enjoys using
it and tells their friends. The
friends copy the application to their
USB drives and take it home - using the application for free (maybe...
How can implement reordring in winforms datagridview by using the feature of drag and drop?
...
I am now facing one problem which to get the live image from Camera (eg. Sony, Canon) into winform and also control the camera capture button from a button in the form.
have Anyone build something like this, or are there any similar project like this which is done in C#?
...