472 Posted Topics
Re: Sure. Here is the information I need: 1) Explanation of what the [icode]newstudent[/icode] form is supposed to do; I know you are using multi-forms for this project, so specifically what the "newstudent" form's purpose is... 2) post the code from the newstudent.designer.cs file | |
Re: You have to create a global system hook to capture the window's [URL="http://msdn.microsoft.com/en-us/library/ms647592(VS.85).aspx"] WM_CONTEXTMENU[/URL] message and override the default context menu across all applications. Take a look at this thread, which is same conversation about modifying the default system context menu for text editing: [URL="http://bytes.com/topic/c-sharp/answers/265836-custom-paste-context-menu-fvor-text-boxes"]custom system context menu[/URL]. Many people … | |
Re: Here is an example: [code=csharp] // example class to represent your item... class MyItem { public string Text { get; set; } // so listbox also knows how to display text for your item... public override string ToString() { return Text; } } // handle double click event... // this.listBox1.DoubleClick … | |
Re: You didn't post any code, so don't know what you are doing with your grid. Take a look at this post: [URL="http://www.daniweb.com/forums/thread210161.html"]http://www.daniweb.com/forums/thread210161.html[/URL] | |
Re: In your set statement, you create a new var of name "_Imge"--was that intended? And, you also call the property setter again with [icode]Imge = value[/icode]--was that intended? Maybe I've missed something, but I don't understand why you would return _Imge in your getter, but then call the setter again … | |
Re: [QUOTE=kahaj;1003227]Under the .NET tab, I don't have anything that begins with "Microsoft Office" listed. Under the COM tab, there are numerous "Microsoft Office..." options, but none contain "word.dll". Closest I seem to be able to find is "Microsoft Word 12.0 library" under COM.[/QUOTE] Try opening a Word document and keep … | |
Quite a few people have been asking how they can get their applications to talk to each other. More specifically, they have been wanting to know how to access information from another running application using .NET Remoting. Not having done this before, I decided to take up the challenge and … | |
Re: Is this what you are looking for: [code=csharp] private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { // if your item is text, otherwise cast to proper type: string text = (string)comboBox1.SelectedItem; switch (text) { case "disease": textBox1.Text = "malaria"; break; case "medication": textBox1.Text = "aspirin"; break; case "control": textBox1.Text = "ktrl"; … | |
Re: I don't understand. You say you are trying not to delete the files, but you are deleting: [icode]System.IO.File.Delete(file);[/icode]. When you say the url extension is not visible, what do you mean? | |
Re: [QUOTE=MillStrike;1002518]Wow, thank you very much. Works like a charm! You almost made it too easy for me ;)[/QUOTE] I thought you were asking how you could determine from main form whether the checkboxes on form2 are checked or unchecked, but it looks like you have your answer. Please mark this … | |
| |
Re: What is the return value of [icode]public Array allStudents()[/icode] to be used for? I'm trying to figure out why you decided on [icode]Array[/icode] as the return type. | |
Re: [QUOTE=Ishbir;1000523]Is there any way to declare a single variable which can change its type depending upon the type of post? It should also be accessible so as to be added to a list. [/QUOTE] A reference of type [icode]object[/icode] can be set to any type. Then, you can determine type … | |
Re: I'm new at this DB stuff using C#, but based on what I've seen, you need to do something like: [code=csharp] OleDbConnection vlAccessConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DBFileName); string cmd_str = "SELECT CurrentPassword FROM AdminPassword WHERE UserName = 'Admin'"; DataSet ds = new DataSet(); OleDbDataAdapter da = new OleDbDataAdapter(cmd_str, … | |
Re: [QUOTE=qmqmqm;1000933]Hi I am new to C# and software development. I have a question. If I were to edit this project: [url]http://xmlnotepad.codeplex.com/SourceControl/ListDownloadableCommits.aspx[/url] I think I need to: Download Eclipse with C# plugin Download source code of the project Create a new C# project in Eclipse Copy source code into Eclipse Did … | |
Re: Many of us don't have 64 bit systems, so I'm not surprised you didn't get input. Anyway, just wanted to say thanks for posting your solution because many just say they solved it themselves and that's it. Cheers! | |
Re: [QUOTE]MSDN: The programmer has no control over when the destructor is called because this is determined by the garbage collector. The garbage collector checks for objects that are no longer being used by the application. If it considers an object eligible for destruction, it calls the destructor (if any) and … | |
Re: Modify your new rode with new style: [code=csharp] DataGridViewRow row = new DataGridViewRow(); DataGridViewCellStyle style = new DataGridViewCellStyle(); style.ForeColor = Color.Green; // the color change row.DefaultCellStyle = style; dataGridView1.Rows.Add(row); [/code] | |
Re: Alba, I don't really know this game, but I did spot a couple of things I thought worth mentioning. Have you stepped through each line of this code to see if what is happening? I noticed you are incrementing [icode]GlobalVariables.countresultslots[/icode] at the beginning of each loop, and then referencing an … | |
Re: There are so many examples of this inside this forum, many including entire zipped up projects. Begin by taking a look at some of these and if you have problems, just let us know... | |
Re: [code=csharp] // inside your UserControlGame (note I changed your array to begin with lowercase s char) Microsoft.VisualBasic.PowerPacks.OvalShape[] slotForm = new Microsoft.VisualBasic.PowerPacks.OvalShape[GlobalVariables.configsetup[0]]; public Microsoft.VisualBasic.PowerPacks.OvalShape[] SlotForm { get { return slotForm; // returns ref to your array } set { slotForm = value; // sets your array to a new ref } … | |
Re: [I]Remember you, remember me, And if at all, we should disagree, To help with you, remember me.[/I] You didn't invite me to the goodbye party, so I thought I would make an entrance... Best wishes Serkan. | |
Re: Not sure why that is a problem. Don't know much about your app and you included no code having trouble, so is a design issue? | |
Re: Is the data structure static in that it will always be in the format exampled? | |
Re: Check out this thread: [URL="http://www.daniweb.com/forums/thread209516.html"] http://www.daniweb.com/forums/thread209516.html[/URL] I believe there is some confusion in the beginning of the thread concerning what right-to-left means, but go down toward the bottom and also sknake attached a project that demonstrates the label expansion. | |
Re: Calling CloseMainWindow will essentially send a Close request message to the running application, whereby it is up to that application to handle the event--This is the most graceful approach because it allows the application to perform it's normal process termination. It should be followed by a call to Close to … | |
Re: Just an FYI and you still need to mark this question as SOLVED. FYI: Not sure why a text editor application would launch a new instance of itself. Have you considered using an MDI Form? | |
Re: You did not initialize your array: [code=csharp] public void SetUptheArrays() { //declare arrays int[] integerArray = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; float[] floatArray = new float[5]; // initialize floatArray[0] = 100.99; floatArray[1] = 324.333354; //... floatArray[4] = 0932409.3; // last element of this … | |
Re: zip up the project and attach. If using a small access table for the report, include that too. | |
Re: I think you will find this link resourceful: [URL="http://www.uchobby.com/index.php/2006/12/10/pc-parallel-port-interfacing/"]PC Parallel Port Interfacing[/URL] | |
Re: Not sure why your datagridview doesn't always have an unpopulated record shown. Check this code. As soon as you type anything in a cell, it will append a new unpopulated record/row to the end of the grid, which will again repeat as soon as you type anything in the new … | |
Re: Here is an example of how you could build a dynamic table to hold your data. The field names and data types are up to you to decide, etc.: [code=csharp] public void BuildDynamicTableArrayExample() { DataTable dt = new DataTable(); // table to hold each record dt.Columns.Add(new DataColumn("FieldName1", typeof(string))); // Create … | |
See attached project. This is a very small test project so I can learn. Here are my questions: 1) I've overridden the Install and Uninstall in my Installer component based class, but they don't seem to get called...why? I am setting a breakpoint in the Install override and running in … | |
Re: Right click on Setup project; choose View / User Interface In UI, Right click on Start category, choose Add Dialog In Add Dialog, double click on desired template (just select one if you have never done this before; easy to delete from your UI and then repeat to select a … | |
Re: [QUOTE=facadie;986641]I have two form. Form 1 and Form 2 In form 1, i have a few textbox and and combo box. and BTNOk [to save] and BTNCancel[when BTNCancel is click, user are prompt whether to save file if there is changes in entry] Form 2 is the file where BTNCancel … | |
Re: Why not have your application perform the download instead of monitoring another application? | |
Re: [QUOTE=serkan sendur;995677]i wonder it, because i hate c++ header files. if c# compiler has a way of getting rid of them, why cant c++ do? here some similar info but i am not satisfied. [url]http://stackoverflow.com/questions/1305947/why-does-c-need-a-separate-header-file[/url][/QUOTE] This is a C/CPP forum question disguised as a C# question--flag as bad post! :P | |
Re: Maybe apply the current [icode]ForeColor[/icode]?: [code=csharp] e.Graphics.DrawString(Convert.ToString(e.FormattedValue), e.CellStyle.Font, e.CellStyle.ForeColor, e.CellBounds.X, e.CellBounds.Y - 2, StringFormat.GenericDefault) [/code] | |
Re: Hey Danny, I played around with the example MSDN code for a little while this morning, tweaking here and there, and I couldn't find an easy way to make the existing code produce the desired behavior. I think what you would need to do to is override the default behavior … | |
Re: I think you are in the wrong forum.... but, try this link and search the page for "calendar control": [URL="http://www.asp.net/learn/data-access/tutorial-12-cs.aspx"]http://www.asp.net/learn/data-access/tutorial-12-cs.aspx[/URL] | |
Re: [code=csharp] // in Window1 button click private void button1_Click(object sender, RoutedEventArgs e) { Window2 window2 = new Window2(); window2.Show(); this.Close(); } [/code] | |
Re: [QUOTE=Rashakil Fol;994412]Just use [icode]path.Split('\', StringSplitOptions.RemoveEmptyEntries)[/icode].[/QUOTE] This did not compile on my machine... so I modified it somewhat: [code=csharp] string path = "C:\\test\another\\directory\\"; char[] charSeparators = { '\' }; string[] subPaths = path.Split(charSeparators, StringSplitOptions.RemoveEmptyEntries); [/code] | |
Re: This is what the event wiring for combobox selection change should look like in case you don't use VS designer: [code=csharp] // in form intialization: this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // then, just create this method for your form: private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { // to retrieve it's index: … | |
Re: [QUOTE=fafi_ali;978379]actually iam using .net 2008 is it the same as 2005?[/QUOTE] I think there is a link on that page for 2008 version: [URL="http://msdn.microsoft.com/en-us/library/ms225227.aspx"]Deployment with VS 2008[/URL] | |
Re: Really? [URL="http://www.codeproject.com/KB/files/msiconsole.aspx"]Reading Data from MSI Database[/URL] Sorry buddy--I didn't realize it was C++. I can probably translate for you though if you need it. | |
Re: msiexec /i A:\Example.msi ProductName=VALUE | |
Re: [code=csharp] public partial class Form1 : Form { int index = -1; List<Image> images; public Form1() { InitializeComponent(); images = new List<Image>(); // add images } private void btnNext_Click(object sender, EventArgs e) { index++; if (index < 0 || index >= images.Count) index = 0; pictureBox1.Image = images[index]; } } … | |
Re: [QUOTE=darkocean;993960]Hi all, Now i dont remember what we say about this method, i am so sorry for that anyway... I want to write in textbox when i am writing on it, it shows similar info to me. For example if i write dan it must be show daniweb, dance, danny, … | |
Re: I'm not good at math either...LOL. Check out this thread, and see if you can come up with the formula you need. Then, if you need help with coding it, come on back here--OK? [URL="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/841c6c66-6dc9-413a-abd4-cf91bca5ded7"]Calculate Radius from X Y coord[/URL] | |
Re: I had the same concerns you guys did about what was being done in his ListView--it seems like a futile exercise to me. |
The End.