Answer Questions
N.I.C. How can I determine whether the + sign or the title of a treeview item was clicked?
Hello, I need to know how can I determine whether the + sign or the title of a treeview item was clicked on MouseClick event. Please help. Thanks in advance. In the MouseClick event it will be hard, but you can use the AfterExpand event. ...Show All
Karl Freedle Getting Name of particular attribute of a property by using reflection.
By the help of David hayden article http://davidhayden.com/blog/dave/archive/2006/03/07/2876.aspx I make an attribute class TableAttribute , KeyAttribute and two of my classes that is [ AttributeUsage ( AttributeTargets .Class, AllowMultiple = false )] public class TableAttribute : System. Attribute { private string _name; public string Name { get { return _name; } set { ...Show All
Steini MCE Remote Control
Hi! I'm new the forums, so please excuse me if this has been brought up before. Anyway, my question is if anyone knows how to directly receive codes from a eHome Media Center remote that comes with many new Media Center PCs. The reason why I ask is that I'm attempting to write a WinLIRC server for the remote. While some commands on the remote already output as "normal" keystrokes, some however do not; for example the Play button. The only ...Show All
carlos medina passing data from a form to another
those anybody know how can i pass data from form1 to form2 i want to put a TextBox1 in form 1 and when Form2 initialize, show a MessageBox with the Form1 TextBox1.Text Please help there are a couple options but here is an example of one public partial class Form2 : Form { public Form2() { InitializeComponent(); } public Form2( TextBox t) { InitializeComponent(); this .textBo ...Show All
StuartAuditMaster select statement
Hi all, I would like to use select statement where something is "". For example, SELECT * from alm_history where userAck is "" how can I put this into a select string Boban Stojanovski wrote: When specifying strings, dates or bit type values use single quotes instead of double quotes. So your select statement will be "SELECT * from alm_history where userAck ...Show All
SilverMecer convert number to char
How can i convert numeric value of char to char Hi, Just cast it: char c = (char)128; Regards -chris Hi, You could also use the Convert class. char c = Convert.ToChar(128); Regards, Vikram ...Show All
Jeff Papp GDI+ Question: ImageAttributes.SetGamma
Hi, I am getting unexpected results when I call ImageAttributes.SetGamma. Specifically, calling with a parameter less than 1.0 causes the drawn bitmap to be brighter, and with param more than 1.0 causes the bitmap to come out darker. At least something is happening, but I thought that higher gamma values are associated with increased intensity. (but this may just be my misunderstanding). Is this the way it's supposed to work Thanks for any ...Show All
mp2005 Can't read <mailSettings> from app.config file, why??????
Common sense tells me it should work. The code compiles but the host is always null. Whatever I try I can not get any data from the app.config file. I have a Class Library and I'm trying to build an email component that sends out email using the mailSettings in the app.config file. I'm using VS 2005. < configuration > < system.net > < mailSettings > < smtp > < network host = " smtp. ...Show All
gareon saveFileDialog
Hi, I need your help with that saveFile code that seams to compile but hit with an exception: private void saveAsToolStripMenuItem_Click( object sender, EventArgs e) { SaveFileDialog saveFileDialog1 = new SaveFileDialog (); saveFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*|RTF Files (*.rtf)|*.rtf" ; saveFileDialog1.FilterIndex = 3; saveFileDialog1.RestoreDirectory = true ; if (sa ...Show All
Pedro Pimentel Figueiredo Math.Round issue
I am trying to do some simple rounding with a precision of 1. For some reason, the only way I found that I was able to do this, is by using the following lines: double temp = tbJointServo.Value / 10.0; string tempS = temp.ToString(".#"); temp = Convert.ToDouble(tempS); txtJointServo.Text = tempS; Where "tbJointServo" has a minimum value of 0 and a maximum value of 3600. Is there any better way to accomp ...Show All
KeithFranklin setup project
how can i include .netframework 1.1 to my setup program i use .net 2.0 and want my setup also install .net 1.1 my setup project creates two output files the .exe file will install .net1.1 and .net2.0 redistributable without chechkin whether ther are already installed the .msi file checks the existance of .net 2.0 ot the target computer but it wont install . net 1.1 i tried to add a custom launch condition but now i need to write a ...Show All
Rumi "Show All Files" in Solution Explorer does not appear for a web project
Hi, I wanted to view the ...designer.aspx.cs- and ...designer.ascx.cs-files, and was told I could find them by clicking the "Show All Files"-button in the Solution Explorer. Unfortunately, this button disappears when I select a web site project. (I am able to expand the aspx- and ascx-files, but the only thing I see is the aspx.cs- and ascx.cs-files, not the partial designer-classes). Can anybody tell me how to do this Thanx, Bart T ...Show All
kdossey29 Join W2K Domain
Hi, how can i join a Workstation to a W2K3 Domain with a C# Prog Please post a code sample. Andi Has anybody got this code to work. I get an error # 1323 ie. unable to update the password. The value provided as the current password is incorrect. Anybody has any ideas Any help appreciated. thank you. My example was incorrect (I said I hadn't tested it!)&n ...Show All
PMBT override virtual method
What's the difference ----------------------------------------------- class A protected virtual void Method() {...} class B : A protected override void Method() {...} //here there isn't any base.Method()!!!! --------------------------------------------- class A protected virtual void Method() {...} class B : A protected new void Method() {...} -------------- ...Show All
Christiaanpmg App.Config
The following connectionString is present in App.Config <configuration> <appSettings> <add key="ConnectionString" value="Data Source=machine1;Initial Catalog=database1;User Id=user1;Password=password1;"/> </appSettings> </configuration> Now I would like to retrieve it using the following code public static string GetConnectionString { get { return Configu ...Show All
