Hello,
I have a problem which I can't seem to solve. I have a bound a data table to a datagridview, this datatable has a column called "Status" which is of type boolean. I can set the value to true or false just fine for via code. However, I can't figure out how to check and see if the a give row is already checked or not. This is t...
Is there a way to embed a WinForms app in a web page (assuming the browser is running on a machine with .NET)?
...
Any thoughts,recommendations, patterns on a good way to manage an app with multiple forms.
First page is login, that loads a "main form", from there a user could launch a number of other "sub forms" (could grow over time). User should be able to cancel out of whole app at any point.
I know the way I do it right now is not always ele...
I'm a Linux guy usually, but at the moment I'm trying to evaluate .NET for a Windows desktop application. All it needs to do is to display some forms that link to a database, let the user edit the data and then produce reports based on it. I found a walkthough at http://msdn.microsoft.com/en-us/library/ms171884.aspx that automatically pr...
Hi I've created a winforms application abc. I renamed it to xyz. when i try to run my application in my task manager it is showing abc.exe is running even i rename it to xyz.
How can i change it?
...
I have some basic confusion about how transactions and msdtc work together.
I have a basic server/client winforms app. The app uses transactionscope to encapsulate several sql commands that are executed on the sql server.
The app seemed to work fine when I enabled msdtc network access on the server only. Then one day it stopped working...
Hi, I've created a windows application in c# now i added a new setup project to this application and i build it. It is executing successfully. When i try to add project output to user desktop. There are two files adding in the desktop one is exe file and another one is xml file (configuration file). Why it is happening. How can i add onl...
How to draw the table in c#.net 2008.
or suggest any control as table?
i want to display the data in that table.
help me.
...
I have a GridView bound to a table using BindingSource and Linq to SQL classes. The table structure is like this:
MainTable
----------
ID Name FormReserveId
123 asd 15
FormReserves
-----------------
ID FormId Number
15 33 some number
Forms
------
ID FormName
33 form name
MainTable.FormReserveId foreign key to FormReserves.ID
Fo...
I have a checkbox with no text specified. Now whenever I tab down to this checkbox, it doesnot get highlighted.I even tried setting focus in checkbox_Enter() event. I checked for focus in this event and focus is there in this checkbox. How to get it highlighted so that user can know that the cursor is there in checkbox.
...
I would like to have a resize indication on a windows forms Form (the same resize-grip as when you have a status bar).
I do not want to add a status bar to the form - that would break the design of the form.
The form can have various controls inside that are docked (Fill).
I have not found any solution to this besides drawing the resize...
When you modify column headers of a ListView at design time, the designer generates code to serialize column headers at run-time:
private void InitializeComponent()
{
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.For...
Hi,
I want to have another copy of some control upon dragging and dropping it to another form. My code results in moving the whole control. Is there a way to have the two of them being displayed at once given that I want them to have the same reference because the source updates values every second.
here's my code
public partial c...
Hello,
Yes, this question has been asked before, but I don't feel there's been a good enough answer, or a solution I can relate to.
Leading from this question - Displaying a PDF on a Windows Form, I'd like to display a PDF in a WebBrowser Control, but I'd like the PDF to be an EmbeddedResource.
This question - Describing res protocol...
Skip to the bottom for the question; this is just some extra info
I am using a component (GeckoFX) to render some websites, well fine, yet it can only be used in a Windows Form; as it has to bind to a WinForms object that can be drawn. Because all the WinForms are running in the same thread, I can only use one GeckoFX instance at a time...
You can't access gui controls from a thread they were not created on, at least so says the message of an exception that is sometimes raised when you do it.
Recently I was puzzled by seeing that forms created on background threads work just fine. My mental model was that all actions initiated by UI input is handled on the GUI thread. Cli...
Good afternoon.
I know how to create the listbox but i am having some problems to fill a multicolumn listbox.
How can i do it?
Thank you.
...
Hi All,
I am looking for "best-practices" to display the value of foreign-key in a BindingSource.
Sample data:
PetID---PetName---PetTypeID
1---Tom---1
2---Jerry---2
PetTypeID---PetType
1---Cat
2---Mouse
I have a Pet class and Pet form. The following code is on the Pet form to return data from the database as a Pet collection and ...
I have a C# application that has users login to it, and because the hashing algorithm is expensive, it takes a little while to do. How can I display the Wait/Busy Cursor (usually the hourglass) to the user to let them know the program is doing something?
The project is in C#.
...
How does one target a control by its Type?
I have a Control collection "TargetControls"
List<Control> TargetControls = new List<Control>();
foreach (Control page in Tabs.TabPages)
{
foreach (Control SubControl in page.Controls)
TargetControls.Add(SubControl);
}
forea...