126 Posted Topics
Re: Can you post the exact error you are receiving | |
Re: [Click Here](http://stackoverflow.com/questions/761036/why-is-sql-server-storing-question-mark-characters-instead-of-japanese-character) This article should help you understand the problem. with the current collation settings on your database the above query should return `llo ??????` ![]() | |
Re: else { MessageBox.Show("Invalid user name or password. Please try with another user name or password", "Task", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtUsername.Focus(); } A simple solution would be adding a field on your user table namely "LoginAttempts" `INT` When they attempt to login with the incorrect password for the given username you simply … | |
Re: This might not be an ideal solution but you can try copying the file in your C# code and then reading from it and try to keep the file up to date. Depending on the file size i don't think it will be possible to synchronize the two application. | |
Re: What exactly do you have in your checklistbox? If you want an Insert Statement to run for each item in your checklistbox then you have to assign your parameters and execute inside your `for (int a = 0; a < CheckBoxList1.Items.Count - 1; a++)` | |
Re: Can you please paste the exact error you are receiving | |
Re: I assume you're reading the data into an array. You know that your date will be in column 1 and your Summe would be in your last column so on each readline of the file you only retrieve these two values based on their index in the array. | |
Re: An easy way to see exactly what's going wrong is inserting a breakpoint on line 29 on the above code extract. Then investigate the value of the cmd query by using the text visualizer. Copy the code from there directly into sql and parsing it to sql standards. Run the … | |
Re: Try this DELETE Personaldata.*,Spouse.* from Personaldata INNER JOIN Spouse ON Spouse.LotNo = Personaldata.LotNo | |
Re: Your problem is due to encapsulation if (textBox1.Text == "1") MessageBox.Show("Hello1"); else MessageBox.Show("Hello2"); MessageBox.Show("Hello3"); If the textbox 1 text property is 1 the messagebox will show Hello1 and Hello 3 if it's not 1 the messagebox will show Hello 2 and hello 3 If you change the code as follows … | |
Re: Are you manually populating your grid? Or did you specify it in your properties? | |
Re: Say you have a grid and you want users to be able to disable and enable grid Columns and the grid is pulling from a view. You now add a radio button for each column but as soon as the view changes you have to add another radio button which … | |
Re: You can drag a OpenFileDialog Component on your screen and set it up in code like this `openFileDialog1.Filter = "PDF File (*.pdf)|*.pdf|All Files (*.*)|*.*";` you can get the filename after selecting a file like this `OpenFileDialog.FileName` As for manipulating the contents of a pdf you can try something like this … | |
Re: So you want the Link Label to point to a page not created by you? If that's the case you can use something like this `System.Diagnostics.Process.Start("http://WebsiteName"); `inside the onClick method | |
Re: When Loading your data into the dropdownlist try adding `if(!IsPostBack){}` | |
Re: This might help you get started [Click Here](http://www.codeproject.com/Articles/4544/Insert-Plain-Text-and-Images-into-RichTextBox-at-R) | |
Re: You should be able to add the key with the corresponding progressbar to something like a dictionary `Dictionary<Char,ProgressBar>` and then on keypress check your dictionary and retrieve the relevant entry | |
Re: When you insert a breakpoint you can step your code. Highlight and rightclick the combobox you can then inspect the Value and Display members and check if they are correct. | |
Re: Is it always going to be in this ` hlo<div><br></div>` Format? and only the hlo part changes? if that's the case there are numerous methods you can use just off the top of my head something like this string test = " hlo<div><br></div>"; test = test.Substring(test.IndexOf(";")+1, test.IndexOf("<") - test.IndexOf(";")-1); | |
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. |
The End.