- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
56 Posted Topics
Hello everyone. I am trying to work through a programming challenge in my c++ book. I have gotten it to work, but i kind of cheated by looking at the file. I am going to past the entire code so i can be compiled, but the main problem i am … | |
Re: You need to use System.IO.Compression namespace. | |
Re: What you will do is set the button to be disabled by default, so when the questions load, it will be disabled already. There are a number of ways you can handle this, but you could handle the CheckChanged event for RadioButtons and then actually check each group on the … | |
Re: > I have c# Application running in my desktop(Windows XP) with Java web services and oracle DB . The Application includes a shipping screen which has a calendar window. When I run the application in my desktop it works fine. > Client uses the same application. We access it through … | |
Re: I quickly did a serach and found a bunch of stuff. Below is the link at the top of the search. Seems like what you may be looking for. [Click Here](http://www.c-sharpcorner.com/UploadFile/nipuntomar/contextmenuforgridview01162007124516PM/contextmenuforgridview.aspx) | |
Re: Above poster is correct use a timespan. Here is an example. Timespan ts = DateTime1 - DateTime2; | |
Re: All you have to do is set the "AcceptButton" property of the form to that button. This property causes the button_click even to fire when the user presses enter. | |
Re: Seems like there is not a value in the cell, thus the object reference error. Debug and verify there is a value there. Also Mitja's response is important as well. | |
Re: This is called overloading, which you can also do with normal methods. This allows the object to be created with one,two, or three parameters. This allows the programmer to choose how to create the object. Below is a link with more information. http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=105 | |
Re: I know you marked this as solved, but you could create a "discontinued table" and move items to it. This will allow for archiving, as well as keeping the "main" table at a smaller size. | |
Re: You don't appear to be setting the filter property as Mitja showed you. Is this all the code? | |
Re: I noticed you also have a date of employment field in this insert... Try making sure both are strings before passing into insert. Otherwise we need to see more code. | |
Re: I would say it is probably best to ask in the c++ forum. | |
Re: momerath's answer definitely works, but i didn't have a problem using your code, although i altered it slightly. [code] Dictionary<String,Double> sList = new Dictionary<string, double>(); sList.Add("1",1); sList.Add("2", 2); double min; min = sList.Min(m => m.Value); if (min != 0) MessageBox.Show(min.ToString()); [/code] | |
Re: What is in the file that you are opening? Can you give the data, and i should be able to provide an answer. | |
Re: [CODE]form2 frm2 = new form2; frm2.Show(); [/CODE] | |
Re: [CODE] 1. using System; 2. class text 3. { 4. static void Main() 5. { 6. Console.WriteLine("Enter text"); 7. string line = Console.In.ReadLine(); 8. string text = Convert.ToString(line); 9. int i = 0; 10. while (text != .) 11. { 12. line = Console.In.ReadLine(); 13. text = Convert.ToString(line); 14. } … | |
Re: The SaveAs method allows you to pass in a boolean value when calling the method. Do you have any code so far? If so, please post. | |
Re: Sharath is right. Since you can't do as the first reply suggested, create an "old" copy before passing it to the method you cant access and then compare once getting it back. | |
Re: If by imageBox, you mean PictureBox Control, you can get the location like this. [CODE] string location = pictureBox1.ImageLocation; [/CODE] **EDIT** nevermind i didn't read the question obviously. Let me play around with this for a few and i'll get back with you. | |
Re: For beginners, i recommend the Murach Books. I read the older ones but Murach's C# 2010 is the way to go. For more advance topics and more details about how things work behind the scenes, I recommend C# 4.0 in A Nuthshell. Again, 4.0 is the newest one, and includes … | |
Re: [QUOTE=bisiii;1414004]Hello, Do anyone know how to continue the loop to get an average of entered numbers: [code] //Using loop to enter the numbers int Number, counter = 0; // declare here. for (int i = 1; i <= 10; i++) { //Entering ten numbers Console.Write("Enter the number:"); Number += int.Parse(Console.ReadLine()); … | |
Re: If you want to add what you did, it may help other posters in the future. Thank you. | |
Re: Try [CODE] string fileName = ""; if(e.Data.GetDataPresent(DataFormats.Text)) { fileName = (string)e.Data.GetData(DataFormats.Text); } [/CODE] | |
Re: Follow the below link. This is the Microsoft SQL Server Certification. There are numerous other development certifications, but this is what you are looking for i believe. [URL="http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx"]MS SQL CERT[/URL] | |
Re: Also, instead of making the variable public, you could make it private and then use public properties to control the getting and setting of this variable. This is the preferred object oriented way of doing this as it encapsulates the variable. I understand this is probably an assignment or something … | |
Re: [CODE] Dim dtTest As New Date() Dim test As String = "12:52:17 PM 11/16/10" Dim result As Boolean result = Date.TryParse(test, dtTest) Me.Label1.Text = dtTest.ToString [/CODE] This will convert it with the Date first, then the time. Is that ok or do you need the time first? | |
![]() | |
Re: Have you created the events in your class? When you are creating custom events, you will have to call the events when the action occurs. Give us your code and we can be of better help. In the mean time, take a look at the following link as it explains … | |
Re: Also, please provide some of the errors you are getting when importing the text files. | |
I am exporting data to an excel file. This works, however, one of my columns doesn't format properly with currency. Through code, how can i make an entire column currency just like when i do it through Excel itself, by going to the format options. I have tried using the … | |
Re: I just posted this in another thread, but Murach's C# 2008 is a great intro to c#. I also have csharpindepth and it is a great book, but it is not for beginner's as you saw on the website. [URL="http://www.amazon.com/Murachs-C-2008-Joel-Murach/dp/1890774464/ref=sr_1_1?ie=UTF8&s=books&qid=1273203137&sr=8-1"]http://www.amazon.com/Murachs-C-2008-Joel-Murach/dp/1890774464/ref=sr_1_1?ie=UTF8&s=books&qid=1273203137&sr=8-1[/URL] | |
Re: Make the class public. By default it is private, which is what you have. namespace drag_and_lock_grid { [B]Public [/B]class Puzzlepiece { But as other posted said you are trying to use a private class in this situation, which is to restrictive. | |
Re: [QUOTE=SiPexTBC;442924]Basically what i'm trying to do is delete an old textfile in place of a new one with the different text that a person types in. this is basically the code: [CODE] string Go = "go to"; System.IO.File.Delete("C:/text.txt"); StreamWriter realm = new StreamWriter("C:/text.txt"); realm.WriteLine(Go); realm.Write(comboBox1.Text); realm.Close(); MessageBox.Show("Done!", "Finished");[/CODE] So, when … | |
Hi All, I am trying to help my family stop sucking at managing their available funds and have a "true" available amount so they are up to date at all times on their available funds. Is it possible to get the list of pending charges for any given user for … | |
Re: Murach's C# 2008 is a very good book a highly recommended. It is a great introduction to C# and object oriented programming. [URL="http://www.amazon.com/Murachs-C-2008-Joel-Murach/dp/1890774464/ref=sr_1_1?ie=UTF8&s=books&qid=1273203137&sr=8-1"]http://www.amazon.com/Murachs-C-2008-Joel-Murach/dp/1890774464/ref=sr_1_1?ie=UTF8&s=books&qid=1273203137&sr=8-1[/URL] | |
Re: Use a static variable and just increment it each time the method is called. [url]http://www.daniweb.com/forums/thread49952.html[/url] | |
Hello everyone. I am trying to learn css. I download a free web template and have began to modify it a little bit. I feel like I am learning a lot, but I am trying to figure out why I have two vertical lines between two of my div's and … | |
Re: [QUOTE=dougancil;1188495]I'm trying to write code for a page using VB and as I'm new to this, I'm needing some assistance. I have a button on a web page for uploading a .csv file but I also want that button to function as taking people to a destination page as well. … | |
Re: ^ I looked at this website in IE and it looks fine to me as well. ![]() | |
Re: [QUOTE=Tucker0;1114187]Thanks so much its working great but now it only adds the right one the first time then the second time it keeps adding the same entry... I know I got to clear something but not to sure what lol[/QUOTE] the text box? | |
I have been reading books trying to learn .net on my own. I am working on an exercise that asks me to create a 1MB file. what i have below does work, but it seems to me there would be a more efficeient way. It seems like what i am … | |
Hello Everyone, Please move to the correct forum, i wasn't sure where to put this. I also posted this to MSDN, but wanted to post here as well. I am using VS 2008 Pro Edition Yesterday i was able to create projects using the Add new Data Source Wizard just … | |
| |
Re: use data binding. There are many guides or examples on this, but i googled and this is the first result i got. [url]http://www.startvbdotnet.com/ado/Simplebinding.aspx[/url] | |
Re: Couldn't you use: Pseudocode: if generalcomobobox is soda then comboboxspecific items = sprite, etc. elseif generalcombobox is Juice then comboboxspecific items = apple, etc. you could do this in generalcombo box's SelectedIndexChangedEvent. Hope this helps. Not sure if this is what you need or not. Sorry if off base. | |
Hello everyone. Can anyone give a link to a good guide/tutorial on how to populate a treeview with the drives of a system. I am able to get the drives listed, but am i having a problem creating the child nodes for the drives and really have never used a … | |
Re: if you dont see the toolbar as a tab along one of the sides, then go to... view menu then choose toolbox | |
Re: [QUOTE=novadose;761058]Or internet explorers, Im making a joke tool (im still learning alot in VB .NET and this was a simple tool to make for me) so far it opens 20 tabs in firefox of one web page, But what i want to do is it to open more firefox or … | |
Hello everyone. I have been studying VB on my own in prep for my class next semester. I am trying to update a label on form1 from form2. Below is just a "test" example i created to figure out what im doing wrong. It is not the actual project i … |
The End.