Hello. Does anyone know how I can get the location of a program that has been installed. My C# WinForm is meant to launch the installer for a program, mainly games, and then be able to detect where that program was installed. Or even if it was installed successfully. Would I have to look in the registery for the location of installed pro...
We are about to automate number of process for our reporting team.
(The reports are like daily reports, weekly reports, monthly reports, etc..)
Mostly the process is like pulling some data from the oracle and then fill them
in particular excel template files.
Each reports and so their templates are different from each other.
Except the ...
Hello,
I have a Table Machines that made of:
ID = Identity , Primary , AutoIncrement,NOT NULL
SN = Unique , String , NOT NULL
Name =String
now I am using a form to insert data into this table,
and I am using BindingSource and ErrorProvider,
I am handling Null and Empty string in the DataSet layer (partial class in the dataset.xsd),
no...
I want to draw a custom TabControl with custom functionality.
To do this, i inherited the Panel class and overrided OnPaint method to draw with TabRenderer class.
The problem is that TabRenderer working only when visual styles enabled (can be checked with TabRenderer.IsSupported), but what should i do if visual styles disabled?
In thi...
Hi,
Is there any way, to save formatted in database from richtextbox?
I've got richtextbox and some parts of text in this are bold.
string s=richtextbox.Text obviously doesn't work.
And If I can get this formatted text how to save it in Ms Sql Server 2005 ?
...
I am developing a Client-Server based application in which client application will access server database to store billing information. It will also have report generation facility. Windows Forms is good in document printing & I don't see such facility or controls in WPF. If I am wrong then please correct me.
I want database security, w...
I have a combobox where the SelectedValue on the combo is bound to a property on a business object.
Everything works fine, but the property that's bound to the SelectedValue on the combo only gets updated when the focus leaves the control. I understand that the property doesn't get updated until the control is validated (loses focus), b...
I have a DataGridView that's bound to a DataSet. It has columns DateCreated, Weight, DateUsed. Those three columns do not take up much horizontal space on DataGridView that is nearly full screen. Is it possible to have those columns wrap back to the top if the view is wide enough to support a second group of those colums. So across the h...
I've got a custom extension of the WinForms DateTimePicker and it works fine, except for the fact that it gives this anoying beep sound whenever I press the escape or enter key.
I tried overriding OnKeyPress like described here, but this way it blocks all of the pressed keys and thus makes it impossible to enter a date or a time using t...
I have a simple application which is hosting a Managed DirectX Control using WindowsFormsHost. I've overridden the paint methods in the Control to prevent flicker:
protected override void OnPaint(PaintEventArgs e)
{
if (this.Visible == true) { base.OnPaint(e); }
}
// Don't paint the background unless the control is not visible
prot...
In a C# Winforms (3.5) application I have added a class that contains many properties (get/set) used to stored values from a 12 form long process.
After form 12 I would like wipe out all the property values in the storing class so that the next user won't accidentally record values when starting the process at form 1.
Is it possible to...
I have a set of names (first, last, salutation) and need a control to allow users to select a single name using WinForms. A ComboBox works fine if the there are ~20 names, but not so well when there are >100 names.
Can anyone recommend a name picker? Perhaps an address book control that I could customize? It's not too hard to write m...
I am wondering what is the best way to go iterate through all the rows in a datagridview and get the values from the cells.
Here is what I am thinking of doing, but I don't really like it because if I rearrange the columns then the code will also have to be changed.
for (int i = 0; i < dataGridView.RowCount; i++)
{
...
Hey,
How can I insert radiobutton in Menu as Menu item. I use WinForms and there I see only few option to insert other controls, but no radio :/
Also it's impossible to drag it from Controls and drop in menu in Design View :/
...
Hey,
How to create shortcut to menu in WinForms.
I think about something like in Visual Studio and Firefox, where I press Alt and mainly menu items shortcut letters have been underline.
How to do this??
...
Hi everyone,
I'm trying to write a dictionay application on C#. There is a scenarios that user selects a text and press a hot-key, I want to pop-up a quick windows that display the search result of the selected word (just like Lingoes does)
How would I do it in C#?
Thanks in advance
...
Hi, I'd like to draw a progress bar with percentage in its center,
but I'd like the text to have negative (contrasted) color of the background.
So the part of the text that is over the filled portion of ProgressBar would be white and the part over unfilled portion would be white.
I could do this simply by "cheating"
painting the bla...
I need plot a curve for my data , the source is like :
12, 14, 18, 30, ....
I was using Qt Qwt, and need port it to windows forms, are there controls? free of charge?
...
How can we copy one datacolumn with data from one datatable to another datatable ? I have datatable like
DataTable datatable1=new DataTable();
and there are four columns in that table but I want only one column.So I am doing like
DataTable datatable2=new DataTable();
addressAndPhones2.Columns.Add(addressAndPhones.Columns[0].ColumnNa...
Hi, I'm trying to display standard file/directory context menu in WinForms application - I'd like to enable the user to do things with files in my application as he could in Explorer.
There should be two options
popup the context menu with some system call
read everything from the system context menu and insert it into my context me...