-
Replied To a Post in insertion of combobox value,date and time
Could you please post your question on a new thread seeing as you've marked this one as solved. -
Replied To a Post in Read 'date' n Sum from a text file n compare it to user's input
When are you reading the data from the files? when a user inputs data you want to go get values from the file and compare? -
Replied To a Post in insertion of combobox value,date and time
If this is the error you are still getting 'Incorrect syntax near '@Numberpassengers'.' then remember INSERT INTO(Columns) VALUES (Values) Remember your Parenthesis ( ) ( ) you are missing the … -
Replied To a Post in insertion of combobox value,date and time
Are you still getting the same exception? Did you add the ) to the following line "insert into BookDetails(CarName,Source,Destination,Date,FromAddress,ToAddress,Time,Numberpassengers)VALUES(@CarName,@Source,@Destination,@Date,@FromAddress,@ToAddress,@Time,@Numberpassengers)" <---- -
Replied To a Post in insertion of combobox value,date and time
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 … -
Replied To a Post in how to parse html file
You can use some simple regex to achieve what you want but from past experience this can get quite verbose and inefficient i would suggest trying [Click Here](http://htmlagilitypack.codeplex.com/) -
Replied To a Post in Read 'date' n Sum from a text file n compare it to user's input
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 … -
Replied To a Post in Reading Data From a txt file that is being written by another program
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 … -
Replied To a Post in Sysntax Error FROM Claues
Try this DELETE Personaldata.*,Spouse.* from Personaldata INNER JOIN Spouse ON Spouse.LotNo = Personaldata.LotNo -
Replied To a Post in Popping up Window when not necessary
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 … -
Replied To a Post in radio buttons and checkboxes
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 … -
Replied To a Post in Inserting the image
What is the error you are getting? -
Replied To a Post in A c# code to select a file and get the name from local disk
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 … -
Replied To a Post in how to add web page in windows forms project
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 -
Replied To a Post in populating a combobox in datagrid
Are you manually populating your grid? Or did you specify it in your properties? -
Replied To a Post in <img src="images/smiley-yell.png"> convert these to smilies in visual c#
You only need to specify list.add not items -
Replied To a Post in <img src="images/smiley-yell.png"> convert these to smilies in visual c#
Okay so you have the string from the database so next you need to find the image in the resources. Did you manually add them to resources? are they inside … -
Replied To a Post in <img src="images/smiley-yell.png"> convert these to smilies in visual c#
Once you have the image from the database the first step is done. Richtextbox doesn't have default methods for adding images so that's why i suggested that first article. Have … -
Replied To a Post in <img src="images/smiley-yell.png"> convert these to smilies in visual c#
Are you saving the physical image? or just the path.. Try this [Click Here](http://www.youtube.com/watch?v=5OzAJIXbfQY) you will still need to first link to get your image into the Richedit. -
Replied To a Post in <img src="images/smiley-yell.png"> convert these to smilies in visual c#
This might help you get started [Click Here](http://www.codeproject.com/Articles/4544/Insert-Plain-Text-and-Images-into-RichTextBox-at-R) -
Replied To a Post in how to use the preg_match function of php in visual c#
`myConn.Open();` add a breakpoint here and step your code and see on exactly what line it throws an exception -
Replied To a Post in Catching a keypress to start a timer in WPF
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 -
Replied To a Post in Dropdown list always gets first item name
When Loading your data into the dropdownlist try adding `if(!IsPostBack){}` -
Replied To a Post in how to use the preg_match function of php in visual c#
So you're getting Message - > Username? Sorry i don't quite understand your question. Please post the code aswell -
Replied To a Post in how to use the preg_match function of php in visual c#
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 … -
Replied To a Post in about getting unwanted default values in my rich text box
` MySqlCommand SelectCommand = new MySqlCommand("select * from livestream.views where video_id ='" + videoid + "' and ACTIVE=1 ", myConn);` when you insert a breakpoint on this line. What is … -
Replied To a Post in about getting unwanted default values in my rich text box
Please post your code. How are you declaring the array? -
Replied To a Post in ComboBox Value Member Issue
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. -
Replied To a Post in populate label from datagridview
I tested the code i provided and it works perfectly what difficulties are you experiencing? I populate a datagridcombobox with all the weeks and every time you select a week … -
Replied To a Post in populate label from datagridview
You basically need an onChangeEvent for the datagridviewcomboboxcolumn. And this will need to be created. I used this in a previous project [Click Here](http://stackoverflow.com/questions/3405887/selectedindexchanged-event-in-comboboxcolumn-on-datagridview) As for selecting the data. You … -
Replied To a Post in Print to PDF
[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 … -
Replied To a Post in populate label from datagridview
You can just build a simple select query and in the where specify you value. Initialize a DataReader and insert the values based on the current row index. -
Replied To a Post in populate label from datagridview
So every row basically has a parameter and based on that parameter you want to populate the current rows columns? -
Replied To a Post in visual c# app
string videoID = myReader.GetString("video_id"); this sould be in your combobox you select from by my understanding. Is that the physical ID? If you select from views based on the video … -
Replied To a Post in visual c# app
`SELECT u_id FROM Views WHERE video_id = "+YourComboBox.SelectedItem.ToString()+"` -
Replied To a Post in visual c# app
You have the video ID so i assume your second query is just a standard select aswell. So when you're selecting you can just initialize another reader and loop through … -
Replied To a Post in visual c# app
Am i getting this right : you want the "video_id" returned by your reader so you can pass it into another query to retrieve the values? If that is the … -
Replied To a Post in visual c# app
Please post your code that you use to populate your combobox with titles. -
Replied To a Post in atm
. -
Replied To a Post in 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) -
Replied To a Post in visual c# app
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 … -
Replied To a Post in Process handling
Try disposing the attachment before your delete statement. `data.Dispose();` -
Replied To a Post in Process handling
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 -
Replied To a Post in View images
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) -
Replied To a Post in building a program
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. -
Replied To a Post in Calling C++ from C#
[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. -
Replied To a Post in display datagridview cell values in a listbox
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. -
Replied To a Post in C# Windows Application Stopped Working On Windows Vista
Are you writing anything to the registry? In windows vista the if the application throws an error the "application has stopped working dialog will appear" make sure you have all … -
Replied To a Post in get month in format dd/MM/yyyy with tipe data varchar(10)
Like george asked is this on the SQL server side or in your application? -
Replied To a Post in get month in format dd/MM/yyyy with tipe data varchar(10)
[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)
The End.