Threads in c# windows application
Windows Task Manager shows four threads for my simple C# Windows application. What are these for? ...
Windows Task Manager shows four threads for my simple C# Windows application. What are these for? ...
I have a Treeview with a lot of nodes. If I switch a node, the scrollbar of the treeview is set to the bottom. To keep the switched node visible I use node.EnsureVisible(). But I don't like this method a lot, because it is confusing the end user. So I look further and now I use the code which is supplied here: http://stackoverflow.com...
I have a menu item that needs to be formated like This & That, but the & is converted to an underscore. Is there an escape character to actually be able to display the &? ...
Hi there, i´m familiar with writing and reading my own XML files like e.g. for Setting but i need to read data from a huge xml file but i cant find my starting point. - <span class="mw-headline" id="Kader_der_Saison_2010.2F11.5B51.5D"> Kader der Saison 2010/11 - <sup id="cite_ref-50" class="reference"> <a href="#cite_note-50">[51]<...
How can I extend a Button? I want a Button that has an additional property IsSwitchOffable. Do I have to write an extra custom control? EDIT: I want that the button is usable as a standard WindowsFormsButton. This includes that I can add the button at design time! ...
I'm trying to do a simple Databinding between a string property of an object instance, and a TextBox control. The string property has both get and set accessors, yet the source object does not implement INotifyProperty changed. This does not matter though as I'm not concerned with the object updating the text, but rather only changes to ...
I have a hardware which connect with my computer via com interface, I want to implement such a feature: When the button on the hardware is clicked, My application can capture this event and then write something on my application. So How can I listen to a specific COM interface and capture the event ? How can I get what command the hardw...
The company I work for has an existing product which is a Delphi 32 bit windows application. The application has a spreadsheet like UI which requires a very fast data grid/table view and advanced charting (plus the usual button/dropdown/menuing/toolbar controls). We also have a .net 3.5 ASP.NET application which mirrors large parts of ...
I'm trying to convert the response I'm getting from Web Service into a DataSet so I can bind it to a GridView. The response is already serialized. ...
I am using C# to develop, I want to use a camera to capture a image in my application. As far as I know, there are two choices: WebCam with [DllImport("avicap32.dll", EntryPoint="capCreateCaptureWindowA")] And use this function to capture image into clipboard, and then our application can get the image. Choice 2: Use directX t...
Hi I am developing a Window Form Application Form Application is using WCF to get data from db servers. My Clinet'd like to see users who are currently using application. I means Administrator want to get administrative page to who all user IDs currently connected to WCF Server. I don't know how to get this. I think i can catch userID...
In other words, will line 2 in the below code have any effect? // let's assume that myForm has not previously been added myControlCollection.Add(myForm); myControlCollection.Add(myForm); // line 2 ...
Lets say we have 0 displayed in value field of the control and i want that if the value is 0 - display string.Empty (i know that the type of value is decimal and there can be no string inserted instead of decimals in it, but still...May be there is some formatting possible there?). ...
Hello I have a simple two forms, one that contains a grid and a button. When I click the button, my application starts doing a long operation. While it is working, I show another form that contains a progress bar I open it like this: _busyWindow.ShowDialog(); And defined public partial class BusyWindow : DevExpress.XtraEditors.Xtra...
Hello I have a problem that I don't know how to solve. I have have a Form that open a OpenFileDialog to add data. But after I call OpenFileDialog.Show() I can't save anything with BinaryFormatter.Serialize. The strange thing is that I doesn't even need to use the data that I have from the OpenFileDialog, only to open the dialog make the ...
am using c# vs-2005 am on project to create textbox one by one on form1 and am success on button click event my code is below. // declare location point of textbox on Global Area. private point txtboxstartpoint=new point(10,10); private void button_click (Object sender,EventArgs) { Textbox tbx = new TextBox(); tbx.Location= txtbox...
Hello, I have a class that extends TabControl, basically to have one with the tabs down the left hand side instead of along the top. To do I have set it to be custom drawn. The problem is when this is put onto a form via the designer, it easily makes the designer loose track of itself and just give up and display nothing. To fix it I h...
I would like to know how to implement nested DataGridView in Windows Form in C#. ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.Data.Odbc; namespace Username { public partial class Form2 : Form { public Form2() { InitializeComp...
Anyone faced a problem while creating a UserControl in a library then drop it in a Form project...change this control's e.g. BackColor and rebuilding, changes are not reflecting in the Form project? EDITED: when updating the control e.g. change controls, drop new controls inside the control, updating is happening. Looks like the control...