I have a custom control that has an Items property. I Have applied an EditorAttribute with a UITypeEditor of type CollectionEditor.
Collection Type:
[Serializable]
[Editor(typeof(CollectionEditor), typeof(UITypeEditor))]
public class ListItemsCollection : CollectionBase
{
// methods
}
Property Declaration In The Control:
pri...
I have this situation.
Application.OpenForms doesnt return the right result. ie Application.OpenForms.Count = 0 always..
Purpose of getting the form is get the owner of the Form so that I can pass the owner as the parameter of the MessageBox.Show() function.
...
I have a panel with many controls on it. Tab order is assigned. I want to remove some control from tab order (round). And then restore it. How ?
runtime
.net 2.0 (please, no linq)
...
I have a win forms Usercontrol that is suddenly unable to build, with this error:
Edit- forgot to mention, The name of the project is Datatesting, it is not an external reference!
Error 1 Invalid Resx file. Could not load type DataTesting.TableColumn, DataTesting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null which is used ...
hi
in my C# program i Moves from one screen to another like this:
Form G = new Screen1();
G.ShowDialog();
G.Dispose();
G.Close();
i move from screen1 --> screen2 --> screen3 --> screen4
when i in screen4 and i want to go back to screen1 - if i'll write this.close()
i'll go only to screen3
how to go back from screen4 to scree...
Hi all,
I have written a code to move a file as follows
private void Move_Click(object sender, EventArgs e)
{
string strOrgpath = string.Empty, strNewpath = string.Empty;
strOrgpath = tvwACH.SelectedNode.ToString();
string strPath = strOrgpath.Substring(10);
FolderBrowserDialog fo...
I have a winforms app using a trackbar. The BackColor property is available for change, but doing so makes the color of each "tick" almost invisible. I don't see an explicit property to modify the color of the "tick". Is there something I am missing or a way to change the color of the tick?
...
I am creating a windows application for users with xp, vista or 7 PCs. I was wondering if WPF would work on all these computers, or should I play it safe and just use winforms?
Thanks!
...
Hi, the program crashes if there's no .ico file inside the same folder... I have:
1) Added the MyIcon.ico file in the Application section, also 'embed manifest with default settings' is checked.
2) Made the .ico file as Embedded Resource (Build Action) in the .ico file properties.
3) Added 'this.Icon = new Icon("plat.ico");' in the Pu...
Hi i am trying to make a simple application which will be used to point a web browser control to some of our web applications at my work. I would like to have only one exe file but also have an admin window to change some of the settings and have them persist when the application is closed. is that possible? i have looked at the applicat...
Hey guys, not far into programming and just joined this forum of mighty company so this is a silly question, but what is the best way to clear textboxes in VB.Net and what is the difference between the two methods? I have also seen people be critical of folk using clear objects on their forms and i can see why but in this case, i am only...
I often use this code in winforms applications to wait for events, without using threads.
while(checkSomething()){
Application.DoEvents();
}
The program and pc is still responsive while the loop run, however if I look cpu usage in task managart, it usage is reported as 100% .
Do you know why this happens?
...
Hello,
Can anyone suggest the way so i can create a progress bar to show on the status bar while pressing e.g. a button in a RibbonControl and while this form is creating and loading the progress bar shows some progress. If I try some code like .ShowProgressBar -> position value -> create and load the form -> position value -> .HideProg...
I have a System.Windows.Forms.DataGrid which I bind to a DataSet. The DataSet has a DataTable. In this DataTable, how can I programatically add a button to each of my DataRows?
...
I'm looking to have a Windows Forms toolbar overflow its buttons onto a second toolbar another level down rather than having the dropdown menu. We find that it is not obvious to our users that they need to click the dropdown to see more tools. Suggestions?
...
I have a simple WinForm application that involves a TextBox displaying multiple lines of... get this... text. When I click on the horizontal scrollbar on this multiline TextBox, the horizontal scrollbar jumps all the way to the right, which I really don't want it to do. It will cause pretty serious usability issues.
Anyone know what cau...
Im using C# and Winforms and have a UI consisting of some usercontrols. Some of the user controls are disabled and are only enabled when certain criteria are met. The problem Im having is that when I am on the last nested control of a user control and i hit tab I want to be able to validate that set of criteria and if true enable the nex...
I have prevented numbers from being typed in text box using key down event. But when using Ctrl+V or pasting content through mouse, the numbers are being entered in the text box. How to prevent this? I have to allow all text to be pasted/typed except numbers.
...
Software Utilize : C#, VS-2005
Is This Possible to override Shift+Tab Function/Method or detect Shift+Tab Function and Utilize it with Backspace.?
In Shot replace Shift+Tab Function with Backspace. And Then Backspace will Behave like Shift+Tab:
Is this possible in C#?
...
Hey everyone! I suppose this is my first post on StackOverFlow.com :-)
I've been having this problem for a while.
To make it all simple, suppose we have 2 database tables named "books" and "categories" with the following schema:
books(id, title, catId)
categories(id, catName)
Obviously the "catId" field in the "books" table is a...