126 Posted Topics

Member Avatar for ocw91
Member Avatar for arunkumars

[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 ??????`

Member Avatar for h4ng4r18
0
263
Member Avatar for vishal anand.s

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 …

Member Avatar for fikreyes
0
894
Member Avatar for kshahnazari

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.

Member Avatar for Ketsuekiame
0
304
Member Avatar for Praise92

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++)`

Member Avatar for Praise92
0
163
Member Avatar for MasterHacker110
Member Avatar for star_trek

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.

Member Avatar for Fenrir()
0
332
Member Avatar for Praveen_10

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 …

Member Avatar for Praveen_10
0
417
Member Avatar for SkyCross

Try this DELETE Personaldata.*,Spouse.* from Personaldata INNER JOIN Spouse ON Spouse.LotNo = Personaldata.LotNo

Member Avatar for Fenrir()
0
198
Member Avatar for Parthptl

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 …

Member Avatar for Fenrir()
0
130
Member Avatar for Ajay_9
Member Avatar for GagaCode
Member Avatar for GagaCode
0
297
Member Avatar for 21310051

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 …

Member Avatar for Fenrir()
0
142
Member Avatar for omojolinho

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 …

Member Avatar for BobS0327
0
250
Member Avatar for Gaurav_14

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

Member Avatar for YA RAMSAMKER
0
323
Member Avatar for Sumith Asanka
Member Avatar for wasimmalik
0
208
Member Avatar for Amanpreet_1

This might help you get started [Click Here](http://www.codeproject.com/Articles/4544/Insert-Plain-Text-and-Images-into-RichTextBox-at-R)

Member Avatar for Amanpreet_1
0
494
Member Avatar for Sevyt

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

Member Avatar for Sevyt
0
207
Member Avatar for GagaCode

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.

Member Avatar for GagaCode
0
414
Member Avatar for Amanpreet_1

Is it always going to be in this `&nbsp;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 = "&nbsp;hlo<div><br></div>"; test = test.Substring(test.IndexOf(";")+1, test.IndexOf("<") - test.IndexOf(";")-1);

Member Avatar for Amanpreet_1
0
384
Member Avatar for Amanpreet_1
Member Avatar for Sammys.Man

So every row basically has a parameter and based on that parameter you want to populate the current rows columns?

Member Avatar for Fenrir()
0
171
Member Avatar for Urgent

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.

Member Avatar for fliponymous
0
120
Member Avatar for ecoloney

[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.

Member Avatar for Fenrir()
0
144
Member Avatar for Amanpreet_1

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 …

Member Avatar for Amanpreet_1
0
407
Member Avatar for makanda
Re: atm

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)

Member Avatar for Fenrir()
0
126
Member Avatar for strRusty_gal

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

Member Avatar for strRusty_gal
0
114
Member Avatar for alex-i

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)

Member Avatar for Fenrir()
0
87
Member Avatar for overwraith

[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.

Member Avatar for Fenrir()
0
76
Member Avatar for ruwaldl

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.

Member Avatar for Fenrir()
0
525

The End.