126 Posted Topics

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
174
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
124
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
146
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
413
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
128
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
117
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
79
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
527
Member Avatar for jenifer.jenn
Member Avatar for ade.julianto

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

Member Avatar for Ketsuekiame
0
615
Member Avatar for BrandonRich99

This can sometimes be solved by just changing the framework to an earlier version like 3. Have you tried this?

Member Avatar for Fenrir()
0
373
Member Avatar for star.bravo

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)

Member Avatar for Fenrir()
0
393
Member Avatar for hxn xfir
Re: Help

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 …

Member Avatar for JOSheaIV
0
817
Member Avatar for kothaisaravan

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 …

Member Avatar for Fenrir()
0
215
Member Avatar for lavanya.lakh

You question is very unclear. Please try and clarify your question.. Have you tried any code yourself?

Member Avatar for Ketsuekiame
0
116
Member Avatar for jimmylee7706_1
Member Avatar for jimmylee7706_1
0
309
Member Avatar for castajiz_2

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.

Member Avatar for castajiz_2
0
209
Member Avatar for MARKAND911

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.

Member Avatar for Fenrir()
0
215
Member Avatar for MARKAND911

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.

Member Avatar for Fenrir()
0
284
Member Avatar for CJMW

`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. …

Member Avatar for CJMW
0
414
Member Avatar for darrylnuyda

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

Member Avatar for KushMishra
0
178
Member Avatar for Sumith Asanka

have you tried inserting a breakpoint and checking the values while the program is running?

Member Avatar for Fenrir()
0
183
Member Avatar for Fenrir()

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 …

Member Avatar for Fenrir()
0
143
Member Avatar for GrimJack

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 …

Member Avatar for GrimJack
2
838
Member Avatar for valleymorning

You need to create a new thread. This ons is 4 years old and you're not contributing to it.

Member Avatar for Fenrir()
0
172
Member Avatar for </scorpion>

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 }

Member Avatar for Mike Askew
0
1K
Member Avatar for sam wage

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.

Member Avatar for Fenrir()
0
213
Member Avatar for game4tress

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?

Member Avatar for game4tress
0
206
Member Avatar for Firozeh

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.

Member Avatar for The Diamonds
0
154
Member Avatar for AhmadHasanSahi

[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 :)

Member Avatar for Dani
0
119
Member Avatar for CJMW

If the lines that contain filenames are unique you can use Regex to identify them. Otherwise you will have to create an exclusion list.

Member Avatar for The Diamonds
0
301
Member Avatar for desolatebeast

Try implementing some exception handling in your code aswell. Also ensure that you have permission to access the appdata folder

Member Avatar for Fenrir()
0
744
Member Avatar for darrylnuyda

You can try this [Click Here](http://www.codeproject.com/Questions/308667/open-a-crystal-report-through-Csharp-windows-form) Regards

Member Avatar for darrylnuyda
0
232
Member Avatar for abdul.mudaser

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 …

Member Avatar for castajiz_2
0
2K
Member Avatar for Warrens80

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.

Member Avatar for GrimJack
-13
641
Member Avatar for castajiz_2

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), …

Member Avatar for castajiz_2
0
270
Member Avatar for venkates.99
Member Avatar for Ketsuekiame
0
334
Member Avatar for aditya.bhoi.35

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"

Member Avatar for Ketsuekiame
0
364
Member Avatar for rahulkrishnanr

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

Member Avatar for sebastianedu
0
109
Member Avatar for CJMW

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 …

Member Avatar for Fenrir()
0
338
Member Avatar for CJMW

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 …

Member Avatar for CJMW
0
2K
Member Avatar for Judson

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; …

Member Avatar for Judson
0
1K
Member Avatar for ramy84

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)

Member Avatar for Fenrir()
0
376
Member Avatar for null_pointer

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 …

Member Avatar for KushMishra
0
226
Member Avatar for </scorpion>

[Click Here](http://stackoverflow.com/questions/13788156/looping-through-datagridview-cells) And this.

Member Avatar for </scorpion>
0
283
Member Avatar for aminM#
Member Avatar for JOSheaIV

[Click Here](http://stackoverflow.com/questions/10746670/how-to-monitor-that-an-application-is-opened) Try this and take it from there.

Member Avatar for JOSheaIV
0
212
Member Avatar for Payal Gupta

The End.