Answer Questions
Karthy system idle process
what is it what does it do and why is it always high in terms of CPU usage in my task manager thnx Hi, The kind of answer it’s a good way for solve of possibles problens from another process that are running in this Server. Ivan. How much memory is your System Idle process using It shouldn't be much at all, since all it's doing pretty much is minor bookkeeping. There is no way whatsoever that it should cause any program to not run. System Idle is what happens when nothing is happening. Computers cannot just rest, they must always be doing something, and that's why System Idle is there. I have found out that there are several items that run in the system idle process, they are ...Show All
Daffodils Unbound DataGridViewComboBoxColumn - strange error
It doesn't seem like it should be this hard to do this, but for some reason it's just not working out. I have a DGV to which I am adding rows. One of these columns is a ComboBox Column (DropDownList style). The values in this combo box come from an enumeration I've defined. I am using the following code to set the items in the combo box, and to add a row: Dim combo As DataGridViewComboBoxColumn = DirectCast (DataGridView1.Columns( 0 ), DataGridViewComboBoxColumn) combo.DataSource = [Enum].GetValues( GetType (FilterType)) ... DataGridView1.Rows.Add(theFilt.FilterType, theFilt ...Show All
RussP DataGridView Column Header Cell Style not working
The backcolor for row header and column header does not work. e.g. Grid.Column(0).HeaderCell.Style.BackColor=Color.Blue Grid.Rows(0).HeaderCell.Style.BackColor=Color.Blue Grid.TopLeftHeaderCell.Style.BackColor=Color.Blue You could always just remove the theming on the headers. Set EnableHeadersVisualStyles to false and the header coloring will be honored. -mark Program Manager Microsoft This post is provided "as-is" Sorry you will have to draw the column or row headers yourself if you want to change the color. Paint in Column Header or Paint in Row header If we do so, then column sorting feature gets lost. The sorting arrow at corner of column header d ...Show All
Inferno986 ClickOnce deployment - bootstrap Install Check
We are planning to use an executable along with Bootstrapper to handle installation checks with ClickOnce. I dont see any option to specify the install condition for the application that is deployed, even with the bootstrapper I can just specify the install condition for the prerequisite bundled along with the application getting deployed. So we have decided to make a dummy installable and attach an external executable (InstallConditionChecker) that could do the installation check and return the appropriate exit code so that the installation can bypassif install condition are met / halt. like dotnetchk.exe that does the prerequisite check before installation of dotnetframework. We want to have some executable that can do the prerequisite ...Show All
Lamon Closing original Form
If I have a startup form that allows the user to open other forms is there a way to close that original form or hide it until the user needs it again Thanks Thomas OK two things then : 1) If I changed shutdown mode how could I close the original form since I am not creating an instance of that object I know that with each extra form I create I have to use: form1 form = new form1(); form.ShowDialog(); but with the startup object you cant close it without exiting the application, or at least there is no way that i am aware of. 2)If that is not possible what needs to be done to hide that form until it is needed again Thanks Tom I am not sure th ...Show All
Sen_p_kumar Defaulting Values
Hi gang, Every once in awhile I get to ask a question instead of just answering them. I know that in my sub-classes for controls such as TextBoxes, I can avoid having the IDE stick extra code in the "IDE-generated" code for properties by setting a DefaultValue in the TextBox sub-class. Like this: public class MyTextBox : TextBox { private string m_MyProperty; public MyTextBox { this.m_MyProperty = ""; } [DefaultValue("")] public string MyProperty { get {return this.m_MyProperty;} set {this.m_MyProperty = value;} } [DefaultValue(typeof(Color), "Window")] public override Color BackColor { get {return base.BackColor;} set {base.BackColor = value;} } ...Show All
joyedele Form Ownership Problem
Hi We are developing a Winform application on Visual Studio 2003. I have one problem, I am not using the MDI concept, I have used plain non MDI form, I have menus on the left hand side, I open one form I set the owner ship of the new form to the main form. When ever I minimize or close both the forms are working as expected. But the problem is I open a third form through the second form, I am trying to set the ownership of this third form to the first one so that this form also minimize / maximize when I min/max the main form but the third form remains as it is. Nothing happens to it. What I want is all open forms should min/max when ever I min/max the main form. Can anybody guide me as to how do I do this. I am writing my code in ...Show All
Jimmy V Customer control inheriting from System.Windows.Forms.Control can not input Chinese and Japanses.
Hi all, I create a customer control inheriting from System.Windows.Forms.Control. If I input chinese or Japanese, all word in Chinese or Japanese will be duplicated. :( I override OnKeyPress method, and find that there are two message boxes pop up. It means OnKeyPress has been called twice. So strange. protected override void OnKeyPress( KeyPressEventArgs e) { base .OnKeyPress(e); MessageBox .Show( "Key Press" ); } I try to inherit from System.Windows.Forms.UserControl, too. But I find that when I swith to Chinese and Japanese IME, it is disable totally. BTW, I am using MS IME. Could anybody here give me some advice Thank in advance. Best regards, Deep ...Show All
Ash8Fee Validate Field - Help
Hi, I am stuck... 1. Can I declare the OLEDB Connection in class or just within the button 2. I validate empty fields first, then with the login database. The open connection is supposed to be placed where ----------------------------------- public class LoginForm : System.Windows.Forms.Form { private System.Data.OleDb.OleDbCommand oleDbSelectCommand1; private System.Data.OleDb.OleDbConnection oleDbConnection1; private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1; private System.Windows.Forms.Label labelID; private System.Windows.Forms.Label labelPwd; private System.Windows.Forms.TextBox txtUserID; private System.Windows.Forms.TextBox txtPassword; private System.Windows.Forms.Button btnLogin; private System.Windows.Forms.Button b ...Show All
dazza33 TypeDescriptionProvider attribute is ignored with generic Form
I am trying to create a generic form that can be designed in the VS designer. I found an article (http://www.urbanpotato.net/Default.aspx/document/2001) that fixed this for an abstract form and now I am trying to do the same thing with generics. But it seems that the TypeDescriptionProvider attribute is ignored when the Form is generic. The message box does not popup when I enter the designer (and of course the form cannot be designed). But when I remove the <T> from the generic form (and the <object> from the derived) the message box popup! Shouldn’t it always popup even if the class is generic or am I missing something Here is my GenericForm: [TypeDescriptionProvider(typeof(GenericFormProvider))] public class GenericForm< ...Show All
rjo2 Dataset & DataGrid???
I have a dataset that holds some data, and when i show it in the data grid i would like it to be editable, and changed in my dataset, can anyone send me a link or shed some light on how i should get this done do not use acceptchanges() otherwise when you update, it will not update the changes to the database since the rows modified in the dataset have been marked to "not needed to be updated" Remember, you need to rebind the datagridview after you have done an update() - do you see the updates commited in SQL Server database/table To be safe for now, I would suggest you comment out the SqlCommandBuilder and just do an Update() directly after making sure that your SqlDataAdapter has the SqlCommand in its constructor a ...Show All
HKT ComboBox Sync With DataGridView
EmployeeDS ds = new EmployeeDS(); BindingSource bs = new BindingSource(); EmployeeDSTableAdapters.EmployeeTableAdapter da = new BindingOnRelation.EmployeeDSTableAdapters.EmployeeTableAdapter(); da.Fill(ds.Employee); EmployeeDSTableAdapters.CategoryTableAdapter daCat = new BindingOnRelation.EmployeeDSTableAdapters.CategoryTableAdapter(); daCat.Fill(ds.Category); bs.DataSource = ds; bs.DataMember = ds.Employee.ToString(); dataGridView1.DataSource = bs; BindingSource bsCat = new BindingSource(); bsCat.DataSource = bs; bsCat.DataMember = "FK_Employee_Category"; //ERROR in here comboBox1.DataSource = bsCat; comboBox1.DisplayMember = "Description"; comboBox1.ValueMember = " ...Show All
Alessandro Camargo Creating a Table Adapter from Access DB wrong date format
Hey all. In my Access database the date format is dd/mm/yyyy but when I create a table adapter from my access db table it loads the date as a full time + mm/dd/yyyy format. An example from one of the rows: In my database the row has a date column which represented as 14/1/2007 and at the table adapter it returns the date as 11:07 AM 1/14/2007 and all the controls which are binded to this tableAdapter return this format. Where do I specify the date format for the table Adapter (Maybe in the select statement of the TableAdapter And if so, how do I accomplish this) Thanks in advance :) Thanks for the reply but its not working :/ My control is DataGridView and it is connected to &q ...Show All
Raoul_BennetH VS2003 setup proj-how to make entry in registry with .reg file during install
We would like to make an entry in the registry during installation based on a .reg file located in the root directory of the msi. Point is to enable the user to easily change the keyvalue once for multiple installations. Is it possible to run regedit.exe during installation Is it possible to open this .reg file without having the editor asking for confirmation (silent) The commandline would be: regedit /s name.reg. Thanks for answering... ...Show All
Andrew MacNeill Strange Behaviour of Combobox created as Custom by inheriting from Actual
Hello all, I need to make a combobox which has to be dropped down when it gets focus. and also it must have a toggle property (i.e Enter has to drop down and an opened drop down has to close when i hit enter). This i have done by inheriting the combobox. and overrided the onEnter,OnKeyDown events and DroppedDown=true and false. every thing worked fine but when i started using this in the project then the real problem came, when any one of this combobox is initially get focussed then the cursor is being captured or invisible or in Busy Mode and from the next or the focus go to any other control then it is becoming ok and also in round trip in the form it is working fine only for the first time i am getting this problem. and also can any one ...Show All
