Hi,
I have a WinForms TreeView and a tree, built from custom node objects which inherits TreeNode the problem is that these nodes can be displayed in only one tree at the time.
Now I have multiple controls with a TreeView that should display these nodes. How can I indicate that the treeView is displayed?
I can catch the VisibleChanged e...
I have Form1 in my application calling another form - Form2 using ShowDialog() method. After some user interaction Form2 calls its Hide() method. After that my application sometimes loses focus sometimes not. It could be some design mistake.
code extract:
public class Form1 : Form
{
Form2 form2;
public void SomeMet...
How are GUIDs generated in C#?
...
Hi I have this program Im trying to make
but now Im trying to add an option to delete items ( only the selected ones ).
thanx in advance
...
I want to add a collapse/expand capability to a Windows Form.
Is this built into the splitter control? Is there a tutorial for this UI technique?
The immediate project I'm thinking of is a simple UI, Windows Forms. It has 3 panels, one oriented at the top, one in the middle and one at the bottom. I want to be able to collapse the ...
Hello.
I'm developing a Windows Mobile 5.0 or above with .Net Compact Framework 2.0 SP2 and C#.
I have a custom control called PullDownMenu (it inherits from System.Windows.Form.Control). This is the code that I use on a WinForm to show it:
PullDownMenu menu = new PullDownMenu();
menu.Location = new Point(0, 0);
menu.Dock = DockStyle....
WinForms, .NET 3.5
I have a ComboBox that needs to display a growing list of items -- there is a long running process fetching items, and I want to be able to display items to the user as they build up over time.
Setting the DatSource property to a naive Array/List doesn't work since subsequent additions are not registered by the Combo...
I have a listbox & textbox above it. I want to the user to be able to search the listbox just by starting to type the letters of the word or part of the word in the textbox.
What is the best way to code this? The most efficient?
An example would be great.
...
Hi,
I need to display decimal values in DataGridView
if (dgvClients.SelectedRows.Count != 0)
{
DataGridViewRow row = dgvClients.SelectedRows[0];
row.Cells["NetAccountValue"].Value = info.DecimalValue;
}
I need to format value up to given digits after decimal separator.
The problem is ...
This is a followup to this SO question: How do I make a collapsible UI region on the form?
I'm making a winforms app with a region (panel) that is expandable or collapsible.
I used the expand/collapse bitmaps from the VS2008 Image library, for the buttons. I put those two into an ImageList.
I wanted the button to have no border...
Hi - I have a simple form with one text box and a panel with three radio buttons in it. I have used a validation event with an error provider to force the user to place a number in the text box. My problem is with the group of radio buttons. The user needs to select a radio button. I found that you can't validate on the panel containing ...
In a datagridview with rowheaders visibility set to false and allowusertoresizerow set to true, i need to prevent the celldoubleclick event to trigger if doubleclicked on the rowdivider (Toublearrow of the row resize is visible when the cursor is on the divider).
Thanks
...
What approach should I take (if it's even possible) to unit test a standard event driven Winforms app where display and logic are mixed together.
...
I'm writing a plug-in for another application through an API. The plug-ins are distributed a DLLs. Is it possible to embed other files in the DLL file like pdfs, images, chm help files etc... I want to be able to provide documentation with my plug-in but I'd still like to retain the ability to distribute the plug-in as a single file the ...
Hi All,
Sorry about the lame title.
I have a project I'm working on and I would appreciate any suggestions as to how I should go about doing the IO stuff.
Ok, I have 3 text files. One file contains many many lines of text. This is the same for the other 2 files. Let's call them File1, File2 and File3.
I need to create a text file, fo...
I am trying to create some snap to grid functionality to be used at run time but I am having problems with the snapping part. I have successfully drawn a dotted grid on a panel but when I add a label control to the panel how to I snap the top, left corner of the label to the nearest dot?
Thanks
...
My OpenFileDialog has one single Filter which is also the DefaultExt. I wonder why, when the dialog opens, I also get all the Internet Shortcuts listed (it is OK to get the shortcuts to folders, for instance, but not the *.URL files).
Is there some magic switch which I can turn on in order to net get them included in the list displayed ...
I am just trying to create a form control in winform in .net with custom shaped of balloon shape.
There is need of a balloon tooltip which is transparent and I can put buttons on tooltip,but
tooltip in .net does not provide facality that we can put the buttons on tooltip control so
I want to make a form control looks like a balloon toolt...
Hi to all. Is it possible to restrict a user from opening a sub folder like "permission denied" message should display while trying to open the folder. If yes, help me to solve this using vb.net in winform as well as using vb.net in asp.net
...
Hi,
I am editing custom control in control editor of Visual Studio 2008
My custom control has datagrid view on the left and buttons on the right. I want my control when resized to keep button size constant always and keep them aligned to right border and only my datagrid control to be resized so that horizontal distances between borders...