I have created a simple c# Winforms program that uses SQL Server and several DLLs. What steps should I do in order to get the program run on another computer?
I.e. should I transfer the exe file + the dlls I used?
Should I also install .net framework 3.5 on the other pc?
I used visual studio 2008 to compile.
...
Hi All
This might be abit "out there", but here goes:
I have a User Control. And I have a project. How can I have my user control pass a particular "event" to my project, and then have my project run that event?
...
In my appplication I have a ListBox with items in the left panel and in the right panel I have the item details.
If user click a new item in the listbox and if the current item was changed I want to ash the user if he wants to save changes or discard them.
The way I am doing now is on SelectedIndexChanged of the listbox to remember pre...
Hi there!
I hope my title is not misleading, but what I'm looking for is a file-type datastore for a Winforms app (.NET 3.5) that will allow me to:
store/retrieve strings and decimal numbers (only);
open and save it to a file with a custom extension (like: *.abc); and
have some relational data mapping.
Basically, the application sh...
I have created a progress bar custom control and would like to embed this into a list which can be sorted and placed on a windows form using .Net 2.0.
What is the best approach for this?
Is it possible to just add it to a ListView as a subitem? Is there a better way to achieve this? I want it to be as lightweight as possible.
...
Hi All
I have seen many other samples out there that draw smooth text on glass. But I can't use them. I need every single label that gets added at runtime to be smooth. I can't just "draw" text onto the screen.
Is this at all possible, and are there and sources around?
Thank you
...
What i want to do is set the background of a row based on some criteria, but the datagrid will be fairly large so i don't want to have to loop over all the rows again. The rows get created me doing something like "myDataGridView.DataSource = MyDataSource, so the only way i can think to edit rows is by using an event.
there is a row*s* ...
Hi all,
I have a Windows Forms application (C#) containing a ListBox into which I have added some items (I'm not using a DataSource). I want to filter the items in the ListBox to show only items containing a string I'm searching for.
I have done this by keeping a list of the original items and selecting matching items from that list ea...
Imagine the following scenario:
this.SetStyle(ControlStyles.UserPaint, true); //this doesn’t change anything
…
void OpenSomeForm()
{
SomeForm sf = new SomeForm();
sf.SomeEvent += new … (SomeEventOcurred);
sf.ShowDialog();
}
private void SomeEventOcurred(…)
{
OnePanelInThisForm.Invalidate();
}
private void OnePanelInT...
I am printing an invoice from a winforms form. All is great. But I want to draw boxes that will show up on the printout. I want to use lineshape from VB powerpack. However, if I could print the line outline of textboxes I would want that as well.
If I use lineshape the ControlCollection should not have it since it doesnt not descend fro...
Hi All
I was just wondering, is there any benefit in me drawing my own buttons (just rectangles) over loading 80 of them from resources?
Thanks
...
Title says it all. What is the difference between a DataSource and DataAdapter? I'm trying to decide if I should descend from IDataSource or IDataAdapter for code to be shared between Winforms and WebForms and I can't seem to figure out what the difference is other than slightly different ways to use them.
...
What is the best free Windows Forms validator control.
I want to use it in a free (and maybe open-source) project.
I know these:
ValidationProvider Control not working in VS2010
DXValidationProvider works only for devexpress controls.
Supervalidator from DevComponents meets my needs but it isn't free. here is a picture of it:
...
I'm making a simple chat program for me and my friends as a tech demo. I had the idea to have a small drawing pad thing that would be shared between all connected users.
What could I use in this situation (control wise)?
I know I can convert an image to a byte[] and pass that to everyone, but I'd need to use a pictureBox to get said i...
WinForm CheckBox control implements both CheckedChanged and CheckStateChanged events. As far as I can tell both fire when the checked status of the checkbox is changed.
CheckedChanged precedes CheckStateChanged, but other than that I see no difference. Am I missing something? Should one be preferred over another?
...
Any help? Here's my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Client
{
public partial class MainChat : Form
{
bool ShouldPaint = false;
public MainChat()
...
How do I display a DataGridView within a cell of another datagridview in C# forms app?
How would I have to handle Sorting & value changed if this possible?
That is the only way I can display data to make some sense.. Think of it like I have a task column and dates column. Under the dates column I have a list of things to be done. These...
So, the problem is such as this: I have a method that does stuff and updates a progress bar. If I call the method after the form is fully loaded (i.e.: by assigning it to a button on the form) everything works fine. The problem is that I need the method to start working as soon as the form loads, by itself, so I would place it in the For...
Hi folks
I have a client-server project (small project for companies in C#) and the server has a DataSet with some tables (there is no Database for some reasons so we save the DataSet as an XML file).
when the clients connect to the server, the server should send some informations to the client depends on his privileges and some clients ...
Question A.
Given
A string in rich text format that may have paragraph, tabs, space, line break, indentation, (or even image?)
A width for the word wrapping rich text control/editor
How do I know the height of the content after it have performed all the word wrapping?
Is there something like
int MeasureRichTextHeightAfterWordWr...