Succinct
How do I performance tune my Linq To SQL DAL methods? Specifically the amount of data being transferred.
Verbose
I have a Winform app that uses Linq To Sql to access it's data. We have 5 branches, 1 physically at the same location as the SQL server and the other 4 at various distances and bandwidths. My app is your typical...
Adding a new Form in the project creates a default form with default properties. I have to change them manually, but in all my project I have the same properties (font, background color, etc.).
Is there a way I can change the default Ide template for Forms?
...
Hi,
We are developing a big .Net Windows Forms application. We are facing memory leak/usage problem in that despite we are disposing the forms.
Scenario is like:
Our application is using 60K of memory with list of records displaying in a Grid.
When user click on a record it opens a form myform.showDialog, show the details. Memory ju...
Hi,
I'm using AxShockwaveFlash com component to show a flash file in windows application.
, I call the method Stop() to stop that flash.
But some of the users, its throwing the exception "Attempted to read or write protected memory,This is often an indication that other memory is corrupt ".
Please let me know why this is happening f...
So basically the very first column in the first row is always selected, I can't figure out a way to have it so the gridview has no selected cells. Any help?
...
I'm building a C# WinForms program, and my textboxes do not allow the user to highlight the text consistently throughout the program.
In some places, the highlighting works normally: you type something in the box, click and drag over some text, and it highlights where you dragged.
In other places, clicking and dragging does not select ...
Hello, Could I add some custom control to the standard Message Box for read input value, for example text fields for user name and password, or I should create custom winform with "Ok,Cancel" buttons and text fields?
Thanks.
...
hi
ho to manage version of my C# program ?
how you do it ?
thank's in advance
...
I am new at this. I am trying to populate a datagrid from a table source. My code is attempting to do two things.
First it populates a dataGrid with columns from a table. Then it adds a column called "SELECT" at the end of the grid. This select is CheckBox. However, when I execute this code, it adds the "SELECT" column twice.
I want to s...
I use Windows 7, so my progress bars all have that green look. I'd like something a little more simplistic though, perhaps something resembling the Windows 98 progress bar.
Is there a simple way to change the style of the progress bar or will I have to recreate it manually?
...
I have a panel docked to the top of another panel. The parent panel lives inside of an Actipro DockManager. If I resize the parent panel, everything is fine. If I resize the form, the child panel doesn't end up with the same width as the parent panel. Any idea how to fix this? I tried manually setting the Width on the child panel an...
I'm writing a new .Net 3.5 Winforms single user application and I'm not sure which database I should use. The database consists of about 30 tables and maximum rows in a table will not exceed 50,000.
The database should be password protected so the client user cannot view the structure or modify data manually.
I'd rather prevent further i...
I have an application written in C# and running on Windows Mobile 5. It currently takes several seconds to load all of the assemblies. During that time the wait cursor spins on top of the screen. I would like to show a splash screen with a progress bar instead. How can I prevent the cursor from being displayed?
...
Using Winforms, C# and VS 2010 I've made an odd discovery that tooltips only seems to work on certain machines, although it seems to be independent of OS. They work on one XP machine but not 2 others, but work on a Windows 7 machine. Anybody ever seen anything like this?
...
This is my question:
1.I have 200,0000 Employee object(Id,Name,Job,Address) store at a database.
2.I read all Employee object to Empolyee[].
3.I create a window form application
(1) I create a WPF UserControl(inside ListBox),name is "wpfUserControl1".
(2) I put "wpfUserControl1" into a window form.
(3) I set wpfUserControl1.listBox...
When PictureBox have parent ListView and ListView RightToLeft set to true/yes I received some artifacts on drawing.
Why this happens and how remove this artifacts?
Images
http://i.imgur.com/kx0zQ.png
http://i.imgur.com/E5il3.png
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
void DrawOnPic...
With syntax highlighting and intellisense if possible. Can be paid but better if free. What I need is a control/class/lib/dll that I can use in a Windows Forms project. I don't need a program. I'm using .net 4.0 with Visual Studio 2010. Working on C#.
...
Hey guys, i figured out how to add items to a listbox one line at a time:
try
{
if (nameTxtbox.Text == "")
throw new Exception();
listBox1.Items.Add(nameTxtbox.Text);
nameTxtbox.Text = "";
textBox1.Text = "";
nameTxtbox.Focus();
}
...
How do I make a listview not automatically check an item when I double click it?
I can try hooking into the MouseDoubleClick event, and set the Checked property to false, but that feels like a bit of an hack. I also run a reasonably expensive calculation when an item is actually checked, and don't want this code to run on a double click...
Background: As part of a small winforms app I'm developing I have a login screen. Besides the standard username/password fields it also has a third field - "Location" which is a dropdown containing possible geographical locations where a user can log on. The list of possible locations depends on the "distributor" to which the user belong...