I'm basically looking for a replacement for RichTextBox or TextBox components that is fully written in c# without using pinvokes in order to keep cross platform compatibility.
RichTextBox contains for example functionality to highlight URLs in the text and provide a handler for event when user clicks on the link. But there is no way to ...
I dont have any idea on how to make the password like this--> ***
How can I do that in vb.net? so that the user will be more secured.
...
I don't understand why Cursor.Position is different from MouseEventArgs.Location, they should be the same, don't they?
Edit: The answer seems to suggest that Cursor.Position== PointToScreen(MouseEventArgs.Location), but my testing indicates otherwise.
...
I'm using WINFORMS not WPF.
I just know basic c# .net gui programming. I donot want the traditional windows look. I want to have my own custom look (eg. gtalk, antivirus softwares, media players, google chrome).
Actually I'm inspired by google's PICASA software. Its awesome. I want to do something like that.How can I do that? If there ...
When I expand a TreeView node by clicking on the plus sign right to it, the node gets selected. How can I avoid this? I want to be able to expand nodes without changing the selected node (like in RegEdit.exe, for example), and only change selection when the node text is clicked .
(Forgive me for what seems to be a basic question - I did...
Hi,
I have a situation where in I have to display data in tabular form with each cell having multiple pair of values,list of values as show below
Column1 Column2 Column3
1 v1 v2 vl1
vl2
vl3
2 v3 v4 vl4
vl5
vl6
...
For a OSS project, I'm trying to add controls programmatically to a WinForms view.. and I want to make these editable and resizeable as in the Visual Studio Designer. I've been playing around with adding programmatically, using Controls.Add(label).. but I'm struggling to work out how to make the UI editable.
I'm assuming it would make u...
I derived a class from ComboBox, made it an owner drawn list box (DrawMode.OwnerDrawVariable style), and by overriding OnMeasureItem and OnDrawItem I add special items to the drop-down list (separators, for example) which are of a smaller/larger size than the normal items that inhabit the control.
Now, the problem I'm having and can't s...
What is the difference between ControlStyles.DoubleBuffer and ControlStyles.OptimizedDoubleBuffer?
ControlStyles.DoubleBuffer does not show up in the Intellisense drop down whereas ControlStyles.OptimizedDoubleBuffer is in fact listed.
The MSDN documentation does not make the difference immediately clear (to me at least).
...
I am designing a list-based app in C# WinForms where I want to store my data in an XML file (which will eventually get serialized into a database). I have a custom control that displays my list data based on my XML, but I'm having trouble determining the best structure to handle the data. I have a ListManager class that keeps track of an...
draw rectangle using c# and i need to draw the arc in every edges first of all i draw rectangle and then i need click button it will draw the arc at edges, how can i do it?
...
Hi there.
I'm getting alot of issues lately in a project im working on with databinding. When im about to display a certain form that has bindings inside its controls, the .Show method throws expcetions regarding the binding - "Cannot bind to property or column on datasource. Parameter name: dataMember.".
Now, I'm quite aware this is a...
I am using Listbox for display a list. I need select all above item if an item is selected and also do not allow unseleted above items.
...
I have an annoying problem. Sometimes Visual Studio does not show option "View designer" for some of my forms in solution explorer. It does not show design mode errors, just doesn't show option to use the designer. I cannot figure out exact cases when this happens.. Does anybody have some ideas about what causes such behavior of solution...
I want to to create a simple client/server chat application.
The idea is that when one client sends a message to the server the server informs the other clients with the change.
What is the best way to do so without having to deal with firewall problems?
Can it be done with web services over http?
...
Is there a way to create a controldesigner to allow for docking to left and right sides only? Instead of top, bottom, fill, etc... Thanks.
...
Hello!
I want to set the CloseReason of a form after I call This.Close() inside the form.
Usually, this forms is closed by itself calling This.Close(), but I want to ask the user if they REALLY want to close the form, and send a mbox with some info. But I have this:
protected override void OnFormClosing(FormClosingEventArgs e)
{
...
How to I populate a TreeView with a directory as a string. I am using the FolderBrowserDialog to select a folder and the SelectedPath property to get the string path (i.e. C:\Users\Admin).
Also, could I view files like this?
...
I have two sections(primary and secondary) in a form with several textboxes which display information. On the secondary section I've added a checkbox (which when checked) I want to copy the information from the fields on the primary section into the fields on the secondary side. If its unchecked I want it to leave the field as blank.
He...
I have a Winforms desktop application that is loading multiple MEF parts with the same Interface type.
Problem:
When I try to load more than one of the same type I get the following exception:
The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced a single composition er...