126 Posted Topics
Re: Please post your code. How are you declaring the array? | |
Re: So every row basically has a parameter and based on that parameter you want to populate the current rows columns? | |
Re: Yes you can [Click Here](http://social.msdn.microsoft.com/Forums/vstudio/en-US/488d1e36-7283-4434-804e-1c700fa4b269/how-to-start-video-game-programming-in-c) There are many examples on the web. | |
Re: [Click Here](http://stackoverflow.com/questions/4666580/how-can-i-set-topmost-at-the-savefiledialog-using-c) you can try this. But this is weird behaviour it should already be topmost. If i had this problem i would propbably just create a new form for my dialog and set the property TopMost there. | |
Re: I think it will be better to test your query in SQL first. You can do the JOIN logic in SQL and merely pass the string to SQL via a SQLCommand. Reading your previous comments led me to the conclusion that johnrosswrock's previous comment is what you need. You want … | |
Re: This seems like a homework assingment. And a quick google brought me to this [Click Here](http://social.msdn.microsoft.com/Forums/vstudio/en-US/21ff2c77-281c-4187-ad53-d22ac971ddc8/help-with-an-atm-project-creating-an-atm-form-depending-of-the-user-choice-using-abstract-classes?forum=csharpgeneral) | |
Re: How are you sending the email? If the objects used to send the email are properly disposed in your code then you should have no problem deleteing the PDF | |
![]() | Re: You need to create a URI from the filepath. This link should help [Click Here](http://stackoverflow.com/questions/1118496/using-image-control-in-wpf-to-display-system-drawing-bitmap) |
Re: [Click Here](http://social.msdn.microsoft.com/Forums/en-US/f18d1d1c-0d14-4ff2-8244-337f58818ef9/how-to-use-c-code-in-c) there are alot of useful links in this article. | |
Re: The Listbox.Text property is used to Search for specific text. So what you are actually doing is searching the listbox for `dataGridView1.Rows[e.RowIndex].Cells["Description"].Value.ToString();` the method george suggested will work. | |
Re: Are you getting errors? or is the application just not running? | |
Re: [Click Here](http://msdn.microsoft.com/en-us/library/ms174420%28SQL.90%29.aspx) try this. if your date is varchar you will need to convert it [Click Here](http://stackoverflow.com/questions/10247050/sql-server-convert-varchar-to-datetime) | |
Re: This can sometimes be solved by just changing the framework to an earlier version like 3. Have you tried this? | |
Re: It sound like you're trying to achieve a captcha. This link is for ASP.NET but you can easily convert it to Desktop etc.. [Click Here](http://www.codeproject.com/Articles/99148/Simple-CAPTCHA-Create-your-own-in-C) | |
Re: static void Main(string[] args) { double powValue = 0; double sqrtvalue = 0; int NumberOfValues = 9; for (int i = 1; i < 100000; i = (i * 10 + 1)) { powValue = (Math.Pow(i, 2)); Console.WriteLine(powValue.ToString().PadLeft(NumberOfValues)); } powValue = Math.Pow(((Math.Sqrt(powValue) - 1) / 10), 2); for (double i … | |
Re: Well this might be a bad example but you can accomplish this by doing the following. Add a counter for each picturebox In the form load set the PictureBox.Image property to Imagelist.Images[Counter] for each picturebox In the Previous and Next buttons Increment and Decrement the Counters. Add a general method … | |
Re: You question is very unclear. Please try and clarify your question.. Have you tried any code yourself? | |
Re: When you step the code and hover on gridTest.Visibility what does the current visibility show? | |
Re: It means that your application is trying to login to sql and retrieve the data. but it's being prompted for a username and password. You need to specify this in your connection string for cn. | |
Re: Have a look at this article and the links provided [Click Here](http://stackoverflow.com/questions/6570066/c-net-get-the-oledb-provider-version) Seems the easiest way is using registry values. If you can retrieve the version then you can just build a custom string for the connection. | |
Re: If you can find out where office stores its theme data you can probably right some code around that. as for the actual theme in your application you'll probably have to use 3rd party software. | |
Re: `for (int x = 0; x < width; x++)` this line loops x amount of times inside you perform a check `if ((Convert.ToInt32(tileNo[x])) == 1)` so if it passes this check then it declares c and assigns the value 1. So every time the check is passed it assigns 1. … | |
Re: It's still the same Date and time that is saved into the database. So when you return the value from the database you can specify the format you need as you did above. When saving the value to the database use the following. `dateTimePicker1.Value.ToString()` `dateTimePicker1.Value.ToShortDateString()` | |
Re: have you tried inserting a breakpoint and checking the values while the program is running? | |
So here's the thing and it's been quite simple up to here. I have never been required to do something like this and most tutorials are vague at best. I have a Stackpanel with numerous children. Each child then has a label and an image. These were all dynamically created … | |
Re: Interesting seeing all of your comments. I am actually from south africa and everyone here basically forgot about mandela until he became sick and subsequently passed away I was born in the final stages of apartheid so it really didn't affect me but i can promise you that the country … | |
Re: You need to create a new thread. This ons is 4 years old and you're not contributing to it. | |
Re: Is this what you mean? if (MessageBox.Show("record exist. do you want to continue?", "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes) { //Do Something } else { //Do something else } | |
Re: You could use the TryParseExact method explained here [Click Here](http://msdn.microsoft.com/en-us/library/ms131044(v=vs.110).aspx) The easiest solution would however be just using the dateTimePicker as mentioned by grarhakim. | |
Re: So you only want to display {The information to display} ? Could you please specify exactly what type of layout you want to achieve withing the listview and where is tang2 assigned? | |
Re: Based on your question "How many search patterns exist" this is quite vague. seeing as there are just as many search patterns as there are file extensions. When using something like an openFileDialog you specify the extensions you want to import based on your own personal preference. | |
Re: [Click Here](http://www.codeproject.com/Articles/79040/Sorting-Algorithms-Codes-in-C-NET) here is an excellent example. Only took 5 seconds to find :) | |
Re: If the lines that contain filenames are unique you can use Regex to identify them. Otherwise you will have to create an exclusion list. | |
Re: Try implementing some exception handling in your code aswell. Also ensure that you have permission to access the appdata folder | |
Re: You can try this [Click Here](http://www.codeproject.com/Questions/308667/open-a-crystal-report-through-Csharp-windows-form) Regards | |
Re: This is just a suggestion. Drag 2 panels onto a blank form and set Panel1's Dock in the properties window to Left and Panel2's Dock to right. For visual purposes assing them both colors or add a border. Next add a button and in the button click event add the … | |
![]() | Re: Based on your post about helping your "Friend" i'd say you're quite deep in the friendzone and this is your way of coping. |
Re: private bool InObjectArea(MouseEventArgs e) { if (rect.Contains(cursor)) { return true; } else return false; } Seems this method isn't firing. Seeing as you created a new Rectangle object here. Correct me if i'm wrong public void RotateImage(Graphics pape,int rtangle) // method 0, main method { pape.TranslateTransform(x_cor, y_cor); pape.RotateTransform(rtangle); paper.DrawRectangle(new Pen(Brushes.Blue), … | |
Re: Could you maybe post your code? Does it throw an exception when it stops in the middle? | |
Re: Have you tried stepping the code and checking the variable values and determine why it's not working? Also i don't see you ever incrementing the Variable "K" | |
Re: if the nodes are hardcoded. For instance there are 3 hardcoded nodes and you need to reference them and add childnodes to them you can simply do `treeView1.Nodes[Index of the Hardcoded node [0]/[2]/[3] etc..].Nodes.Add("This will be your database value");` Regards | |
Re: Have you tried anything yet? This might point you in the right direction [Click Here](http://www.dotnetcurry.com/ShowArticle.aspx?ID=146) You need to loop all the tabpages and their richTextBoxes. If you want to change only "int" and "2" in the string "int a = 2" you will probably need to use something like regex … | |
Re: You can try this private void button2_Click(object sender, EventArgs e) { foreach (RichTextBox richtext in tabControl1.TabPages[tabControl1.SelectedIndex].Controls) { MessageBox.Show(richtext.Text); } } Or just change your code to int tabNum = tabControl1.SelectedIndex + 1; RichTextBox textBox = tabControl1.SelectedTab.Controls.Find(("New file " + tabNum), true).FirstOrDefault() as RichTextBox; //textBox.Focus(); MessageBox.Show(textBox.Text); //textBox.Focus(); Such a small thing … | |
Re: Here's a quick test i created which you can work from. double TotalCost = 0; DateTime CheckinDate = dateTimePicker1.Value; DateTime CheckOutDate = dateTimePicker2.Value; while (CheckinDate.ToShortDateString() != CheckOutDate.ToShortDateString()) { if (CheckinDate.DayOfWeek.ToString() == Day.Friday.ToString() || CheckinDate.DayOfWeek.ToString() == Day.Saturday.ToString()) { TotalCost = TotalCost + 150; } else { TotalCost = TotalCost + 120; … | |
Re: Sorry if this reply is a bit late but i was curious. I replicated the problem as you are only replacing a partial match. Check this out for a simple and effective solution [Click Here](http://stackoverflow.com/questions/6143642/way-to-have-string-replace-only-hit-whole-words) | |
Re: There should be many errors.. It seems like a copy and paste. simple errors in your code i can see Lines 32, 43 `.SubString` Should be `.Substring` which is odd seeing as it's fine on line 21 Like ddanbe said we can't really help you without specific errors. And maybe … | |
Re: [Click Here](http://stackoverflow.com/questions/13788156/looping-through-datagridview-cells) And this. | |
| |
Re: [Click Here](http://stackoverflow.com/questions/10746670/how-to-monitor-that-an-application-is-opened) Try this and take it from there. | |
The End.