Answer Questions
keithml a value simplified? etc. 27 > 30, 54 > 60
Hi, I need a value raised up to the next zero, like in the following example: 35 > 40 67 > 70 143 > 150 and so on. Does anyone know a good way to archeave this Please let me know >> n = (n+9)/10; um... That's not going to work. How 'bout: n = ((n+9)/10)*10 ; n = (n+9)/10; Thank you very much it is working now public static double Simplify( double dValue, int iPlaces ...Show All
regwood79 fun with the dom and <link> tags
hello, i'm writing a small program that traverses a webpage once it's loaded in the browser and alters parts of it. however using the dom facilities i'm unable to get past <link> or <style> tags. the .childnodes property doesn't report any nodes past here. this is a problem as i really want to access the rest of hte page. if these tags aren't present, the .childnodes property is fine, and i can access it. if i open up ...Show All
programmerInprogress How to create a user Hatch style
Hello All Professional Any one have an experience of creating a user defined Hatch style in GDI+ . Is there any way to scale the line spacing ( pitch) of the existing Hatch style of GDI+. Your clear answer would be highly appreciated. Regards Thank Chris for your reply But does TextureBrush could be customized. My point is to use an off-the shelf tools to fill a close contour as a drawing hatch ...Show All
Hansipet Subtracting DateTime.Now.ToLongDateString()
I have to scrape a page for a date. ex. Monday, January 30th, 2006 if the date does not exist...keep subtracting until one exists. Monday, January 30th, 2006 - 1 Thanks DateTime d = DateTime .Now; d = d.Subtract( TimeSpan .FromDays(1)); Console .WriteLine(d.ToLongDateString()); Hello You can do something like this...... DateTime d= DateTime .Now; d=d.Subtract( TimeSpan .FromDays(1)); ...Show All
Peter K object disposed exception
i dont know what to do with this exception!!if i open the form for the first time all its correct, but when i try for the second i receive this exception please help me!! tnx private void OrgProperties_OnClick(System.Object sender, System.EventArgs e) { //per invalid cast exception devo usare questo metodo &nbs ...Show All
Nigel Richardson Operator + in strings
string path = "C:\\Documents and Settings\\"+ LogonName +"\\Recent"; Error 1 Operator '+' cannot be applied to operands of type 'string' and 'method group' What do i have to do Thanks, Guilherme I Tried: string LogonName = Environment.UserName.ToString(); label2.Text = LogonName.ToString(); It Works, but when i tried: string pasta = "C:\\Documents and Settings\\&quo ...Show All
natwdw1 Query Output in C# differs from output everywhere else
I have a stored procedure that returns a calculated field. The query looks kinda simliar to the following: SELECT ISNULL(udf.SomeID, t.SomeID - 1) - t.SomeID + 1 AS IsHappy -- SomeID is an integer greater than 0 -- t.SomeID will always exist -- udf.SomeID is either NULL or == to t.SomeID -- IsHappy should == 0 if udf.SomeID ...Show All
SSISy Boy how to make Yahoo mess statusbar effect..
if you have seen .. and probably you did.. the yahoo messenger windows statusbar effect.. when some one send you something the button for the associate window in statusbar gets.. orange.. Does anybody know how to d that so .. no one knowes anybody ...Show All
Chi Wong Save Combobox items to file (not .txt)
I have a program which has 46 diffrent combo boxes. The items in these boxes change according to what the user selects (ie Box35 items changes according to what item is selected in box 30). What I would like is for the user to be able to set all the combo box items the way they want, click save, and the program save them to a file (pref not a text file, XML maybe ). I can sort of conceptualize the saving of each "item" of every combo b ...Show All
Intrepid_Soul Execute file on remote machine (WMI ??) ...
Hi all I would like to execute a file (.exe, .cmd, .bat etc.) on a remote machine (File is stored on the remote machine) ... Does anybody know how to do this Do I have to use WMI If yes, how Thanks for any comments !! Best regards Frank Uray try { con = new ConnectionOptions(); con.Username = user; con.Password = pass; myscope = new ManagementScope(computerna ...Show All
Splinta What is the best design in this scenario?
Hi, Can somebody with experience tell me what would be the best way to accomplish following in c#. I have a requirement to convert Access table to flat file, I have specification for text file like that Field Field Type Length Format Note 13 Province or State string 2 Free format Length of field for Canada =2, US=3, International =20 ...Show All
DNA Dashboards Arrays
Hi! I'm brand new in C# (actually, today is the very first time I'm using it...), and here is what I'm trying to do: ReportParameter [] parameters = new ReportParameter [1]; ReportParameter rp = new ReportParameter ( "id" , "3" , false ); parameters[0] = rp; But I get these errors (in the last row): Array size cannot be specified in a variable declaration (try initializing with ...Show All
hobbledskydiver How to determine if a generic parameter is null or default?
The following code snippet gives me the compiler error: "Operator '==' cannot be applied to operands of type 'T' and 'T'" void Test<T>(T item) { if (item == default (T)) // error here ... } What is the reason behind this compiler error I just want to see if the item is null for reference types, or default for value types. How can I do this Ok, I see what you are talking about now. Why not ju ...Show All
ryan_gartner where to find MSCOMM32.OCX?
Hi I want to add Microsoft Communication Control in my applicaton in C# 2003. But I don't found this control anywhere also i don't have MSCOMM32.OCX installed on my system. Plz help me how to install it and how to find this control. Thanks Hi, Why not just reinstall VB6 as they can both be on the same machine without any conflicts. I run VB6 (SP6) and VB.Net on my WinXP system with no problems. But i can't un ...Show All
Hrvoje Zlatar help me (dll problem)
i have made a WindowsControlLibrary (dll file) (i made a winform and then copyed every thing (almost) to the control ) but every time i try to load it with asp.net nothing happens the asp.net file : public class WebForm1 : System.Web.UI.Page { private void Page_Load( object sender, System.EventArgs e) { Assembly a; a = Assembly.LoadFrom(@"C:\saa1\vc#\WindowsControlLibrary2\bin\Debug\saa2.dll"); Type t = a.GetType("WindowsContro ...Show All
