I have memory problem in my application. Each time I fetch data from db and assign it to Grid, memory increases and sometimes when extensive searches are made the memory reaches to 1 G.B.
There can be other memory handling issues but to test that searching and binding data repeatedly consumes good amount of memory I have created a new w...
I have a form that has a member that implements IDisposable but not IComponent. I need to dispose it when the form disposes. Unfortunately the form's dispose is already implemented in the automatically generated portion of the code, and is not partial.
How can I dispose this object?
...
Say that I have a CheckedListBox with items "1", "2", "3", "4", and "5" in that order and I want to select "2", "3", and "4" by selecting "2" then holding shift and selecting "4". Is there any built-in way to achieve this with the CheckedListBox control? I found an article on how to use the SelectedIndexChanged event to get close to th...
Hi,
I was creating a new form and my IDE crashed, or it was having problems, and now every time I create a new form it has a black line across it. The black line is not something I was adding, it appears to be the black line from the top of the form getting painted in the wrong place. The interesting thing is that every time I reload ...
I am doing this lab out of a book on my own, and I made an application in which sharks are racing. There is a radio button that should update a label on the right dynamically, as well as a button that actually starts the race. Everything used to work and then I renamed a few things, and now nothing works.
Screenshot of application:
F...
hi
how Disable right mouse click inside the TextBox?
thank
...
I think that is what this is called: http://img163.imageshack.us/img163/9234/13016288.png
I want to be able to add stuff like that to my program. Such as an open button and other buttons that would execute a method within the app. This is in C#, by the way.
I DID look into the Windows 7 API Code Pack, but it.. doesn't work the way I wa...
hello
i wana work on a windows forms application that several users can work with different roles, for example 3 roles ,that "A role" only to access some parts of the program and cannot see and access it and "B role" can acess to entire of application, but some parts are just right to access and view, "C role" full access to all parts ...
I have a form in which there is a table where there are two columns, name and content.There are several rows in the table. I want that whenever i hover my mouse over an item in name column in a particular row, the tooltip should display the text related to that item. How to do that?
...
Hi all,
i have just started using visual studio 2008.I am working on c#.
I want to add SQL database particularly LOCAL database (.sdf) to my project and want to use queries which will save data in database and fetch some data from database and which will display and will perform different function.
So, if any body can give me any sma...
I am reading up about SuspendLayout() and ResumeLayout(). What I can't figure out is, why should I do/use this. I know you use it when you add controls at runtime to a control-container.
It has something to do with setting properties like Dock, Anchor, Location, etc.
But I don't understand what the additional value is of Suspend- and R...
hii
I am having a form in which there is one datagridview which is in the flowlayoutpanel and there is other controls such as button an text box at the bottom
I need to resize the datagrid view when the form is resized.but it shud not fill the entire form because the button and text box should not be get affected.but i need the datagri...
Software I use: C#, VS-2005.
I have a populated combobox in datagridview. I have noticed that when the datagridview property RowHeaderVisible is set to false then no keydown event is fired on editing control. But when I set RowHeaderVisible to true, the keydown event works fine.
So, I know that the RowHeaderVisible property set to true...
I have a MDI window with a datagridview control which is used to display a list of records in a database table(s). If the user wants to add a new record, they click "new" and a popup(Child) window displays. The popup window accepts data from the user (name, number, date, etc) and is then submitted back to the server when the users clicks...
How to print .rtf file using C#? (WinForms/WPF application)
...
So I have this code to change the background selection colour of a listbox item to red in the default Winforms.
if (e.Index < 0) return;
// if the item state is selected then change the back color
if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
e = new DrawItemEventArgs(e.Graphi...
I am using wpf framework 3.5 for this I had to use winworms -> datetimepicker.
I need to do Binding on the Text
<wfi:WindowsFormsHost >
<wf:DateTimePicker Format="Short" Text="{Binding date, Converter={StaticResource conkey}}" x:Name="p_datePicker" />
</wfi:WindowsFormsHost>
EDIT:
Answer: The need to use WPF toolKit DatePicker an...
The following code is a custom control. Using this control in the Visual Studio designer cause Visual Studio to CRASH without any noticeable details.
I'm using Visual Studio 2008.
Am I doing something wrong here?
using System;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace InstalacionesSayma.GUI
{
...
I have an application in which you add file locations into radgridviews.
To create the gridviews there is a button which Creates a new tab with a gridview in it.
Resources = new RadPageViewPage();
ResourcesGridView = new RadGridView();
TabContainer.Controls.Add(Resources);
Resources.Controls.Add(ResourcesGridView);
etc.
The problem...
I'm developing a .NET Windows Forms application.
I use the model-view-presenter design pattern,
passive view + supervising controller, to be more exact.
The presenters in my application perform background operations,
which can take several seconds (or longer) to complete.
When the background process completes, the presenter invokes a c...