472 Posted Topics
Re: I'm not sure what you are asking. Are you wanting a stack trace that allows you to navigate into the points (method calls) of execution? | |
Re: If the storage file does not need to be text, check out this IO Class: [icode]BinaryReader & BinaryWriter[/icode], which will simplify much of the data typing IO of your fields. In addition, consider using the [icode]BinaryFormatter[/icode] class: [code=csharp] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Runtime.Serialization.Formatters.Binary; … | |
Re: [QUOTE=NargalaX;992429]The title basically says it all. How would I include a DLL for use in another project?[/QUOTE] If I have understood your question, you need to add a reference to the assembly/library in your project. Under ProjectName/References, right click and select Add Reference; then select the Browse tab and go … | |
Re: [QUOTE=serkan sendur;988968]hi guys, i need to pass product version information from windows installer to custom installer, i am almost sure that you dont know the answer but that is fine, it is also important for me to show you what you dont know. i will try to solve this thread … | |
Re: Assuming you are passing the rectangle of the control being edited to the custom edit control, you should just need to adjust [icode]Rectangle.Location[/icode] Property. Be sure to create a clone of the rectangle before changing the location so you don't modify the original. | |
Re: You left off the parenthesis: [icode]lcount.ToString()[/icode] should eliminate that error message. | |
Re: Look at: [URL="http://www.dreamincode.net/code/snippet1982.htm"]Implementing Pathagora's Theorem[/URL] | |
Re: Why would you want your application to delete itself? | |
Re: [code] public static string System.Path.GetDirectoryName(string path); [/code] where the path argument contains the fullname: path\filename.ext | |
Re: Not sure how you would do that by registered application, but here is a good link/example code showing how to add/revoke privileges to particular directory for user. You could change it also to use the File class objects instead of the Directory objects if you desire. I know it's probably … | |
Re: [QUOTE=sknake;989673]And [b]Extension[/b] methods brought to you by framework 3.x! :)[/QUOTE] I had to +rep you for this example, which was my first exposure to usage of Extension Methods. The fist thing I did of course was drop the code into another class, which produced an error and forced me to … | |
Re: if you include List in your Insect class, you would just call the [icode]Add(T)[/icode] method to add it: [code=charp] public class Insect { List<Insect> insects = new List<Insect>(); int legs, eyes; string species, family; public Insect(int legs, int eyes, string species, string family) { this.legs = legs; //....and so on … | |
Re: It's based on C, so I believe the answer is absolutely and the same.... perhaps someone will have more to add to this... | |
Re: [QUOTE=mckinnm;966231]1. Can any one explain the inner workings of the form.enabled property so that I can have it use a list to traverse through the hierarchy of its own controls it has to enable? I have read that if enabled uses a list, it is faster; but I have no … | |
Re: To disable the password character ('*') and display the actual text in the same control: [code] TxtPassword.UseSystemPasswordChar = false;// or true to turn back on [/code] | |
Re: [QUOTE=brando|away;987291]Im trying to create a listview showing images with text so how exactly can i do this? (im using visual studio if it helps) Heres the code that isn't working now [code] // adding images ... imageList1.Images.Add("Unique key", Image.FromFile("...")); listView1.Items.Add("text for image", "Unique key"); /* * more * images * … | |
Re: Maybe my brain is just fried...:yawn: I see you have uploaded your project and appx what it should do (haven't look yet), but can you just indicate what it is exactly that isn't working?.... Or, are we supposed to download and test it to see that it does what you … | |
Re: [QUOTE=roberto usu;987631]I know this is a kind of broad question, but I have been having a hard time in general knowing when to put what call parameters into what functions. Does anybody have any good tips on when to know when to use a void function verses a bool or … | |
Re: [QUOTE=jatin24;987290]simply use the 'Value Changed' event of the DateTimePicker control. [code] if (dateTimePicker1.Value > DateTime.Now.AddYears(5)) MessageBox.Show("Date should be within the next 5 years"); [/code][/QUOTE] I think it was meant to say < -5 given you want to see if the date is 5 years older than current: [code] if (dateTimePicker1.Value … | |
Re: system expects an executable command. You cannot simply place the name of a text file as the argument. If you want it to launch notepad or something to view your file, you could do that. Here is what I suggest, but have not tested or used this functionality for quite … | |
Re: 1 & 2) Extend the menu to have Exit and Update options and just follow same logic already in place 2) when processing the Update option case label, get input for employee number, search the array for that record, then just pass that record to the read function. You might … | |
Re: Try taking a look at this example: [URL="http://www.codeproject.com/KB/dotnet/wiascriptingdotnet.aspx"]WIA in C#[/URL] Also, look for heading [B]Video[/B] at this link: [URL="http://www.howtocode.net/software-development/net/wia-scripting-and-net"]Video[/URL] | |
Re: [URL="http://csharp.net-informations.com/collection/csharp-namevaluecollection.htm"]I'm busy too, but click here...[/URL] | |
Re: I went and copied this code a couple of hours ago or so, then I got interrupted by a loooong phone call. Anyway, I can't resolve some definitions and I also forgot what I was thinking... Can you post an example with complete code that will compile? | |
Re: [QUOTE=ddanbe;984831]Hah, now I see it! Never noticed the dropdown menu before. I definitly need new glasses! :icon_cheesygrin:[/QUOTE] Could it be that blue light glaring in your eyes?--LOL Thanks for the link Danny! | |
Re: The junk values are because you declare in both Point and Point3D: [code=cpp] T X,Y,Z; [/code] but, you only initialize those belonging to Point in the construction. As far as it running as posted, I had no problems running it and the data appeared correctly as coded to me, but … | |
Re: Put the common methods in the vehicle class that are common to both truck and auto (car?). Also, just FYI, you named class Automobile with constructor auto... | |
Re: > x functions is this : monthlyWorks(infoTB.Text, thisMounth); public DataSet monthlyWorks(string IsyeriId, string month) { Service(); string str; str = string.Format("SELECT Kartno,IsyeriId,Tarih,Tutar,IslemTipi,KazandirilanPuan,HarcattirilanPuan FROM IslemTablosu WHERE IsyeriId='{0}' and MONTH(Tarih)='{1}' ", IsyeriId, ay); SqlDataAdapter adapter = new SqlDataAdapter(str, connection); DataSet dataset = new DataSet(); adapter.Fill(dataset); return dataset; } > y function is … | |
Re: Just put your string inside a class object and pass that to the form. The class object will be passed by reference and will still contain the changed value of your string after the form closes. For example: [code] public class Credentials { public string username; public Credentials(string username) {this.username … | |
Re: Consider using [icode] TextBox.Validating and/or TextBox.Validated[/icode] methods to update other control's text. These are called before the [icode]TextBox.Leave and/or TextBox.Focus[/icode] events are fired. The problems with the latter events is that there is not control over which will get fired first, which may not be an issue for you right … | |
Re: STEP 1: Place [B]several comments[/B] in your OperateCell method (aka operation1 method). Place the comments above: * every loop * every logical comparison * every method called within the nested loop [B]When doing this, provide a good explanation of what the statement's purpose is--what is it supposed to do exactly. … | |
Re: What is the definition of object [icode]Cell[/icode]? Inside method [icode]operation1()[/icode]: 1) You hardcoded 19 in your loop when you should use [icode]ARRAYSIZE-1[/icode] 2) Where is the beginning of the [icode]else if[/icode] clause? 3) Since you already have a method to change the state [icode]ChangeState()[/icode], what exactly is the purpose of … | |
Re: [QUOTE=chathuD;984743]ya actualy following the mose pointer,but the image must be visible only when mouse is @ hover mode.[/QUOTE] I think this (above answer) is confusing. If the image follows the mouse pointer, then the mouse pointer is always hovering over it, right? So I am guessing that the image does … | |
Re: [QUOTE=adatapost;985608][code] string[] ar = listBox1.SelectedItems.Cast<string>().ToArray<string>(); [/code][/QUOTE] Wanted to +rep you, but I guess I already did somewhere and it wouldn't let me. Anyway, that is a very clean line of code I haven't seen before--kudos! I hope I remember it the next time I do that.;) | |
Re: On the surface, it would appear you are referencing [icode]GetItemText.Substring(0, GetLength)[/icode] in your loop, but [icode]GetLength[/icode] might not be related to the length in [icode]GetItemText[/icode] because your [icode]GetString[/icode] above the loop is not directly tied. However, you didn't give what line produced the error, so can't be sure... | |
Re: Because you allocate only one node and you continue to overwrite it in each of your reads in your while loop. Therefore, when you set the [icode]start_ptr[/icode] to the node, following the read loop, you are setting it to the end, which is actually (also) the beginning of your linked … | |
Re: You need to size your cannon_ball array before using it: [code] cannon_ball = new GameObject[max_cannon_balls]; [/code] | |
Re: [QUOTE=arunkumars;985367]Hi, In my current project, Am drawing a set of boxes, all at run time, and inside them i have called few bitmap images for each box, this also happens at run time. now i need to click that image, the image should be selected and that image shud appear … | |
Re: [QUOTE=fafi_ali;983493][CODE]private void SetCurrentValuesForParameterField(ParameterFields parameterFields) { ParameterValues currentParameterValues = new ParameterValues(); foreach (string str in td.Values) { ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue(); parameterDiscreteValue.Value = str; currentParameterValues.Add(parameterDiscreteValue); } ParameterField parameterField = parameterFields[PARAMETER_FIELD_NAME];------ here i get the exeption parameterField.CurrentValues = currentParameterValues; }[/CODE] the code to bind reportviewer control:- [CODE]ParameterFields parameterFields = crystalReportViewer1.ParameterFieldInfo; SetCurrentValuesForParameterField(parameterFields);[/CODE][/QUOTE] … | |
Re: Here is another way to do it: [code=csharp] Image img = Image.FromFile(fileName); Bitmap bmpInverted = new Bitmap(img.Width, img.Height); ImageAttributes ia = new ImageAttributes(); ColorMatrix cmPicture = new ColorMatrix(new float[][] { new float[] {-1, 0, 0, 0, 0}, new float[] {0, -1, 0, 0, 0}, new float[] {0, 0, -1, 0, … | |
Re: [QUOTE=serkan sendur;983867]when it comes to mobile development, you guys have no idea, do you?[/QUOTE] Nope, but I'm feeling frisky... What/where would be a good starter project like "hello world", because I own a couple of PocketPC's and have never tried to interface but would like to learn?;) If you could … | |
Re: [code=csharp] panel1.Visible = panel1.Visible ? false : true; // toggle the on/off state of the Visible property [/code] | |
Re: [QUOTE=serkan sendur;983860]where Scott finds this energy from is the matter of question now.[/QUOTE] I know what you mean... Everytime I walk into Circle-K or 7-Eleven, I look at the counter and expect to find an "Energy drink powered by SKNAKE"--:D | |
Re: Not to intrude because I happened upon this and I'm really not a page designer, but I would recommend: * Lose the black font on the dark blue background because it took my eyes a while to adjust (weather area) * lighten/brighten the "fam pic.jpg" to be consistent because the … | |
Re: Cmd options: control appwiz.cpl,,0 // change or remove programs control appwiz.cpl,,1 // add new programs control appwiz.cpl,,2 // add remove windows components control appwiz.cpl,,3 // set program access and defailts | |
Re: Sure, if that is what you really want to do: [code] public Form2(Control [] controls) {} //or public Form2(Button btn1, Button btn2, Button btn3)// etc. {} [/code] | |
Re: There are hospital management systems available to browse online, some including source code of a complete system and design. You may wish to check out those designs too when beginning your design. | |
Re: Is the variable in scope that you are trying to view? Also, if the code is optimized it may not show. | |
Re: This thread seems to have been answered in another thread: [URL="http://www.daniweb.com/forums/thread31105.html"]http://www.daniweb.com/forums/thread31105.html[/URL] |
The End.